mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-16 14:57:49 +00:00
15 lines
392 B
Perl
15 lines
392 B
Perl
|
#!/usr/bin/perl
|
||
|
|
||
|
# Filters out some of the #defines used throughout the GCC sources:
|
||
|
# - GTY(()) marks declarations for gengtype.c
|
||
|
# - PARAMS(()) is used for K&R compatibility. See ansidecl.h.
|
||
|
|
||
|
while (<>) {
|
||
|
s/^\/\* /\/\*\* \@verbatim /;
|
||
|
s/\*\// \@endverbatim \*\//;
|
||
|
s/GTY[ \t]*\(\(.*\)\)//g;
|
||
|
s/[ \t]ATTRIBUTE_UNUSED//g;
|
||
|
s/PARAMS[ \t]*\(\((.*?)\)\)/\($1\)/sg;
|
||
|
print;
|
||
|
}
|