Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!elroy.jpl.nasa.gov!jato!mars!hashem From: hashem@mars.jpl.nasa.gov (Basil Hashem) Newsgroups: comp.lang.c Subject: Using (abusing) cpp.. Message-ID: <3358@jato.Jpl.Nasa.Gov> Date: 11 Apr 90 19:33:22 GMT Sender: news@jato.Jpl.Nasa.Gov Reply-To: hashem@mars.jpl.nasa.gov (Basil Hashem) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 41 I am not sure this is the most appropriate group, but let me try. I'm using the cpp program (the SunOS C pre-processor) for filtering some files which are not C programs. I have been successful in doing #include's, #ifdef's, and #defines's. What I need to do is pass a file such as this one through cpp. (Don't worry about the extra lines and comment fields.) ---- #define LANGUAGE English #if (LANGUAGE == French) #define GREETING Bonjour #define FAREWELL Salut #define GENTLEMEN Monsieurs #else #define GREETING Good Morning #define FAREWELL Bye #define GENTLEMEN Sirs #endif Dear GENTELMEN, GREETING blah blah FAREWELL ---- The results are not what is expected since cpp doesn't do the compare properly. What I really need is a strcmp(LANGUAGE, "French") but I can't really do that considering this is not C. Anyone have suggestions? "WOOOSH! If they only knew what I was up to." Basil Hashem hashem@mars.jpl.nasa.gov Jet Propulsion Laboratory La Canada Flintridge, CA