Nested Comments in C -- A recent experience

Peter da Silva peter at ficc.uu.net
Sun Apr 8 02:40:45 AEST 1990


In article <207 at caslon.cs.arizona.edu> dms at cs.arizona.edu (David Michael Shackelford) writes:
> Since everyone is saying that nested comments are *non-standard*, why would
> a compiler's inclusion of the nested comment feature break programs?

>From B News source, file "defs.h". Consider what this code looks like
to the compiler if comments nest:

				/* Default xmit command - remove -z if	*/
#define DFTXMIT	"uux - -r -n %s!rnews < %s" /* your uux can't do it	*/
/* #define UXMIT	"uux -r -z -c %s!rnews '<' %s" /* If uux -c is ok	*/
#define DFTEDITOR "aed"		/* Default editor, see also postnews.	*/
/* #define UUPROG "euuname"	/* omit for uuname, put in LIBDIR	*/
#define MANUALLY		/* Don't execute rmgroups, just notify.	*/
#define NONEWGROUPS		/* Don't create new groups, just notify.*/
/* #define SPOOLNEWS		/* Spool incoming rnews, don't process	*/
/* #define SPOOLINEWS		/* Spool local inews, don't process	*/
/* #define LOCALNAME 		/* There is no full name database. 	*/
-- 
 _--_|\  `-_-' Peter da Silva. +1 713 274 5180. <peter at ficc.uu.net>.
/      \  'U`
\_.--._/
      v



More information about the Comp.lang.c mailing list