View Single Post
Posts: 75 | Thanked: 78 times | Joined on Jan 2010 @ Germany
#984
I used some perl magic to grant DocScrutinizers wish of having DBG-statements in every function in usb/.

just call the attached perl-script with a parameter (either a single .c file or a directory => it will recursively process each .c file).

the script makes a backup of each .c file and adds DBG-statements in every function and before every return-statement or end of function.

ATTENTION: the script uses the program "indent" to generate homogeneous code to avoid parsing errors (the "parser" is not very foolproof). The program must thus be installed, and the line-numbers may not be the same as in the original source-files.
Attached Files
File Type: txt insert_dbg.pl.txt (1.7 KB, 175 views)
 

The Following User Says Thank You to hcm For This Useful Post: