bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 1.28 for windows


From: Akim Demaille
Subject: Re: Bison 1.28 for windows
Date: 22 Jan 2001 15:44:47 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

| Oh well, compiling that version with vc++ isn't that straight :-/
| vc it doesnt accept the 'inline' function prefix.

So do the right thing in config.h:

/* Define as __inline if that's what the C compiler calls it.  */
#undef inline

(I agree the comment is not clear enough, it also means `define to
nothing if inline is not supported).  With some piece of luck Autoconf
will soon be released and it is my belief it should ease your work.


| However as one can easily predict switching to the c++ compiler results
| into various other odds and ends

While I am interesting in your results because compiling C with C++
compiler helps improving the code, this is definitely the longest path
for you.

| 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

Huh?  Ah, you mean the field name shifts.  Well, I'll have a look at
it, see if I find something more intelligent.  But just cp config.hin
config.h and fill in the blanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]