gcc/contrib/filter_params.pl
Ben Elliston d0e71b9c05 filter_params.pl: Typo fix.
* filter_params.pl: Typo fix.
	* filter_knr2ansi.pl: Likewise.

From-SVN: r102006
2005-07-14 13:38:20 +10:00

15 lines
392 B
Perl
Executable File

#!/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;
}