Re: Pro*C versions mis-parse C/C++ comments differently

From: Ed Prochak <edprochak_at_gmail.com>
Date: 25 Jan 2007 13:30:52 -0800
Message-ID: <1169760650.625285.205540_at_a75g2000cwd.googlegroups.com>


On Jan 22, 12:25 pm, "Don Tinker" <d..._at_iname.com> wrote:
> 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

I haven't seen the problem since I don't use line comments. So do you really NEED C++ style comments? Personally, I'd change them to normal block comments.   Ed Received on Thu Jan 25 2007 - 22:30:52 CET

Original text of this message