URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 818 |
NR == 1 {
|
NR == 1 {
|
FS="\"";
|
FS="\"";
|
print "/* ==> Do not modify this file!! It is created automatically"
|
print "/* ==> Do not modify this file!! It is created automatically"
|
printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
|
printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
|
print "#include <stdio.h>"
|
print "#include <stdio.h>"
|
print "#include \"ansidecl.h\""
|
print "#include \"ansidecl.h\""
|
}
|
}
|
|
|
{
|
{
|
if (curfun != FUNCTION)
|
if (curfun != FUNCTION)
|
{
|
{
|
if (curfun)
|
if (curfun)
|
print "}"
|
print "}"
|
curfun = FUNCTION
|
curfun = FUNCTION
|
print ""
|
print ""
|
print "void ", FUNCTION, "(FILE *);"
|
print "void ", FUNCTION, "(FILE *);"
|
print "void";
|
print "void";
|
printf "%s (file)\n", FUNCTION
|
printf "%s (file)\n", FUNCTION
|
print " FILE *file;";
|
print " FILE *file;";
|
print "{";
|
print "{";
|
}
|
}
|
printf " fputs (\"";
|
printf " fputs (\"";
|
for (i = 1; i < NF; i++)
|
for (i = 1; i < NF; i++)
|
printf "%s\\\"", $i;
|
printf "%s\\\"", $i;
|
printf "%s\\n\", file);\n", $NF;
|
printf "%s\\n\", file);\n", $NF;
|
}
|
}
|
|
|
END { print "}" }
|
END { print "}" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.