Adriaan van Os wrote:
Frank Heckenbach wrote:
BTW, a future GPC version might allow macros that expand to compiler-directives, but AFAICS this wouldn't help here since you'd need this on the MW side where it apparently isn't possible.
Still, this is an interesting idea in other situations. For example {$align powerpc} is a much needed compiler directive in MW. If we can define {$align powerpc} to be a macro in GPC, writing source-code for two compilers becomes easier.
That's not actually what I meant, sorry. I meant macros, not compiler directives that expand to other compiler directives. The latter would probably be more work. For macros, it's natural (and easier) to do this since they expand to program text -- only the current preprocessor architecture gets a bit in the way. At least, you might then be able to define a macro, say `ALIGN_POWERPC' that expands to `{$local maximum-field-alignment=32}' in GPC and nothing in MW ... Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html NEW! GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8