diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-05-13 06:41:07 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@redhat.com> | 2004-05-13 06:41:07 +0000 |
commit | 60ac8927839c69492fc46bf03880f34820cc0570 (patch) | |
tree | a2568888a519c077427b133de9ece5879a8484a5 /contrib/filter_params.pl | |
parent | fb7359384dbf6f77df81d6bc73b0b5943c52e6d6 (diff) |
Merge tree-ssa-20020619-branch into mainline.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@81764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/filter_params.pl')
-rwxr-xr-x | contrib/filter_params.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/filter_params.pl b/contrib/filter_params.pl new file mode 100755 index 00000000000..05861e376fe --- /dev/null +++ b/contrib/filter_params.pl @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +# Filters out some of the #defines used thourghout 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; +} |