Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison macro.c @ 47:2e25e55dba6b
Fix inline usage as per the version in dholland-make2.
author | David A. Holland |
---|---|
date | Sat, 30 Mar 2013 23:05:59 -0400 |
parents | ad7763329eba |
children | bbbf71859a21 |
comparison
equal
deleted
inserted
replaced
46:eaa154ded584 | 47:2e25e55dba6b |
---|---|
42 union { | 42 union { |
43 char *string; | 43 char *string; |
44 unsigned param; | 44 unsigned param; |
45 }; | 45 }; |
46 }; | 46 }; |
47 DECLARRAY(expansionitem); | 47 DECLARRAY(expansionitem, static __unused); |
48 DEFARRAY(expansionitem, ); | 48 DEFARRAY(expansionitem, static); |
49 | 49 |
50 struct macro { | 50 struct macro { |
51 struct place defplace; | 51 struct place defplace; |
52 struct place expansionplace; | 52 struct place expansionplace; |
53 unsigned hash; | 53 unsigned hash; |
55 bool hasparams; | 55 bool hasparams; |
56 struct stringarray params; | 56 struct stringarray params; |
57 struct expansionitemarray expansion; | 57 struct expansionitemarray expansion; |
58 bool inuse; | 58 bool inuse; |
59 }; | 59 }; |
60 DECLARRAY(macro); | 60 DECLARRAY(macro, static __unused); |
61 DEFARRAY(macro, ); | 61 DEFARRAY(macro, static); |
62 DECLARRAY(macroarray); | 62 DECLARRAY(macroarray, static __unused); |
63 DEFARRAY(macroarray, ); | 63 DEFARRAY(macroarray, static); |
64 | 64 |
65 static struct macroarrayarray macros; | 65 static struct macroarrayarray macros; |
66 static unsigned total_macros; | 66 static unsigned total_macros; |
67 static unsigned hashmask; | 67 static unsigned hashmask; |
68 | 68 |