lua-users home
lua-l archive

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


> Attached is a patch to allow Lua 1.0 to compile on gcc and msvc.

lua-all.tar.gz contains patched versions of Lua 1.0 and others. Did you try
that? The diffs are below.

diff ORIG/iolib.c ./iolib.c
20c20
< static FILE *in=stdin, *out=stdout;
---
> static FILE *in=NULL, *out=NULL;
394a395
>  in=stdin; out=stdout;
diff ORIG/lex_yy.c ./lex_yy.c
20c20
< FILE *yyin = {stdin}, *yyout = {stdout};
---
> FILE *yyin = {NULL}, *yyout = {NULL};
diff ORIG/lua.c ./lua.c
33c33
< void main (int argc, char *argv[])
---
> int main (int argc, char *argv[])
39c39
<   return;
---
>   return 0;
51a52
>  return 0;