I've moved this over here from Stackoverflow: https://stackoverflow.com/questions/58244043/how-do-i-go-about-making-this-work-with-a-include-it-works-fine-when-dropped-s
The original question concerned how to play some tricks within a shared macro between Metal C and HLASM. @Nicole Trudeau suggested that I use MARGINS(2,*) to cause the compiler to ignore column 1, thus giving me the ability to code something like:
*/*****************************************************************************/*/* */*/*01* Prolog */*/* */*/*****************************************************************************/*#if 0!=0 MACRO &NAME CKKTEST Test DSECT Test@ DS A TestINT DS F TestChar DS C MEND *#endif struct Test { void *Test@; int TestInt; char TestChar; };
Which can be included in either a HLASM or C program.
My follow-on question is, setting MARGINS(2,72), how would I continue to use the supplied IBM include files like: builtins.h, gxlhctl.h, gxlhctl.h, gxlhqxd.h, gxlhxd.h, gxlhxec.h, gxlhxeh.h, gxlhxft.h, gxlhxml.h, gxlhxosr.h, gxlhxr.h, gxlhxsv.h ?
Others, like: ctype.h, float.h, inttypes.h, iso646.h (and a bunch of others) all start in column 2 or column 3 and should continue to work just fine.
Thanks,
Scott
Scott Fagen