Browse Source
(option_values): Add new OPTION_PREPROCESSOR_ARG enumerator. (option long_options): Add preprocessor-arg option. (main): Handle it. * doc/binutils.texi: Add documentation for --preprocessor-arg option. * NEWS: Add line about new --preprocessor-arg option for windres. * binutils-all/windres/windres.exp: Add '// cpparg <option>' command to rc file interpretation to specify addition pre-processor commands as script option. * binutils-all/windres/strtab3.rc: New. * binutils-all/windres/strtab3.rsd: New. * binutils-all/windres/README: Add note about cpparg script option. argumentbinutils-2_22-branch
9 changed files with 83 additions and 5 deletions
@ -0,0 +1,14 @@ |
|||
// cpparg -DTEST=1 |
|||
|
|||
#include "windows.h" |
|||
|
|||
LANGUAGE 0, 0 |
|||
|
|||
STRINGTABLE MOVEABLE PURE DISCARDABLE |
|||
BEGIN |
|||
#ifdef TEST |
|||
1 "hello, world" |
|||
#else |
|||
1 "fail" |
|||
#endif |
|||
END |
|||
@ -0,0 +1,8 @@ |
|||
0000 00000000 20000000 ffff0000 ffff0000 .... ........... |
|||
0010 00000000 00000000 00000000 00000000 ................ |
|||
0020 38000000 20000000 ffff0600 ffff0100 8... ........... |
|||
0030 00000000 30100000 00000000 00000000 ....0........... |
|||
0040 00000c00 68006500 6c006c00 6f002c00 ....h.e.l.l.o.,. |
|||
0050 20007700 6f007200 6c006400 00000000 .w.o.r.l.d..... |
|||
0060 00000000 00000000 00000000 00000000 ................ |
|||
0070 00000000 00000000 ........ |
|||
Loading…
Reference in new issue