URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [contrib/] [filter_params.pl] - Rev 12
Compare with Previous | Blame | View Log
#!/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; }