Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate macro.h @ 27:01c3a2088ab4
fix some more bugs
author | David A. Holland |
---|---|
date | Mon, 20 Dec 2010 05:01:18 -0500 |
parents | c08a947d8f30 |
children | 76c114899f63 |
rev | line source |
---|---|
17 | 1 #include <stdbool.h> |
2 #include <stddef.h> | |
3 | |
4
ee9a66b87c70
Initial version of toplevel and options handling.
David A. Holland
parents:
diff
changeset
|
4 struct place; |
ee9a66b87c70
Initial version of toplevel and options handling.
David A. Holland
parents:
diff
changeset
|
5 |
17 | 6 void macros_init(void); |
7 void macros_cleanup(void); | |
8 | |
18 | 9 void macro_define_plain(struct place *, const char *macro, |
10 struct place *, const char *expansion); | |
11 void macro_define_params(struct place *, const char *macro, | |
12 struct place *, const char *params, | |
13 struct place *, const char *expansion); | |
4
ee9a66b87c70
Initial version of toplevel and options handling.
David A. Holland
parents:
diff
changeset
|
14 void macro_undef(const char *macro); |
15 | 15 bool macro_isdefined(const char *macro); |
16 | |
17 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined); | |
18 | |
19 void macro_sendline(struct place *, char *buf, size_t len); | |
20 void macro_sendeof(struct place *); |