lua-users home
lua-l archive

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


My apologies if this appeared to suggest there was something incorrect with
the original code.

I only meant that if you make this change it will compile with
Borland/Inprise.  (And, as it happens, I was unable to find any options I
could change to make it compile without this change.)  I never had any doubt
that the original form was correct C code, if for no other reason than no
one else has complained about it.

Dave

----- Original Message -----
From: "David Jones" <djones@zoonami.com>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Friday, October 27, 2000 12:04 PM
Subject: Re: problem compiling lua4.0-beta


> In message <000201c0402a$c52f7640$0b0f280a@casirusco.com>, "Dave Borgelt"
write
> s:
> > Make this change to lcode.c and it should fix it (I had the same
problem):
> >
> > >>> Line  649 of '..\..\lua\src\lcode.c'  (ORIGINAL)
> > > const struct OpProperties luaK_opproperties[NUM_OPCODES] = {
> >
> > <<< Line  649 of 'lcode.c'  (ALTERED VERSION)
> > < const struct OpProperties luaK_opproperties[/*NUM_OPCODES*/] = {
>
> I've just had a look at this, and its perfectly legal ISO C.  Any
> ISO C compiler should compile it without error.  It is therefore a
> defect in Borland C, or possibly you aren't compiling it in a strict
> enough ISO/ANSI mode.
>
> djones
>