aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-12-27 18:50:38 -0200
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-12-27 18:50:38 -0200
commitdc97a07e19abaa6942c84c88d001e8cccd517d1d (patch)
treec0af613ca4b974182585c9b212616d5a51d8d3a7
parent4dce79f7e30787bb21d96cd117217fa157e34594 (diff)
downloadlua-dc97a07e19abaa6942c84c88d001e8cccd517d1d.tar.gz
lua-dc97a07e19abaa6942c84c88d001e8cccd517d1d.tar.bz2
lua-dc97a07e19abaa6942c84c88d001e8cccd517d1d.zip
better names for 'y.tab.c' and 'y.tab.h' (now they are moved to 'parser.c' and 'parser.h')
-rw-r--r--lex.c4
-rw-r--r--makefile16
2 files changed, 10 insertions, 10 deletions
diff --git a/lex.c b/lex.c
index 9dd5e752..7906ed6e 100644
--- a/lex.c
+++ b/lex.c
@@ -1,4 +1,4 @@
1char *rcs_lex = "$Id: lex.c,v 2.12 1994/11/22 16:13:45 roberto Stab $"; 1char *rcs_lex = "$Id: lex.c,v 2.13 1994/12/20 21:20:36 roberto Exp celes $";
2 2
3 3
4#include <ctype.h> 4#include <ctype.h>
@@ -11,7 +11,7 @@ char *rcs_lex = "$Id: lex.c,v 2.12 1994/11/22 16:13:45 roberto Stab $";
11#include "table.h" 11#include "table.h"
12#include "opcode.h" 12#include "opcode.h"
13#include "inout.h" 13#include "inout.h"
14#include "y.tab.h" 14#include "parser.h"
15#include "ugly.h" 15#include "ugly.h"
16 16
17#define lua_strcmp(a,b) (a[0]<b[0]?(-1):(a[0]>b[0]?(1):strcmp(a,b))) 17#define lua_strcmp(a,b) (a[0]<b[0]?(-1):(a[0]>b[0]?(1):strcmp(a,b)))
diff --git a/makefile b/makefile
index c80943cb..b854221e 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
1# $Id: makefile,v 1.9 1994/11/23 20:15:04 roberto Exp roberto $ 1# $Id: makefile,v 1.10 1994/12/23 20:47:59 roberto Exp celes $
2# Compilation parameters 2# Compilation parameters
3CC = gcc 3CC = gcc
4CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 4CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2
@@ -11,7 +11,7 @@ ARFLAGS = rvl
11 11
12# Aplication modules 12# Aplication modules
13LUAMOD = \ 13LUAMOD = \
14 y.tab \ 14 parser \
15 lex \ 15 lex \
16 opcode \ 16 opcode \
17 hash \ 17 hash \
@@ -33,7 +33,7 @@ LIBOBJS = $(LIBMOD:%=%.o)
33lua : lua.o lua.a lualib.a 33lua : lua.o lua.a lualib.a
34 $(CC) $(CFLAGS) -o $@ lua.c lua.a lualib.a -lm 34 $(CC) $(CFLAGS) -o $@ lua.c lua.a lualib.a -lm
35 35
36lua.a : y.tab.c $(LUAOBJS) 36lua.a : parser.c $(LUAOBJS)
37 $(AR) $(ARFLAGS) $@ $? 37 $(AR) $(ARFLAGS) $@ $?
38 ranlib lua.a 38 ranlib lua.a
39 39
@@ -48,13 +48,13 @@ liblua.so.1.0 : lua.o
48 $(CC) $(CFLAGS) -c -o $@ $< 48 $(CC) $(CFLAGS) -c -o $@ $<
49 49
50 50
51y.tab.c : lua.stx exscript 51parser.c : lua.stx exscript
52 yacc -d lua.stx ; ex y.tab.c <exscript 52 yacc -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h ; ex parser.c <exscript
53 53
54clear : 54clear :
55 rcsclean 55 rcsclean
56 rm -f *.o 56 rm -f *.o
57 rm -f y.tab.c y.tab.h 57 rm -f parser.c parser.h
58 co lua.h lualib.h 58 co lua.h lualib.h
59 59
60% : RCS/%,v 60% : RCS/%,v
@@ -65,7 +65,7 @@ fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h inout.h
65hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 65hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h
66inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 66inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h
67iolib.o : iolib.c mem.h lua.h lualib.h 67iolib.o : iolib.c mem.h lua.h lualib.h
68lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h y.tab.h ugly.h 68lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h parser.h ugly.h
69lua.o : lua.c lua.h lualib.h 69lua.o : lua.c lua.h lualib.h
70mathlib.o : mathlib.c lualib.h lua.h 70mathlib.o : mathlib.c lualib.h lua.h
71mem.o : mem.c mem.h lua.h 71mem.o : mem.c mem.h lua.h
@@ -75,4 +75,4 @@ strlib.o : strlib.c mem.h lua.h lualib.h
75table.o : table.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \ 75table.o : table.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \
76 fallback.h 76 fallback.h
77tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h 77tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h
78y.tab.o : y.tab.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 78parser.o : parser.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h