]> git.draconx.ca Git - cdecl99.git/blob - src/namespecs.sed
Restructure the type specifier check.
[cdecl99.git] / src / namespecs.sed
1 1i\
2 /*\
3  * Copyright © 2011 Nick Bowler\
4  *\
5  * License WTFPL2: Do What The Fuck You Want To Public License, version 2.\
6  * This is free software: you are free to do what the fuck you want to.\
7  * There is NO WARRANTY, to the extent permitted by law.\
8  */
9 1i\
10 /*\
11  * This file is automatically generated by namespecs.sed.\
12  */
13 /[^_[:alpha:][:space:]]/b
14 s/[[:space:]][[:space:]]*/ /g
15 h
16 s/_//g
17 y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
18 s/\([[:upper:]]*\) \([[:upper:]]*\)/case CDECL_\1_\2:/
19 p
20 x
21 s/.* //
22 s/ident//
23 s/.*/   return "&";/