comparison macro.h @ 172:3e7e696fe558

Clean up the mess Joerg made of apply_builtin_macros().
author David A. Holland
date Fri, 12 Jun 2015 02:14:45 -0400
parents 8cef6d7227a8
children 6119608a9817
comparison
equal deleted inserted replaced
171:5922e6ca6b80 172:3e7e696fe558
33 struct place; 33 struct place;
34 34
35 void macros_init(void); 35 void macros_init(void);
36 void macros_cleanup(void); 36 void macros_cleanup(void);
37 37
38 void macro_define_file(struct place *);
39 void macro_define_line(struct place *);
40 void macro_define_plain(struct place *, const char *macro, 38 void macro_define_plain(struct place *, const char *macro,
41 struct place *, const char *expansion); 39 struct place *, const char *expansion);
42 void macro_define_params(struct place *, const char *macro, 40 void macro_define_params(struct place *, const char *macro,
43 struct place *, const char *params, 41 struct place *, const char *params,
44 struct place *, const char *expansion); 42 struct place *, const char *expansion);
43 void macro_define_magic(struct place *, const char *macro);
45 void macro_undef(const char *macro); 44 void macro_undef(const char *macro);
46 bool macro_isdefined(const char *macro); 45 bool macro_isdefined(const char *macro);
47 46
48 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined); 47 char *macroexpand(struct place *, char *buf, size_t len, bool honordefined);
49 48