Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion BASIC, IMCC, and Windows.

Newsgroups: perl.perl6.internals
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <cli...@geeksalad.org>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Delivered-To: perl6-intern...@perl.org
Message-ID: <5.1.0.14.2.20030326162310.01dab620@mail.geeksalad.org>
X-Sender: webmas...@geeksalad.org@mail.geeksalad.org
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Wed, 26 Mar 2003 16:28:15 -0500
To: Leopold Toetsch <l...@toetsch.at>
Subject: Re: BASIC, IMCC, and Windows.
Cc: perl6-intern...@perl.org
In-Reply-To: <3E79E3F2.2010401@toetsch.at>
References: <5.1.0.14.2.20030320085034.0265f2d8@mail.geeksalad.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-SMTPD: qpsmtpd/0.25, http://develooper.com/code/qpsmtpd/
X-Spam-Check-By: one.develooper.com
X-Spam-Status: No, hits=0.2 required=7.0 tests=CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SMTPD_IN_RCVD,SPAM_PHRASE_00_01 version=2.44
X-SMTPD: qpsmtpd/0.25, http://develooper.com/code/qpsmtpd/
Approved: n...@nntp.perl.org
From: cli...@geeksalad.org (Clinton A. Pierce)
Lines: 49

At 04:53 PM 3/20/2003 +0100, Leopold Toetsch wrote:
>Clinton A. Pierce wrote:
>
>>The suggestion was made last week that I try filtering the compiled BASIC 
>>stuff through IMCC for performance reasons and whatnot.
>
>
>>IMCC seems to want headers that MSVC++ isn't happy with:
>>         cl -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
>>-I../../include -Feim
>>cparser.obj -c imcparser.c
>>imcparser.c
>>C:\Program Files\Microsoft Visual Studio 
>>.NET\Vc7\PlatformSDK\Include\WinDef.h(159) : error
>>C2059: syntax error : 'constant'
>
>
>Can you have a look at the stated line, maybe its some kind of a name 
>clash. Would also be nice for giure out, by which file WinDef.h got pulled in.


It's because in imcparser.c the token CONST is used.  In the standard 
Windows stuff, const is defined as

#define CONST const

Which of course is a keyword and used everywhere in Win32 header files like:

         typedef CONST WTHINGY *FOO, *BAR...

Changing this to CONSTX in imcparser.c (or any other token) seems to be 
okay.  I don't have the necessary tools to fix this directly (bison, etc..).

Also in imc.c ~431:

         done:
                 }

Makes MSVC unhappy.  Changing this to:

         done:
                 1;
                 }

Makes everything all right so far, but I still don't quite have a working 
imcc.  Still slugging through all of this.