/* * Copyright 1993, 1995 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ /* * hdrmacro.h - parses header files for #define MACRO <filename> or * #define MACRO "filename" definitions */ void macro_headers( TARGET *t ); char* macro_header_get( const char* macro_name );
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 595 | david_turner |
Adding support for the new HDRMACRO builtin. The latter is used to specify a file containing macro definitions that are later used in #include statements, as in: #include MYFILE_H A line like: HDRMACRO mydefs.h ; will parse the file "mydefs.h" for lines of the form: #define MACRO <.......> and #define MACRO "......." and will store their definition in a global dictionary. When a line like #include MACRO is later found during header file processing, the macro will be resolved accordingly.. |