Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison macro.h @ 18:c08a947d8f30
deal with macro parameters
author | David A. Holland |
---|---|
date | Mon, 20 Dec 2010 01:51:47 -0500 (2010-12-20) |
parents | 76da41da923f |
children | 76c114899f63 |
comparison
equal
deleted
inserted
replaced
17:76da41da923f | 18:c08a947d8f30 |
---|---|
4 struct place; | 4 struct place; |
5 | 5 |
6 void macros_init(void); | 6 void macros_init(void); |
7 void macros_cleanup(void); | 7 void macros_cleanup(void); |
8 | 8 |
9 void macro_define(struct place *, const char *macro, | 9 void macro_define_plain(struct place *, const char *macro, |
10 struct place *, const char *expansion); | 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); | |
11 void macro_undef(const char *macro); | 14 void macro_undef(const char *macro); |
12 bool macro_isdefined(const char *macro); | 15 bool macro_isdefined(const char *macro); |
13 | 16 |
14 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined); | 17 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined); |
15 | 18 |