perl -ne'print if /^[A-Z_]+ [a-z_0-9]+ = {/' *.c
does that catch all of the array declarations?
Does it catch anything else?
If that works, you're home free (almost) :). At least as far as marking the array starts goes...
Let's back up a bit, again. What were you thinking of doing with the tables if you can find them? Extract the data to some more maintainable format and have scripts to go back and forth? Just format them in place so they're easier to read/edit? |