Will come in handy soon... ChangeLog Allows wpp users to undefine previously defined symbols. Index: tools/wpp/wpp.c =================================================================== RCS file: /var/cvs/wine/tools/wpp/wpp.c,v retrieving revision 1.7 diff -u -r1.7 wpp.c --- tools/wpp/wpp.c 20 Mar 2003 21:07:49 -0000 1.7 +++ tools/wpp/wpp.c 27 Mar 2003 02:59:05 -0000 @@ -58,6 +58,14 @@ } +/* undefine a previously added definition */ +void wpp_del_define( const char *value ) +{ + char *str = pp_xstrdup(value); + pp_del_define( str ); +} + + /* add a command-line define of the form NAME=VALUE */ void wpp_add_cmdline_define( const char *value ) { Index: tools/wpp/wpp.h =================================================================== RCS file: /var/cvs/wine/tools/wpp/wpp.h,v retrieving revision 1.2 diff -u -r1.2 wpp.h --- tools/wpp/wpp.h 27 Aug 2002 22:29:26 -0000 1.2 +++ tools/wpp/wpp.h 27 Mar 2003 02:58:10 -0000 @@ -24,6 +24,7 @@ #include <stdio.h> extern void wpp_add_define( const char *name, const char *value ); +extern void wpp_del_define( const char *name ); extern void wpp_add_cmdline_define( const char *value ); extern void wpp_set_debug( int lex_debug, int parser_debug, int msg_debug ); extern void wpp_set_pedantic( int on ); -- Dimi.