Article View: gnu.gcc.help
Article #54270argument substitution in cpp
From: Thomas Hiller
Date: Fri, 04 Jan 1991 15:24
Date: Fri, 04 Jan 1991 15:24
21 lines
1196 bytes
1196 bytes
I have a problem with the argument substitution of GNU cpp.
My macro is:
#define Ctrl(x) ('x'&037)
The GNU cpp does not substitute the x in the character string.
The standard cpp (ultrix 3.1) does.
Is this an error in GNU cpp or is my macro not conform with ANSI ?
If the latter is true, what is the correct macro.
Thanks, Thomas
--
---------------------------------------------------------
Thomas Hiller Institut fuer Mikrorechner und Automation
Universitaet Karlsruhe
Kaiserstrasse 12
D-7500 Karlsruhe
E-Mail: hiller@iravcl.ira.uka.de or
hiller@fzi.uka.de
---------------------------------------------------------
Technical Details
Message-ID:
<91.004.15:24:54@ira.uka.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!ira.uka.de!fzi.uka.de!hillerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a97baa9e984c92a0,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-01-04 07:04:29 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!ira.uka.de!fzi.uka.de!hiller From: hiller@fzi.uka.de (Thomas Hiller) Newsgroups: gnu.gcc.help Subject: argument substitution in cpp Message-ID: <91.004.15:24:54@ira.uka.de> Date: 4 Jan 91 15:24:53 GMT Sender: news@ira.uka.de (USENET News System) Reply-To: hiller@fzi.uka.de (Thomas Hiller) Organization: Forschungszentrum Informatik Lines: 21