finding func. declaration in awk
Abdenacer Moussaoui
nacer at hpmcaa.mcm.hp.com
Wed Mar 28 06:16:18 AEST 1990
Can anyone provide awk code to recognize C function interface?
I would like to insert text before and after function declarations
as in:
/* start marker */
static int ErrHandler(
DBPROCESS * dbproc,
int severity,
int oserr )
/* end marker */
{
..body..
}
I am not very familiar with all of what can go into C functions declarations
(ie. extern, void, PASCAL, VOID, ...) to be able to generalize. Can this
be done? or are C function declarations too ambiguous to handle with
awk and regular expressions?
Any hints are very appreciated? the code does not have to be full proof,
handling most cases will do.
Thanks to all of you out there.. or is out here :-)
More information about the Comp.lang.c
mailing list