Xref: utzoo comp.lang.c:34760 comp.std.c:4033 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!philapd!ssp9!dolf From: dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer) Newsgroups: comp.lang.c,comp.std.c Subject: #ifdef without identifier Message-ID: <549@ssp9.idca.tds.philips.nl> Date: 14 Dec 90 15:34:02 GMT Reply-To: dolf@idca.tds.philips.nl (Dolf Grunbauer) Followup-To: comp.lang.c Organization: Philips Information Systems, Apeldoorn, The Netherlands Lines: 19 We just traced a wierd bug. After some debugging it turned out that parts of the code was not compiled. The code was something like: #ifdef /* FLAG */ do_something(); #endif Obviously the source was compiled with -DFLAG. The code between the #ifdef and #endif was not included in the compilation and everyone looked over this error (?). The compiler gave no warnings or errors, but I think it should do so in this case as an 'ifdef' always requires an identifier, or do I miss something ? I also tried just a plain '#ifdef' on a line and this too is accepted by our compiler (i.e. code is not included in the compilation). -- _ _ / U | Dolf Grunbauer Tel: +31 55 433233 Internet dolf@idca.tds.philips.nl /__'< Philips Information Systems UUCP ...!mcsun!philapd!dolf 88 |_\ If you are granted one wish do you know what to wish for right now ?