9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* kc & include & comment
@ 1995-01-12  8:30 Hans-Peter
  0 siblings, 0 replies; 2+ messages in thread
From: Hans-Peter @ 1995-01-12  8:30 UTC (permalink / raw)



Hi,
i have problems to comment a include-line in a
C source file.


	C_Test cat include.c
	#include <u.h>
	void main(void) {}

	C_Test kc -c include.c
ok
	
	C_Test cat ooh_include.c
	#include <u.h>                  /* failed       */
	void main(void) {}

	C_Test kc -c ooh_include.c
	ooh_include.c:1 syntax in #include
oops

-hp






^ permalink raw reply	[flat|nested] 2+ messages in thread

* kc & include & comment
@ 1995-01-12 16:09 rob
  0 siblings, 0 replies; 2+ messages in thread
From: rob @ 1995-01-12 16:09 UTC (permalink / raw)


	C_Test cat ooh_include.c
	#include <u.h>                  /* failed       */
	void main(void) {}

It's a silly restriction of the C compilers that it can't handle comments
on preprocessor lines.  It should at least be documented.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-01-12 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-01-12  8:30 kc & include & comment Hans-Peter
1995-01-12 16:09 rob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).