#166315 sgrep: C macro C_FUNCS not working properly

Package:
sgrep
Source:
sgrep
Description:
tool to search a file for structured pattern
Submitter:
Date:
2005-07-18 03:15:37 UTC
Severity:
wishlist
#166315#5
Date:
2002-10-25 12:09:25 UTC
From:
To:
using "sgrep 'C_FUNCS'" on the following file:
int i = f();
void f (void)
{}

Gives not the expected result (==>outputs nothing).
However, it does on the following file:
/* int i = f(); */
void f (void)
{}
==>outputs "void f (void)"

Furthermore, the following command gives the expected result:
containing C_PAREN' trace_min.c | sgrep '"\n" _. "\n" not containing ";"'

It is not clear whether the bug is in the macro or in the program.

Please confirm it can be reproduced.

Suggested fix: Warn user who read man (in BUGS section) if appropriate.