🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by root Mon, 08 Jan 1996 00:00
Handling `//' Comments
#6286
Author: root
Date: Mon, 08 Jan 1996 00:00
7 lines
881 bytes
One of the nuisances in porting Dos/Windows code to Unix is that gcc
expects traditional `/* ... */' comments and most newer Dos and Windows
code uses `//'.  What is needed is either a minor extension to gcc in
future releases or a Unix utility that scans all text files in the current
directory and converts comments.  For the record, such a program takes
about 38 KB and uses the `dirwalk' code in Kernighan and Ritchie "The
C Programming Language, XX Edition".
Re: Handling `//' Comments
#6288
Author: Melvin Smith
Date: Mon, 08 Jan 1996 00:00
3 lines
521 bytes
Try compiling with g++ .

-Melvin Smith
Re: Handling `//' Comments
#6196
Author: Eli Zaretskii
Date: Tue, 09 Jan 1996 00:00
11 lines
1002 bytes
On 8 Jan 1996, root wrote:

> One of the nuisances in porting Dos/Windows code to Unix is that gcc
> expects traditional `/* ... */' comments and most newer Dos and Windows
> code uses `//'.  What is needed is either a minor extension to gcc in

What is needed is careful study of the docs, IMHO.  Gcc already has an 
option to do this: use the `-Wa,-lang-c-c++-comments' switch to gcc.  I 
think that latest versions of gcc (2.7.x) support this with even less 
hassle, but I'm not sure.  The above switch works with gcc 2.6.3.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads