www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/21/15:00:47

Date: Tue, 21 Jun 1994 14:13:49 -0400 (EDT)
From: Chris Tate <FIXER AT FAXCSL DOT DCRT DOT NIH DOT GOV>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: More RCS questions

Actually, just one.

The default comment leader for .h files is " * ", assuming that .h files
have the (common) C-style header comment format

/*
 * Comments...
 *
 * $Log$
 */

Now, I'm writing C++ apps, and I'd like to have my .h files given the
same comment leader as the default C++, namely "// ".  Unfortunately,
I haven't been able to figure out how to specify a comment leader that
has a space in it manually.  The space character between the comment
characters '//' and the comment body really improves readability.

Theoretically, the -c option to 'rcs' lets you specify the comment leader
for a string.  However, no quoting mechanism I've tried preserves a
space character.  I've tried -c"// ", -c'// ', and -c`// `, to no avail.

Does anyone know how to specify a comment leader that contains an
embedded space to 'rcs'?

----------------------------------------------------------------------------
Christopher Tate             |  "There are 0 grams of fat in Mountain Dew.
MSD, Inc.                    |    That means it's good for you, right?"
fixer AT faxcsl DOT dcrt DOT nih DOT gov    |         - Mike Wellman, in c.s.m.p

- Raw text -


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