Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate macro.h @ 17:76da41da923f
added macro table
author | David A. Holland |
---|---|
date | Mon, 20 Dec 2010 01:15:43 -0500 |
parents | f6177d3ed5c2 |
children | c08a947d8f30 |
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 | |
15 | 9 void macro_define(struct place *, const char *macro, |
10 struct place *, const char *expansion); | |
4
ee9a66b87c70
Initial version of toplevel and options handling.
David A. Holland
parents:
diff
changeset
|
11 void macro_undef(const char *macro); |
15 | 12 bool macro_isdefined(const char *macro); |
13 | |
14 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined); | |
15 | |
16 void macro_sendline(struct place *, char *buf, size_t len); | |
17 void macro_sendeof(struct place *); |