small details

This commit is contained in:
Roberto Ierusalimschy 1997-11-07 13:09:49 -02:00
parent 45cad43c3f
commit 92791b9dd6
4 changed files with 12 additions and 9 deletions

3
ldo.c
View File

@ -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 ** Stack and Call structure of Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -7,6 +7,7 @@
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include "ldo.h" #include "ldo.h"

4
llex.c
View File

@ -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 ** Lexical Analizer
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -110,7 +110,7 @@ static void skipspace (void)
static int checkcond (char *buff) static int checkcond (char *buff)
{ {
static char *opts[] = {"nil", "1"}; static char *opts[] = {"nil", "1", NULL};
int i = luaO_findstring(buff, opts); int i = luaO_findstring(buff, opts);
if (i >= 0) return i; if (i >= 0) return i;
else if (isalpha((unsigned char)buff[0]) || buff[0] == '_') else if (isalpha((unsigned char)buff[0]) || buff[0] == '_')

View File

@ -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 ** Syntax analizer and code generator
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "lauxlib.h" #include "lauxlib.h"
#include "ldo.h" #include "ldo.h"

View File

@ -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 ## Makefile
## See Copyright Notice in lua.h ## See Copyright Notice in lua.h
# #
@ -90,13 +90,14 @@ clear :
%.c : RCS/%.c,v %.c : RCS/%.c,v
co $@ co $@
lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h ldo.h lfunc.h lgc.h \ lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.h ldo.h \
lmem.h lstring.h ltable.h ltm.h luadebug.h lvm.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 lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h
lbuiltin.o: lbuiltin.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.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.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 \ ldo.o: ldo.c ldo.h lobject.h lua.h lfunc.h lgc.h lmem.h lparser.h \
lparser.h lzio.h ltm.h luadebug.h lundump.h lvm.h lzio.h ltm.h luadebug.h lundump.h lvm.h
lfunc.o: lfunc.c lfunc.h lobject.h lua.h lmem.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 \ lgc.o: lgc.c ldo.h lobject.h lua.h lfunc.h lgc.h lmem.h lstring.h \
ltable.h ltm.h ltable.h ltm.h