hdrmacro.c #2

  • //
  • guest/
  • alan_burlison/
  • jam/
  • src/
  • hdrmacro.c
  • Commits
# Change User Description Committed
#2 1062 alan_burlison Mismerged with the wrong version on FT/Boot jam.
 Start over.
#1 1059 alan_burlison Merged in //guest/david_turner/jam/src/...
//guest/david_turner/jam/src/hdrmacro.c
#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..