Add tests, fixes for tests, reinstate and type-convert stuff marked "bitrot"
[ccom.git] / uniqify1.sed
1 s/@/ATSIGN/g
2 s/^/@/
3 s/$/@/
4 s/[^A-Za-z0-9_]\+/@&@/g
5
6 # functions
7 s/@\(rcexpr\)@\([        ]*(\)/@\11@\2/g
8 s/@\(error\)@\([         ]*(\)/@\11@\2/g
9 s/@\(pswitch\)@\([       ]*(\)/@\11@\2/g
10 s/@\(cbranch\)@\([       ]*(\)/@\11@\2/g
11 s/@\(label\)@\([         ]*(\)/@\11@\2/g
12 s/@\(branch\)@\([        ]*(\)/@\11@\2/g
13 s/@\(werror\)@\([        ]*(\)/@\11@\2/g
14 s/@\(decref\)@\([        ]*(\)/@\11@\2/g
15 s/@\(incref\)@\([        ]*(\)/@\11@\2/g
16
17 # variables
18 s/@\(opdope\)@/@\11@/g
19 s/@\(isn\)@/@\11@/g
20
21 # values
22 s/@\(TNULL\)@/@\11@/g
23
24 # types
25 s/@\(struct@[    ]*@tnode\)@/@\11@/g
26 s/@\(struct@[    ]*@\)tname@/@\1nnode1@/g
27 s/@\(struct@[    ]*@\)xtname@/@\1xnode1@/g
28 s/@\(struct@[    ]*@\)tconst@/@\1cnode1@/g
29 s/@\(struct@[    ]*@\)lconst@/@\1lnode1@/g
30 s/@\(struct@[    ]*@\)ftconst@/@\1fnode1@/g
31 s/@\(union@[     ]*@tree\)@/@\11@/g
32
33 s/@//g
34 s/ATSIGN/@/g