1 /* GNU m4 -- A simple macro processor
2 Copyright (C) 2003, 2006, 2007, 2008 Free Software Foundation, Inc.
4 This file is part of GNU M4.
6 GNU M4 is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 GNU M4 is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #define MODULES_M4_H 1
23 #include <m4/m4module.h>
27 /* This structure is used to pass the information needed
28 from call to call in m4_dump_symbols. */
31 m4_obstack
*obs
; /* obstack for table */
32 const m4_string
*base
; /* base of table */
33 int size
; /* size of table */
34 } m4_dump_symbol_data
;
37 /* Types used to cast imported symbols to, so we get type checking
38 across the interface boundary. */
39 typedef void m4_sysval_flush_func (m4
*context
, bool report
);
40 typedef void m4_set_sysval_func (int value
);
41 typedef void m4_dump_symbols_func (m4
*context
, m4_dump_symbol_data
*data
,
42 size_t argc
, m4_macro_args
*argv
,
44 typedef const char *m4_expand_ranges_func (const char *s
, size_t *len
,
46 typedef void m4_make_temp_func (m4
*context
, m4_obstack
*obs
,
47 const m4_call_info
*macro
, const char *name
,
48 size_t len
, bool dir
);
52 #endif /* !MODULES_M4_H */