On Mon, 3 Nov 2014 15:49:44 -0800, Charles Mills wrote:

>#define A(name) \
>_Pragma ( "convert(codepage)" ) \
>char name[] "foo"; \
>_Pragma ( "convert(pop)" )
>
>(untested) is close to what you want. ("You can't always get what you want." 
>-- Mick Jagger)
>
I'm unfamilar with the alternative form, "_Pragma" (and a lot of other stuff).

But suppose I want to use A in other contexts, such as printf()?  Would
the following work likewise?:


>#define  \
>_Pragma ( "convert(codepage)" ) \
> "foo" \
>_Pragma ( "convert(pop)" )

Then either or both of of:

char name[] A;
printf( "%s/n", A );

And it still leaves the feature (problem?) of not converting octal/hex
escape sequences, teeming in ported ASCII source code in which
they refer to ASCII code points needing conversion to EBCDIC, not
literal EBCDIC code points.

-- gil

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

Reply via email to