]> git.draconx.ca Git - cdecl99.git/blobdiff - src/validtypes.sed
Allow (and ignore) underscores in the list of type names.
[cdecl99.git] / src / validtypes.sed
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 &:/