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

Diff of /m4/m4/builtin.c

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

revision 1.6 by gary, Sun Aug 19 10:53:56 2001 UTC revision 1.7 by gary, Mon Aug 20 19:42:38 2001 UTC
# Line 31  extern int pclose (); Line 31  extern int pclose ();
31  /* Find the builtin, which has NAME.  If BP argument is supplied  /* Find the builtin, which has NAME.  If BP argument is supplied
32     then search only in table BP.  */     then search only in table BP.  */
33  const m4_builtin *  const m4_builtin *
34  m4_builtin_find_by_name (bp, name)  m4_builtin_find_by_name (const m4_builtin *bp, const char *name)
      const m4_builtin *bp;  
      const char *name;  
35  {  {
36    lt_dlhandle   handle  = NULL;    lt_dlhandle   handle  = NULL;
37    
# Line 53  m4_builtin_find_by_name (bp, name) Line 51  m4_builtin_find_by_name (bp, name)
51  }  }
52    
53  const m4_builtin *  const m4_builtin *
54  m4_builtin_find_by_func (bp, func)  m4_builtin_find_by_func (const m4_builtin *bp, m4_builtin_func *func)
      const m4_builtin *bp;  
      m4_builtin_func *func;  
55  {  {
56    lt_dlhandle   handle  = NULL;    lt_dlhandle   handle  = NULL;
57    
# Line 79  m4_builtin_find_by_func (bp, func) Line 75  m4_builtin_find_by_func (bp, func)
75     BP.  MODE is SYMBOL_INSERT or SYMBOL_PUSHDEF.  TRACED defines whether     BP.  MODE is SYMBOL_INSERT or SYMBOL_PUSHDEF.  TRACED defines whether
76     NAME is to be traced.  */     NAME is to be traced.  */
77  void  void
78  m4_builtin_define (handle, name, bp, mode, traced)  m4_builtin_define (const lt_dlhandle handle, const char *name,
79       const lt_dlhandle handle;                     const m4_builtin *bp, m4_symbol_lookup mode,
80       const char *name;                     boolean traced)
      const m4_builtin *bp;  
      m4_symbol_lookup mode;  
      boolean traced;  
81  {  {
82    m4_symbol *symbol;    m4_symbol *symbol;
83    
# Line 104  m4_builtin_define (handle, name, bp, mod Line 97  m4_builtin_define (handle, name, bp, mod
97  }  }
98    
99  void  void
100  m4_builtin_table_install (handle, table)  m4_builtin_table_install (const lt_dlhandle handle,
101       const lt_dlhandle handle;                            const m4_builtin *table)
      const m4_builtin *table;  
102  {  {
103    const m4_builtin *bp;    const m4_builtin *bp;
104    char *string;    char *string;
# Line 128  m4_builtin_table_install (handle, table) Line 120  m4_builtin_table_install (handle, table)
120     TEXT.  MODE destinguishes between the "define" and the "pushdef" case.     TEXT.  MODE destinguishes between the "define" and the "pushdef" case.
121     It is also used from main ().  */     It is also used from main ().  */
122  void  void
123  m4_macro_define (handle, name, text, mode)  m4_macro_define (const lt_dlhandle handle, const char *name,
124       const lt_dlhandle handle;                   const char *text, m4_symbol_lookup mode)
      const char *name;  
      const char *text;  
      m4_symbol_lookup mode;  
125  {  {
126    m4_symbol *symbol;    m4_symbol *symbol;
127    
# Line 154  m4_macro_define (handle, name, text, mod Line 143  m4_macro_define (handle, name, text, mod
143  }  }
144    
145  void  void
146  m4_macro_table_install (handle, table)  m4_macro_table_install (const lt_dlhandle handle, const m4_macro *table)
      const lt_dlhandle handle;  
      const m4_macro *table;  
147  {  {
148    const m4_macro *mp;    const m4_macro *mp;
149    

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

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