Article View: gnu.gcc.help
Article #52977possibly two new gcc exhancements...
From: Gray Watson
Date: Fri, 27 Mar 1992 17:09
Date: Fri, 27 Mar 1992 17:09
26 lines
1449 bytes
1449 bytes
Not a help-gcc but...
I would like to put a request in for two new gcc features.
a) A primitive that returns the address of the caller to a function (the
callee). I could have made use of such a beast for internal program
debugging numerous times. I have little to no understanding if this is
possible/portable/maintainable or not.
b) I think a vote should be taken on an extension to cpp to handle
variable argument macros. Sound goofy? It is :-).
#define vmacro (...) (void)printf(...)
/* '...' will absorb as many arguments as possible and regurgite them
to the '...' in the destination code, comma seperated. */
Example:
main() { vmacro("hello %s\n", "world"); }
would become:
main() { (void)printf("hello %s\n", "world"); }
I should have patches for this in an hour or three, if anyone cares.
thanks,
gray
Technical Details
Message-ID:
<9203271709.AA13083@antaire.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!antaire.COM!grayShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4d64fa44e758b7e9,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-03-27 09:09:25 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!antaire.COM!gray From: gray@antaire.COM (Gray Watson) Subject: possibly two new gcc exhancements... Message-ID: <9203271709.AA13083@antaire.com> Sender: daemon@cis.ohio-state.edu Reply-To: Gray.Watson@antaire.com Organization: Antaire Corporation, Pittsburgh, PA, USA Distribution: gnu Date: Fri, 27 Mar 1992 17:09:25 GMT Lines: 26