source: libcfa/prelude/prototypes.sed @ 218096f

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 218096f was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Moved up many directories in source

  • Property mode set to 100644
File size: 1.0 KB
Line 
1s/; /;\n/g                              #Make multi declaration lines into multiple lines
2/targetm/s/.*//                         #Remove targetm declarations
3/__Unsupported/s/.*//                   #Remove Unsupported types declarations
4s/void \(const char \*\)0\(\);//        #Remove void (const char \*)0();
5s/\"//g                                         #Remove extraenous quotes in declarations
6/__builtin_/s/_ /_/g                    #Remove extraenous spaces in declarations
7
8#Fix gcc overloading
9# various sed rules for the gcc sync builtins which are overloaded
10# kept here because they generate an acceptable approximate of the correct prototypes
11
12#/__sync_/s/_[0-9][0-9]*\(.*\)/\(\);/g  #hack since it will accept any parameters
13#/__atomic_/s/_[0-9][0-9]*\(.*\)/\(\);/g        #hack since it will accept any parameters
14
15#/_16/s/void \*/__int128 \*/g
16#/_8/s/void \*/long long int \*/g
17#/_4/s/void \*/int \*/g
18#/_2/s/void \*/short \*/g
19#/_1/s/void \*/char \*/g
20
21#s/([a-zA-Z0-9_ ]+)\s+__sync([a-z_]+)_([0-9]+)\((.*)\);/\1 __sync\2\(\4\,...); \1 __sync\2_\3\(\4\,...);/
22#s/([a-zA-Z0-9_ ]+)\s+__atomic([a-z_]+)_([0-9]+)\((.*)\);/\1 __atomic\2\(\4\); \1 __atomic\2_\3\(\4\);/
Note: See TracBrowser for help on using the repository browser.