Author Topic: RFC: Backticks  (Read 326 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13318
    • Travis build status
RFC: Backticks
« on: June 14, 2021, 10:04:47 pm »
I've tried to introduce automatic support for gtk 2 or 3 on linux.
I've failed to do it and this happened because it was not possible to expand backticks of complex expressions like "cmd0|cmd1".
I've added this feature in this branch: https://github.com/obfuscated/codeblocks_sf/tree/experiments/backticks

After I've done the above I've remembered about the dreaded backtick expression cache problem and I've tried to resolve it, too.
Please test with your projects. Use --debug-log to see if the cache isn't cleared too often. It should be cleared once per operation like Build/Rebuild/Clear.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5346
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: RFC: Backticks
« Reply #1 on: June 15, 2021, 01:03:47 pm »
Is it Windows related?
I can only test on Windows.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13318
    • Travis build status
Re: RFC: Backticks
« Reply #2 on: June 15, 2021, 02:16:43 pm »
"cmd0|cmd1" support is unix only. Windows should support it already.
The cache clearing is os independent.
Any testing is welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]