[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison 1.28 for windows
From: |
Axel Kittenberger |
Subject: |
Re: Bison 1.28 for windows |
Date: |
Tue, 2 Jan 2001 16:58:52 +0100 (MET) |
Oh well, compiling that version with vc++ isn't that straight :-/
vc it doesnt accept the 'inline' function prefix.
According to their documentation inline is a c++ only extension.
However as one can easily predict switching to the c++ compiler results
into various other odds and ends
One of these is this struct in state.h line 104:
---------------------------
typedef struct shifts
{
struct shifts *next;
short number;
short nshifts;
short shifts[1];
}
shifts;
---------------------------
As one of the differences between c and c++, visibilty of structures have
changes. It doesn't seem to like a variable called the same name as the
structure itself. stupid vc++ expects it to be a constructor then, hehe
Don't know is it better to convert code so a c++ compiler is also happy?
Or simply add
--------------------------------
#if !defined(__cplusplus) && !defined(__GNUC__)
#define inline
#endif
--------------------------------
in one of the headers?
> At 11:00 +0100 1-01-02, Axel Kittenberger wrote:
> >I don't know if it has been done already, but I've just ported bison
> 1.28
> >to windows for my personal needs.
>
> There is a later version; see ftp://alpha.gnu.org/gnu/cvs/.
>
> >BTW: I didn't found any way to register to this mailing list...?
>
> Try
> http://mail.gnu.org/mailman/listinfo/bug-bison
> -- and perhaps you should try help-bison as well.
>
> Hans Aberg
>
>
--
Sent through GMX FreeMail - http://www.gmx.net