This code (except for some of the argument parsing changes) is not used yet. mdgrep.pl generates mdgrep.h; like the lex and yacc files we ship mdgrep.h pre-generated; there is no need for perl on end-user/end-compiler systems. (In fact mdgrep.h is so simple mdgrep.pl is probably overkill.) mdgrep.h creates an array reflecting the compiler options in effect The changes to makedefs break the Mac OS9 compile; if necessary the fix is simple and documented (but I think that port is permanently dead). With that port out of the way, makedefs can be allowed to take real options; none of the current options have been changed. Instead, a second sub-main routine has been added to handle options starting with two hyphens and all the new options start with two hyphens: --input specifies the input file (- is stdin) --output specifies the output file (- is stdout) --grep causes the input file to be filtered into the output file --grep-showvars dumps the info from the array in mdgrep.h --grep-trace turns on tracing of the grep filtering Docs for the filtering language are in the source.
268 lines
4.0 KiB
C
268 lines
4.0 KiB
C
/*
|
|
* This file generated by mdgrep.pl version 1.1.
|
|
* DO NOT EDIT! Your changes will be lost.
|
|
*/
|
|
static struct grep_var grep_vars[]={
|
|
{"0", 0},
|
|
{"1", 1},
|
|
#if defined(AMIGA)
|
|
{"AMIGA", 1},
|
|
#else
|
|
{"AMIGA", 0},
|
|
#endif
|
|
#if defined(AMII_GRAPHICS)
|
|
{"AMII_GRAPHICS", 1},
|
|
#else
|
|
{"AMII_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(ASCIIGRAPH)
|
|
{"ASCIIGRAPH", 1},
|
|
#else
|
|
{"ASCIIGRAPH", 0},
|
|
#endif
|
|
#if defined(BETA)
|
|
{"BETA", 1},
|
|
#else
|
|
{"BETA", 0},
|
|
#endif
|
|
#if defined(BSD_JOB_CONTROL)
|
|
{"BSD_JOB_CONTROL", 1},
|
|
#else
|
|
{"BSD_JOB_CONTROL", 0},
|
|
#endif
|
|
#if defined(CLIPPING)
|
|
{"CLIPPING", 1},
|
|
#else
|
|
{"CLIPPING", 0},
|
|
#endif
|
|
#if defined(COMPRESS)
|
|
{"COMPRESS", 1},
|
|
#else
|
|
{"COMPRESS", 0},
|
|
#endif
|
|
#if defined(DLB)
|
|
{"DLB", 1},
|
|
#else
|
|
{"DLB", 0},
|
|
#endif
|
|
{"FALSE", 0},
|
|
#if defined(GEM_GRAPHICS)
|
|
{"GEM_GRAPHICS", 1},
|
|
#else
|
|
{"GEM_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(GNOME_GRAPHICS)
|
|
{"GNOME_GRAPHICS", 1},
|
|
#else
|
|
{"GNOME_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(HANGUPHANDLING)
|
|
{"HANGUPHANDLING", 1},
|
|
#else
|
|
{"HANGUPHANDLING", 0},
|
|
#endif
|
|
#if defined(MAC)
|
|
{"MAC", 1},
|
|
#else
|
|
{"MAC", 0},
|
|
#endif
|
|
#if defined(MAC_GRAPHICS)
|
|
{"MAC_GRAPHICS", 1},
|
|
#else
|
|
{"MAC_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(MAIL)
|
|
{"MAIL", 1},
|
|
#else
|
|
{"MAIL", 0},
|
|
#endif
|
|
#if defined(MFLOPPY)
|
|
{"MFLOPPY", 1},
|
|
#else
|
|
{"MFLOPPY", 0},
|
|
#endif
|
|
#if defined(MSDOS)
|
|
{"MSDOS", 1},
|
|
#else
|
|
{"MSDOS", 0},
|
|
#endif
|
|
#if defined(MSWIN_GRAPHICS)
|
|
{"MSWIN_GRAPHICS", 1},
|
|
#else
|
|
{"MSWIN_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(NOCWD_ASSUMPTIONS)
|
|
{"NOCWD_ASSUMPTIONS", 1},
|
|
#else
|
|
{"NOCWD_ASSUMPTIONS", 0},
|
|
#endif
|
|
#if defined(NOSAVEONHANGUP)
|
|
{"NOSAVEONHANGUP", 1},
|
|
#else
|
|
{"NOSAVEONHANGUP", 0},
|
|
#endif
|
|
#if defined(OS2)
|
|
{"OS2", 1},
|
|
#else
|
|
{"OS2", 0},
|
|
#endif
|
|
#if defined(POSIX_JOB_CONTROL)
|
|
{"POSIX_JOB_CONTROL", 1},
|
|
#else
|
|
{"POSIX_JOB_CONTROL", 0},
|
|
#endif
|
|
#if defined(QT_GRAPHICS)
|
|
{"QT_GRAPHICS", 1},
|
|
#else
|
|
{"QT_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(RANDOM)
|
|
{"RANDOM", 1},
|
|
#else
|
|
{"RANDOM", 0},
|
|
#endif
|
|
#if defined(SAFERHANGUP)
|
|
{"SAFERHANGUP", 1},
|
|
#else
|
|
{"SAFERHANGUP", 0},
|
|
#endif
|
|
#if defined(SECURE)
|
|
{"SECURE", 1},
|
|
#else
|
|
{"SECURE", 0},
|
|
#endif
|
|
#if defined(SHELL)
|
|
{"SHELL", 1},
|
|
#else
|
|
{"SHELL", 0},
|
|
#endif
|
|
#if defined(SUSPEND)
|
|
{"SUSPEND", 1},
|
|
#else
|
|
{"SUSPEND", 0},
|
|
#endif
|
|
#if defined(TEXTCOLOR)
|
|
{"TEXTCOLOR", 1},
|
|
#else
|
|
{"TEXTCOLOR", 0},
|
|
#endif
|
|
#if defined(TOS)
|
|
{"TOS", 1},
|
|
#else
|
|
{"TOS", 0},
|
|
#endif
|
|
{"TRUE", 1},
|
|
#if defined(TTY_GRAPHICS)
|
|
{"TTY_GRAPHICS", 1},
|
|
#else
|
|
{"TTY_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(UNICODE_DRAWING)
|
|
{"UNICODE_DRAWING", 1},
|
|
#else
|
|
{"UNICODE_DRAWING", 0},
|
|
#endif
|
|
#if defined(UNICODE_PLAYERTEXT)
|
|
{"UNICODE_PLAYERTEXT", 1},
|
|
#else
|
|
{"UNICODE_PLAYERTEXT", 0},
|
|
#endif
|
|
#if defined(UNICODE_WIDEWINPORT)
|
|
{"UNICODE_WIDEWINPORT", 1},
|
|
#else
|
|
{"UNICODE_WIDEWINPORT", 0},
|
|
#endif
|
|
#if defined(UNIX)
|
|
{"UNIX", 1},
|
|
#else
|
|
{"UNIX", 0},
|
|
#endif
|
|
#if defined(USER_SOUNDS)
|
|
{"USER_SOUNDS", 1},
|
|
#else
|
|
{"USER_SOUNDS", 0},
|
|
#endif
|
|
#if defined(USE_TILES)
|
|
{"USE_TILES", 1},
|
|
#else
|
|
{"USE_TILES", 0},
|
|
#endif
|
|
#if defined(VAR_PLAYGROUND)
|
|
{"VAR_PLAYGROUND", 1},
|
|
#else
|
|
{"VAR_PLAYGROUND", 0},
|
|
#endif
|
|
#if defined(VMS)
|
|
{"VMS", 1},
|
|
#else
|
|
{"VMS", 0},
|
|
#endif
|
|
#if defined(WIN32)
|
|
{"WIN32", 1},
|
|
#else
|
|
{"WIN32", 0},
|
|
#endif
|
|
#if defined(WIN32_PLATFORM_HPCPRO)
|
|
{"WIN32_PLATFORM_HPCPRO", 1},
|
|
#else
|
|
{"WIN32_PLATFORM_HPCPRO", 0},
|
|
#endif
|
|
#if defined(WIN32_PLATFORM_WFSP)
|
|
{"WIN32_PLATFORM_WFSP", 1},
|
|
#else
|
|
{"WIN32_PLATFORM_WFSP", 0},
|
|
#endif
|
|
#if defined(WINNT)
|
|
{"WINNT", 1},
|
|
#else
|
|
{"WINNT", 0},
|
|
#endif
|
|
#if defined(WIN_CE)
|
|
{"WIN_CE", 1},
|
|
#else
|
|
{"WIN_CE", 0},
|
|
#endif
|
|
#if defined(WIN_CE_POCKETPC)
|
|
{"WIN_CE_POCKETPC", 1},
|
|
#else
|
|
{"WIN_CE_POCKETPC", 0},
|
|
#endif
|
|
#if defined(WIN_CE_PS2xx)
|
|
{"WIN_CE_PS2xx", 1},
|
|
#else
|
|
{"WIN_CE_PS2xx", 0},
|
|
#endif
|
|
#if defined(WIN_CE_SMARTPHONE)
|
|
{"WIN_CE_SMARTPHONE", 1},
|
|
#else
|
|
{"WIN_CE_SMARTPHONE", 0},
|
|
#endif
|
|
#if defined(WIZARD)
|
|
{"WIZARD", 1},
|
|
#else
|
|
{"WIZARD", 0},
|
|
#endif
|
|
#if defined(X11_GRAPHICS)
|
|
{"X11_GRAPHICS", 1},
|
|
#else
|
|
{"X11_GRAPHICS", 0},
|
|
#endif
|
|
#if defined(ZEROCOMP)
|
|
{"ZEROCOMP", 1},
|
|
#else
|
|
{"ZEROCOMP", 0},
|
|
#endif
|
|
#if defined(ZLIB_COMP)
|
|
{"ZLIB_COMP", 1},
|
|
#else
|
|
{"ZLIB_COMP", 0},
|
|
#endif
|
|
#if defined(__BEOS__)
|
|
{"__BEOS__", 1},
|
|
#else
|
|
{"__BEOS__", 0},
|
|
#endif
|
|
{0,0}
|
|
};
|
|
/* End of file */
|