🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by laman Thu, 06 Sep 1984 00:26
Bug in "cpp" (4.2BSD, System V, ...? )
#295
Author: laman
Date: Thu, 06 Sep 1984 00:26
23 lines
1071 bytes
Given the uninteresting macro definition:

#define		x()		y(a)

"Cpp" does NOT give an error message complaining about argument mismatching
for the following macro call:

	x(z);
	  ^
	  |
	opps!

Instead it expands to:

	y(a);

I think this is a bug.  "Cpp" is good about giving error messages for
mismatching arguments.  I don't think this as a feature.

Comments?  Fixes?

		Mike Laman, NCR @ Torrey Pines
		UUCP: {ucbvax,philabs,sdcsla}!sdcsvax!laman
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