/[m4]/m4/m4/macro.c
ViewVC logotype

Diff of /m4/m4/macro.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by akim, Fri Oct 19 09:43:51 2001 UTC revision 1.22 by gary, Thu Jun 5 16:06:00 2003 UTC
# Line 46  m4_expand_input (void) Line 46  m4_expand_input (void)
46    
47    
48  /* Expand one token, according to its type.  Potential macro names  /* Expand one token, according to its type.  Potential macro names
49     (TOKEN_WORD) are looked up in the symbol table, to see if they have a     (M4_TOKEN_WORD) are looked up in the symbol table, to see if they have a
50     macro definition.  If they have, they are expanded as macros, otherwise     macro definition.  If they have, they are expanded as macros, otherwise
51     the text are just copied to the output.  */     the text are just copied to the output.  */
52  static void  static void
# Line 75  expand_token (struct obstack *obs, m4_to Line 75  expand_token (struct obstack *obs, m4_to
75            ++p;            ++p;
76    
77          symbol = m4_symbol_lookup (p);          symbol = m4_symbol_lookup (p);
78          if (symbol == NULL || SYMBOL_TYPE (symbol) == M4_TOKEN_VOID          if (symbol == NULL
79                || SYMBOL_TYPE (symbol) == M4_TOKEN_VOID
80              || (SYMBOL_TYPE (symbol) == M4_TOKEN_FUNC              || (SYMBOL_TYPE (symbol) == M4_TOKEN_FUNC
81                  && BIT_TEST (SYMBOL_FLAGS (symbol), TOKEN_BLIND_ARGS_BIT)                  && BIT_TEST (SYMBOL_FLAGS (symbol), TOKEN_BLIND_ARGS_BIT)
82                  && !M4_IS_OPEN(m4_peek_input ())))                  && !M4_IS_OPEN (m4_peek_input ())))
83            {            {
84              m4_shipout_text (obs, TOKEN_TEXT (td),              m4_shipout_text (obs, text, strlen (text));
                              strlen (TOKEN_TEXT (td)));  
85            }            }
86          else          else
87            expand_macro (p, symbol);            expand_macro (p, symbol);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26