diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-12-27 18:50:38 -0200 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-12-27 18:50:38 -0200 |
commit | dc97a07e19abaa6942c84c88d001e8cccd517d1d (patch) | |
tree | c0af613ca4b974182585c9b212616d5a51d8d3a7 | |
parent | 4dce79f7e30787bb21d96cd117217fa157e34594 (diff) | |
download | lua-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.c | 4 | ||||
-rw-r--r-- | makefile | 16 |
2 files changed, 10 insertions, 10 deletions
@@ -1,4 +1,4 @@ | |||
1 | char *rcs_lex = "$Id: lex.c,v 2.12 1994/11/22 16:13:45 roberto Stab $"; | 1 | char *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))) |
@@ -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 |
3 | CC = gcc | 3 | CC = gcc |
4 | CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 | 4 | CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 |
@@ -11,7 +11,7 @@ ARFLAGS = rvl | |||
11 | 11 | ||
12 | # Aplication modules | 12 | # Aplication modules |
13 | LUAMOD = \ | 13 | LUAMOD = \ |
14 | y.tab \ | 14 | parser \ |
15 | lex \ | 15 | lex \ |
16 | opcode \ | 16 | opcode \ |
17 | hash \ | 17 | hash \ |
@@ -33,7 +33,7 @@ LIBOBJS = $(LIBMOD:%=%.o) | |||
33 | lua : lua.o lua.a lualib.a | 33 | lua : 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 | ||
36 | lua.a : y.tab.c $(LUAOBJS) | 36 | lua.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 | ||
51 | y.tab.c : lua.stx exscript | 51 | parser.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 | ||
54 | clear : | 54 | clear : |
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 | |||
65 | hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h | 65 | hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h |
66 | inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h | 66 | inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h |
67 | iolib.o : iolib.c mem.h lua.h lualib.h | 67 | iolib.o : iolib.c mem.h lua.h lualib.h |
68 | lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h y.tab.h ugly.h | 68 | lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h parser.h ugly.h |
69 | lua.o : lua.c lua.h lualib.h | 69 | lua.o : lua.c lua.h lualib.h |
70 | mathlib.o : mathlib.c lualib.h lua.h | 70 | mathlib.o : mathlib.c lualib.h lua.h |
71 | mem.o : mem.c mem.h lua.h | 71 | mem.o : mem.c mem.h lua.h |
@@ -75,4 +75,4 @@ strlib.o : strlib.c mem.h lua.h lualib.h | |||
75 | table.o : table.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \ | 75 | table.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 |
77 | tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h | 77 | tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h |
78 | y.tab.o : y.tab.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h | 78 | parser.o : parser.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h |