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