README

comments/README · 572 B

From the archive comments.tar.gz

Download the archive   « Back to the archive contents

Comments v1.0
Richard Lawrence 2001
richard@custard.org

This code correctly comments #else and #endif's so they can be easily
paired up with their #if's, #ifdef's and #ifndef's.

Usage:    comments.pl filename.c > newfilename.c

Use at your own risk. Not fully tested.

Example:

#ifdef FISH
wibble
#ifndef CHIPS
wobble
#else
bongo
#else
babble
#endif
whoop
#endif

after conversion becomes:

#ifdef FISH
wibble
#ifndef CHIPS
wobble
#else /* CHIPS */
bongo
#endif /* !CHIPS */
whoop
#endif /* FISH */


Got a question? Updated the code? Contact me at richard@custard.org

Site Stats

Snippets: 1791
Codebases: 571