Pro*C versions mis-parse C/C++ comments differently
From: Don Tinker <dyt_at_iname.com>
Date: 22 Jan 2007 09:25:24 -0800
Message-ID: <1169486723.910304.79130_at_m58g2000cwm.googlegroups.com>
[Quoted] Has anyone seen this odd behavior? We've been using Pro*C version 10.2.0.2.0 (code=ansi_c and parse=partial), happily compiling code like
Date: 22 Jan 2007 09:25:24 -0800
Message-ID: <1169486723.910304.79130_at_m58g2000cwm.googlegroups.com>
[Quoted] Has anyone seen this odd behavior? We've been using Pro*C version 10.2.0.2.0 (code=ansi_c and parse=partial), happily compiling code like
//this is an OK comment
//***but this looks like an un-ended C comment to a dumb parser
#ifdef notdef
/* some stuff in here
*/
#endif
but we recently had version 10.2.0.1.0 installed on another machine -- and THAT version complains:
Syntax error at line 6, column 2, file D.pc:
Error at line 6, column 2 in file D.pc
#endif
I suppose that the 10.2.0.1.0 version thinks that the comment on line 2 doesn't end until line 5!
I'd sure like to hear that I'm not the only one who's seen this problem! What do you think about this?
Don Tinker Received on Mon Jan 22 2007 - 18:25:24 CET