Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
RFC: Backticks
oBFusCATed:
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.
ollydbg:
Is it Windows related?
I can only test on Windows.
oBFusCATed:
"cmd0|cmd1" support is unix only. Windows should support it already.
The cache clearing is os independent.
Any testing is welcome.
ollydbg:
I can build this branch under Windows.
But I don't know how to test it.
I can write some code in the compiler include search path, such as:
--- Code: ---`echo aaa`
--- End code ---
Then, I got such build command line:
--- Code: ---g++.exe -Wall -fexceptions -g -I"`echo aaa`" -c D:\code\test_git_temp\test_cmdcmd\main.cpp -o obj\Debug\main.o
--- End code ---
It looks like the backtick not get executed?
oBFusCATed:
What happens without the quotes?
Generally backticks are more useful in the compiler or linker options and not for search paths.
Navigation
[0] Message Index
[#] Next page
Go to full version