Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
hi,
I have to write a perl program that lists out all the functions in a given C source file & prints the functions called by each of them. To match the called functions, I first had the regex .But this failed to match the following: if((err=func1(a,b))!=0). So I modified it to (/([a-zA-Z][a-zA-Z0-9_-]*)\s*\([^)(]*\)/). Still, it fails for functions called like this. if((err=func1(a,b,(*c)()). Is there any way to reliably parse them ? any help would be greatly appreciated. jai In reply to regex 2 find C function dependencies by jai
|
|