From 92791b9dd651b439de85bd761b47c837b78414fd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 7 Nov 1997 13:09:49 -0200 Subject: [PATCH] small details --- ldo.c | 3 ++- llex.c | 4 ++-- lua.stx | 3 ++- makefile | 11 ++++++----- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ldo.c b/ldo.c index 10e4c744..f869f82a 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 1.6 1997/11/03 21:00:23 roberto Exp roberto $ +** $Id: ldo.c,v 1.7 1997/11/04 15:27:53 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -7,6 +7,7 @@ #include #include +#include #include #include "ldo.h" diff --git a/llex.c b/llex.c index 9ab8ae5c..5b800011 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.3 1997/10/13 22:10:45 roberto Exp roberto $ +** $Id: llex.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -110,7 +110,7 @@ static void skipspace (void) static int checkcond (char *buff) { - static char *opts[] = {"nil", "1"}; + static char *opts[] = {"nil", "1", NULL}; int i = luaO_findstring(buff, opts); if (i >= 0) return i; else if (isalpha((unsigned char)buff[0]) || buff[0] == '_') diff --git a/lua.stx b/lua.stx index 722fd42b..65d1337f 100644 --- a/lua.stx +++ b/lua.stx @@ -1,12 +1,13 @@ %{ /* -** $Id: lua.stx,v 1.15 1997/10/28 17:26:53 roberto Exp roberto $ +** $Id: lua.stx,v 1.16 1997/10/30 18:47:19 roberto Exp roberto $ ** Syntax analizer and code generator ** See Copyright Notice in lua.h */ #include +#include #include "lauxlib.h" #include "ldo.h" diff --git a/makefile b/makefile index c2b0b2cd..6858543e 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # -## $Id: makefile,v 1.3 1997/10/13 22:10:45 roberto Exp roberto $ +## $Id: makefile,v 1.4 1997/10/24 17:17:24 roberto Exp roberto $ ## Makefile ## See Copyright Notice in lua.h # @@ -90,13 +90,14 @@ clear : %.c : RCS/%.c,v co $@ -lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h ldo.h lfunc.h lgc.h \ - lmem.h lstring.h ltable.h ltm.h luadebug.h lvm.h +lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.h ldo.h \ + lfunc.h lgc.h llex.h lzio.h lmem.h lstring.h ltable.h ltm.h \ + luadebug.h lvm.h lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h lbuiltin.o: lbuiltin.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.h \ ldo.h lfunc.h lmem.h lstring.h ltable.h ltm.h -ldo.o: ldo.c lbuiltin.h ldo.h lobject.h lua.h lfunc.h lgc.h lmem.h \ - lparser.h lzio.h ltm.h luadebug.h lundump.h lvm.h +ldo.o: ldo.c ldo.h lobject.h lua.h lfunc.h lgc.h lmem.h lparser.h \ + lzio.h ltm.h luadebug.h lundump.h lvm.h lfunc.o: lfunc.c lfunc.h lobject.h lua.h lmem.h lgc.o: lgc.c ldo.h lobject.h lua.h lfunc.h lgc.h lmem.h lstring.h \ ltable.h ltm.h