URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 265 |
Rev 384 |
#!/usr/bin/perl
|
#!/usr/bin/perl
|
|
|
# Filters out some of the #defines used throughout the GCC sources:
|
# Filters out some of the #defines used throughout the GCC sources:
|
# - GTY(()) marks declarations for gengtype.c
|
# - GTY(()) marks declarations for gengtype.c
|
# - PARAMS(()) is used for K&R compatibility. See ansidecl.h.
|
# - PARAMS(()) is used for K&R compatibility. See ansidecl.h.
|
|
|
while (<>) {
|
while (<>) {
|
s/^\/\* /\/\*\* \@verbatim /;
|
s/^\/\* /\/\*\* \@verbatim /;
|
s/\*\// \@endverbatim \*\//;
|
s/\*\// \@endverbatim \*\//;
|
s/GTY[ \t]*\(\(.*\)\)//g;
|
s/GTY[ \t]*\(\(.*\)\)//g;
|
s/[ \t]ATTRIBUTE_UNUSED//g;
|
s/[ \t]ATTRIBUTE_UNUSED//g;
|
s/PARAMS[ \t]*\(\((.*?)\)\)/\($1\)/sg;
|
s/PARAMS[ \t]*\(\((.*?)\)\)/\($1\)/sg;
|
print;
|
print;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.