home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_07_02
/
v7n2081b.txt
< prev
next >
Wrap
Text File
|
1988-12-19
|
1KB
|
35 lines
/[()\[\]{}]/
{
braces = braces + match( $0, @\{@ );
braces = braces - match( $0, @'\{'@ );
braces = braces - match( $0, @\}@ );
braces = braces + match( $0, @'\}'@ );
}
/[A-Za-z][A-Za-Z0-9_]*: *(/
{
if ( braces == 0 )
{
i = 1;
while ( i < NF )
{
if ( match( $i, @[A-Za-z][A-Za-z0-9_]*(@ ) != 0 )
{
j = strlen( $i );
while ( j )
{
if ( ($i)[j] == 40 )
{
($i)[j] = 0;
j = 1;
}
j--;
}
# ($i)[ strlen( $i ) - 1] = '\0';
printf( " MON_NAME( %s ),\n", $i );
}
i++;
}
}
}
# END { printf( " };\n" ); }