I am working on some stuff with 4711 #ifdefs and, on most global searches, end up looking at inactive code.
To obtain 'marked' code lines I tried to replace
#ifdef BLAH .......
with //#define BLAH #define BLAH // BLAH ....
this works for BLAH = nothing, but I can't find a way to make it work for '//'
any ideas?
Erik
please check for notepad++ and regular expressions, other tools like sed and gawk may be better but needs more effort.
notepad++ http://notepad-plus-plus.org/
sed gnuwin32.sourceforge.net/.../sed.htm
gawk gnuwin32.sourceforge.net/.../gawk.htm
regular expressions (regex or regexp) en.wikipedia.org/.../Regular_expression
#ifdef INCLUDE_BLAH #define BLAH BLAH void blah(void) BLAH { ....
I don't see how Regular Expressions could help?
Regular Expressions are about text searching - and that's not going to work.
What is needed is something that's aware of what is and is not "active"...
How about using the preprocessor output...?
www.cs.washington.edu/.../