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 |
|
|
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 |
|
|
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 |
|
|
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; |
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 |
|
|
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 |
|
|