Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!igloo!ddsw1!proxima!quagga!cspw From: cspw@quagga.ru.ac.za (Peter Wentworth) Newsgroups: comp.lang.c Subject: Many lines from a macro? Message-ID: <1991Jan22.201702.1383@quagga.ru.ac.za> Date: 22 Jan 91 20:17:02 GMT Organization: Dept. of Computer Science, Rhodes University Lines: 30 Can a C macro replacement ever result in more than one output line from the preprocessing stage? I am using the SUN assembler which first uses the C preprocessor. The C macro #define FOO jmp label;\ nop;\ label: expands to this output: jmp label; nop; label: But the assembler insists that the label starts on a new line, so this is not acceptable. Is there some magic that will yield three separate lines of macro output, instead of one? I don't think this can ever cause problems in C, but I suspect there other languages that would benefit from using a general standardized C preprocessor as a front end. Was there ever any notion among the ANSI committee that things like preprocessing features could be included on grounds of 'general usefulness', rather than 'useful only to C'? Pete -- EP Wentworth - Dept. of Computer Science - Rhodes University - Grahamstown. cspw@quagga.ru.ac.za (If that fails, try cspw.quagga@f4.n494.z5.fidonet.org)