🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #465

GCPP extension

#465
From: meissner
Date: Fri, 09 Oct 1992 12:01
30 lines
1453 bytes
(question about adding an extension to automatically add trailing
slashes for macro definitions):

| this is very difficult to edit, boring, and often one forget the backslash, ...
| so why not extend the preproc to handle a more complex construct like
| 
| #defmacro foobar(arg_one, arg_two)	{
| 					  if (dummy_function (arg_one)) 
| 					    arg_two = other_dummy (arg_two); 
| 					  else 
| 					    arg_two = arg_one; 
| 					}
| #endmacro

I think this proposed extension should not be added to GCC.  For one
thing, you have people that do things like:

	#define BEGIN {
	#define END }

and such.  I have seen real live exception packages written that have
macros open and close scopes with {}, so it's not just Pascal-dweebs
trying to covert C into their language.  I think that it will break
more code than it's worth.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <9210092001.AA28325@curley.osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Subject: GCPP extension
Message-ID: <9210092001.AA28325@curley.osf.org>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: meissner@osf.ORG
Distribution: gnu
Date: Fri, 9 Oct 1992 12:01:05 GMT
Lines: 30