]> git.draconx.ca Git - cdecl99.git/commitdiff
Allow (and ignore) underscores in the list of type names.
authorNick Bowler <nbowler@draconx.ca>
Thu, 23 Jun 2011 00:30:53 +0000 (20:30 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 23 Jun 2011 00:30:53 +0000 (20:30 -0400)
This allows the "true" keywords to be used in the list.

src/validtypes.in
src/validtypes.sed

index f81b4240d37d7fda7939ed4e7f09135aa43c67d1..f2f7bf29a9a0ff81390e8a31c17a438eb7190dac 100644 (file)
@@ -26,13 +26,13 @@ signed long long
 signed long long int
 unsigned long long
 unsigned long long int
-bool
+_Bool
 float
 double
 long double
-float complex
-double complex
-long double complex
+float _Complex
+double _Complex
+long double _Complex
 struct
 union
 enum
index fd45fde7871f4f1bd57a58c7a3d00e7c635d01d1..286e89aebc1c1c609bebcbe150b4716129089797 100644 (file)
@@ -1,8 +1,10 @@
 1i\
 /* This file is automatically generated by validtypes.sed */
-/[^[:alpha:][:space:]]/b
+/[^_[:alpha:][:space:]]/b
+s/[[:space:]][[:space:]]*/ /g
+s/_//g
 y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
-s/LONG[[:space:]][[:space:]]*LONG/LLONG LONG/
+s/LONG LONG/LLONG LONG/
 s/[[:upper:]][[:upper:]]*/(1ul<<CDECL_TYPE_&)/g
-s/[[:space:]][[:space:]]*/|/g
+s/ /|/g
 s/.*/case &:/