Sorry. cc command.

cc -E StringMacroTest.c

Interesting! Happens with cc command but not with c89 or c++ commands.

I am investigating for a colleague. I never use these USS command so forgive
my unfamiliarity. I work exclusively with C++ (not vanilla C) and compile
exclusively with JCL/MVS "traditional batch."

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Andy Taylor
Sent: Monday, September 01, 2014 3:46 PM
To: [email protected]
Subject: Re: IBM C compiler substituting for macros inside literals?

Charles

I compiled this on a 1.12 system under both batch and USS and results were
as expected.  Preprocessor output under USS using a c89 -V gives:

STRINGZ(The, quick, brown, fox);                              
printf("%d %s %s %s %s\n", 5, "The", "quick", "brown", "fox");

You mention seeing the behaviour "only under USS with the cp command" - not
sure if this is a typo or you did something else before the compile - if you
confirm I'd be happy to compile using your options on a 1.12 system (if
that's worth anything...)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to