www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/02/02:50:37

Date: Mon, 2 Mar 1998 09:50:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: HackerOC3 <hackeroc3 AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Utilities
In-Reply-To: <19980301233501.SAA06640@ladder03.news.aol.com>
Message-ID: <Pine.SUN.3.91.980302095004.15685H-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019