[antlr-interest] ANTLR3 C target and Visual Studio 6

Iain Young Iain.Young at microfocus.com
Fri Oct 5 02:16:27 PDT 2007


Thanks Jim,

 

Yep that's the problem. We have legacy code which is slowly getting
migrated to the newer compilers, but until it's all done (a slow
process, especially when you consider the potential side effects of
changing compilers) we have to keep stuff backwardly compatible for now.

 

Thanks for looking at the fix. Being small, it shouldn't cause too many
headaches J

 

Iain

 

> -----Original Message----- 
I can protect this for the other compilers. I don't really want to spend
a lot of effort on VC6 when VS2005 is what people "should" use, but I am
sensitive the issues that a lot of corporations don't move forward for
all sorts of reasons ranging from terrible code that only just compiles
with VC6, thru apathy, ineptitude and budgets. So if it is relatively
easy to do, then I will make small changes.

Jim 

> -----Original Message----- 
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest- 
> bounces at antlr.org] On Behalf Of Rupert Mazzucco 
> Sent: Thursday, October 04, 2007 4:59 AM 
> To: antlr-interest at antlr.org 
> Subject: Re: [antlr-interest] ANTLR3 C target and Visual Studio 6 
> 
> 
> > I've just been creating some parsers using Antlr3 and the c target. 
> It 
> > all worked fine with vs2005, but would not compile with vc6. After a

> bit 
> > of investigation I found I had to make a small change to one of the 
> > antlr header files. 
> > 
> > In the file antlr3defs.h, I had to change the line (110): 
> > 
> >         #define     ANTLR3_UINT64_LIT(lit)      lit##ULL 
> > 
> > So that it instead looked like this... 
> > 
> >         #if _MSC_VER >= 1400 
> >         #define  ANTLR3_UINT64_LIT(lit)     lit##ULL 
> >         #else 
> >         #define  ANTLR3_UINT64_LIT(lit)     lit##ui64 
> >         #endif // _MSC_VER >= 1400 
> > 
> > Now that I've modified the antlr sources, I guess this change ought 
> to 
> > make it into the official source stream as a patch of some sort, but

> I 
> 
> Your fix looks like it will break things for non VC compilers.  (Also
I 
> have to 
> wonder how many #ifdefs it is worth to support a nearly ten years old 
> compiler.) 
> -- 
> Rupert Mazzucco         <mazzucco at iiasa.ac.at> 
> Research Scholar, Evolution and Ecology Program 
> IIASA - Institute for Applied Systems Analysis 
> Schlossplatz 1, 2361 Laxenburg, Austria 
> Phone: +43 2236 807 522   Fax: +43 2236 713 13 
> 
> No virus found in this incoming message. 
> Checked by AVG Free Edition. 
> Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 
> 10/3/2007 8:22 PM 
> 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date:
10/3/2007 8:22 PM
  

 

Click here
<https://www.mailcontroller.altohiway.com/sr/a5mML5OkxnEBYm3Ke!KPw!MfgY4
!US1XRpinP3AOyCcqo!zlzLXtC3ou1nAW5+orbJBQ4UbBlvJYUCzfyxu38qwgxmpMDUxld1U
Y9J7nDS9yMlpOzfXC5vuZRJd+5xA2a++WqXXe6Om9pCSRrFgSBQQo9XwrEnFJdp1UiVDp3Jz
RmXxyNZFgLa1s3cYpWzek1ViRyzdvJqRsqakOzyG88vDa8+GUGke!>  to report this
email as spam.

This message has been scanned for viruses by MailController
<http://www.MailController.altohiway.com/> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071005/c6376810/attachment-0001.html 


More information about the antlr-interest mailing list