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

Diff of /m4/modules/modtest.c

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

revision 1.7 by gary, Fri Oct 12 19:57:29 2001 UTC revision 1.8 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 1999, 2000, 2001 Free Software Foundation, Inc.     Copyright 1999, 2000, 2001, 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 28  Line 28 
28  #define m4_builtin_table        modtest_LTX_m4_builtin_table  #define m4_builtin_table        modtest_LTX_m4_builtin_table
29  #define m4_macro_table          modtest_LTX_m4_macro_table  #define m4_macro_table          modtest_LTX_m4_macro_table
30    
31    #define export_test             modtest_LTX_export_test
32    
33    
34  /*              function        macros  blind minargs maxargs */  /*              function        macros  blind minargs maxargs */
35  #define builtin_functions                                       \  #define builtin_functions                                       \
36          BUILTIN (test,          FALSE,  FALSE,  1,      1)          BUILTIN (test,          FALSE,  FALSE,  1,      1)
# Line 92  M4BUILTIN_HANDLER (test) Line 95  M4BUILTIN_HANDLER (test)
95    assert (obs != 0);    assert (obs != 0);
96    obstack_grow (obs, s, strlen(s));    obstack_grow (obs, s, strlen(s));
97  }  }
98    
99    
100    /**
101     * export_test()
102     **/
103    boolean
104    export_test (const char *foo)
105    {
106      if (foo)
107        fprintf (stderr, "%s\n", foo);
108      return (boolean) (foo != 0);
109    }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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