ijalab has asked for the wisdom of the Perl Monks concerning the following question:
My intention is to replace func1, func2, func3 with func1_main, func2_main, func3_main....I see lot of advices, but quite confused as I am very new to PERL as to which method i should follow. The code base is big and there are lot of files and other open close braces in if else statements etc.., so, i would like to know any parser that exist in PERL to do this intended function.int func1(struct commandId) { do(); return ( SUCCESS ); } void func2(struct commandId) { do(); return ( SUCCESS ); } float func3(struct commandId) { do(); return ( SUCCESS ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Identifying functions in a c file and replacing with a keyword
by marto (Cardinal) on Mar 18, 2013 at 09:51 UTC | |
|
Re: Identifying functions in a c file and replacing with a keyword
by tobyink (Canon) on Mar 18, 2013 at 10:48 UTC | |
by ijalab (Initiate) on Mar 18, 2013 at 11:30 UTC | |
by syphilis (Archbishop) on Mar 18, 2013 at 11:42 UTC | |
by ijalab (Initiate) on Mar 18, 2013 at 11:58 UTC | |
by marto (Cardinal) on Mar 18, 2013 at 12:30 UTC | |
| |
by tobyink (Canon) on Mar 18, 2013 at 11:45 UTC |