| # comments can be trouble (e.g. ffree()) |
| if ( (c = match(prev, /\/\*.*\*\/$/)) != 0 ) { |
| comment = substr(prev, c) |
| sub(/\/\*.*\*\/$/, "", prev) |
| for (i = 2; i <= n; i += 2) |
| arglist = arglist args[i] |
| gsub(/\(\*f\)\(Tchar\)/, "f", arglist) # special case for n4.c |
| gsub(/\[[0-9]+\]/, "", arglist) # for n8.c |
| gsub(/[*()\[\]]/, "", arglist) # discard noise characters *()[] |
| gsub(/,/, ", ", arglist) # space nicely |
| sub(/\(.*\)/, "(" arglist ")", prev) # reconstruct |
| gsub(/\(\*f\)\(Tchar\)/, "(*f)()", x) # special case for n4.c |