Re: macros, recursive includes... MI pseudo assembler?
"Mark S. Waterbury" <[email protected]> Mon, 10 Dec 2007 09:45:07 -0500
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Organization | Industrial Strength Software Company |
| Message-ID | <[email protected]> |
Hello, Denes: If you really need nested includes and macro expansion, look at "m4" -- a general-purpose Unix macro preprocessor. IBM delivers the AIX version of m4 for i5/OS or OS/400 as part of PASE. Or, you could use the ILE C compiler's built-in preprocessor, by specifying CRTCMOD ... OPTION(*PPONLY). Then, invoke the MI compiler for the expanded text. You could even write your own command to invoke macro processing and then invoke QPRCRTPG to compile the expanded source.. Mark > Denes L wrote: > During my quest for knowledge on my previous post I saw that sometime in the past there was a talk about creating macros and make the %INCLUDE recursive. > > Apart from the obvious benefits and aside from the philosophical and rhetorical "is it worth the effort?", was there any real progress ever made?. > > Denes. > _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.