Mail Archives: djgpp/1998/03/02/02:50:37
On 1 Mar 1998, HackerOC3 wrote:
> change // style comments to /*...*/ syle comments
The DJGPP FAQ list (v2/faq210b.zip from the same place you get DJGPP)
has one solution in section 8.3. Excerpt:
The following Sed command will convert a C program with C++-style
comments into a valid C source, provided you don't have the string
"//" in a character string:
sed "s?//\(.*\)?/*\1 */?" file.c > newfile.c
Sed can be found in the DJGPP distribution:
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sed118b.zip.
> alphabetize and prototype a file of functions
A program named `protoize' which is part of the GCC distribution can
add prototypes to a C program. Unfortunately, the DJGPP port of GCC
doesn't include `protoize', but you can probably find it on other
systems, like Linux, or even port it yourself if you feel motivated
enough.
I don't understand what do you mean by ``alphabetize a file of
functions''. Please explain.
- Raw text -