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 |
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. |
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 |
{ |
{ |