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

Diff of /m4/modules/m4.c

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

revision 1.51 by gary, Thu Jul 24 14:21:03 2003 UTC revision 1.52 by gary, Tue Aug 12 15:33:57 2003 UTC
# Line 1  Line 1 
1  /* GNU m4 -- A simple macro processor  /* GNU m4 -- A simple macro processor
2     Copyright 2000 Free Software Foundation, Inc.     Copyright 2000, 2002, 2003 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 49  extern int errno; Line 49  extern int errno;
49  #define m4_export_table         m4_LTX_m4_export_table  #define m4_export_table         m4_LTX_m4_export_table
50  #define m4_builtin_table        m4_LTX_m4_builtin_table  #define m4_builtin_table        m4_LTX_m4_builtin_table
51    
52  /* Exit code from last "syscmd" command.  */  #define m4_set_sysval           m4_LTX_m4_set_sysval
53  int  m4_sysval = 0;  #define m4_sysval_flush         m4_LTX_m4_sysval_flush
54    #define m4_dump_symbols         m4_LTX_m4_dump_symbols
 void m4_sysval_flush (m4 *context);  
 void m4_dump_symbols (m4 *context, m4_dump_symbol_data *data, int argc,  
                       m4_symbol_value **argv, boolean complain);  
   
 m4_export m4_export_table[] = {  
   { "m4_sysval",                &m4_sysval },  
   { "m4_sysval_flush",          &m4_sysval_flush },  
   { "m4_dump_symbols",          &m4_dump_symbols },  
   
   { NULL,                       NULL }  
 };  
55    
56  /* Maintain each of the builtins implemented in this modules along  /* Maintain each of the builtins implemented in this modules along
57     with their details in a single table for easy maintenance.     with their details in a single table for easy maintenance.
# Line 423  M4BUILTIN_HANDLER (defn) Line 412  M4BUILTIN_HANDLER (defn)
412  /* This section contains macros to handle the builtins "syscmd"  /* This section contains macros to handle the builtins "syscmd"
413     and "sysval".  */     and "sysval".  */
414    
415    /* Exit code from last "syscmd" command.  */
416    int  m4_sysval = 0;
417    
418    void
419    m4_set_sysval (int value)
420    {
421      m4_sysval = value;
422    }
423    
424  void  void
425  m4_sysval_flush (m4 *context)  m4_sysval_flush (m4 *context)
426  {  {

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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