C preprocessor portability question -- initial #

Joseph S. D. Yao jsdy at hadron.UUCP
Wed Nov 26 15:14:55 AEST 1986


In article <1153 at cit-vax.Caltech.Edu> mangler at cit-vax.Caltech.Edu (System Mangler) writes:
>In article <2484 at phri.UUCP>, roy at phri.UUCP (Roy Smith) writes:
>>	Back in the "good old days" (i.e. v6) a c source file was only run
>> through the preprocessor if the first character in the file was a '#'.
>Now I understand why it's so rare to see identifying comments at
>the beginning of Unix source files!

I don't see that.  A bunch of software came out in those days:
--------------------
#

/*********************************************************************\
**
** myprog - my program
**
** Syntax:
**	myprog [ -option ] [ files ... ]
	... etc.
**
\*********************************************************************/

#etc.
--------------------
I authored some of it, and tried to encourage this kind of
documentation in my group.  These days, we just lop the first
two lines.
(For people with line truncators, line
3 ends "**\" and line 11+N ends "**/",
just for pretty.)
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}
			jsdy at hadron.COM (not yet domainised)



More information about the Comp.unix.wizards mailing list