aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-13 14:30:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-13 14:30:39 -0300
commit0f4903a5d79fb594115c5603072d0dce77b2b84e (patch)
tree96223404b48aef1a94b813e2ad03362701d0e0c1
parent772f25d3dd3c5078988b8c06ddf64c3b78f7dfb6 (diff)
downloadlua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.gz
lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.bz2
lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.zip
new header "lex.h".
-rw-r--r--inout.c5
-rw-r--r--lex.c4
-rw-r--r--lua.stx3
-rw-r--r--makefile15
-rw-r--r--opcode.h13
5 files changed, 15 insertions, 25 deletions
diff --git a/inout.c b/inout.c
index 8ba4b6bb..97f55465 100644
--- a/inout.c
+++ b/inout.c
@@ -5,15 +5,14 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.29 1996/02/07 14:13:47 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.30 1996/02/12 18:32:40 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
12#include <string.h> 12#include <string.h>
13 13
14#include "mem.h" 14#include "lex.h"
15#include "opcode.h" 15#include "opcode.h"
16#include "hash.h"
17#include "inout.h" 16#include "inout.h"
18#include "table.h" 17#include "table.h"
19#include "tree.h" 18#include "tree.h"
diff --git a/lex.c b/lex.c
index 0940359c..c65d2253 100644
--- a/lex.c
+++ b/lex.c
@@ -1,4 +1,4 @@
1char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $"; 1char *rcs_lex = "$Id: lex.c,v 2.25 1996/02/12 18:32:40 roberto Exp roberto $";
2 2
3 3
4#include <ctype.h> 4#include <ctype.h>
@@ -8,7 +8,7 @@ char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $";
8#include "mem.h" 8#include "mem.h"
9#include "tree.h" 9#include "tree.h"
10#include "table.h" 10#include "table.h"
11#include "opcode.h" 11#include "lex.h"
12#include "inout.h" 12#include "inout.h"
13#include "luadebug.h" 13#include "luadebug.h"
14#include "parser.h" 14#include "parser.h"
diff --git a/lua.stx b/lua.stx
index f16630d3..7d83e62b 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 3.29 1996/02/07 18:10:27 roberto Exp roberto $"; 3char *rcs_luastx = "$Id: lua.stx,v 3.30 1996/02/12 18:32:40 roberto Exp roberto $";
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
@@ -8,6 +8,7 @@ char *rcs_luastx = "$Id: lua.stx,v 3.29 1996/02/07 18:10:27 roberto Exp roberto
8 8
9#include "luadebug.h" 9#include "luadebug.h"
10#include "mem.h" 10#include "mem.h"
11#include "lex.h"
11#include "opcode.h" 12#include "opcode.h"
12#include "hash.h" 13#include "hash.h"
13#include "inout.h" 14#include "inout.h"
diff --git a/makefile b/makefile
index f1cc4b84..b3971be8 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
1# $Id: makefile,v 1.18 1996/01/09 20:22:08 roberto Exp roberto $ 1# $Id: makefile,v 1.19 1996/02/07 18:14:38 roberto Exp roberto $
2 2
3#configuration 3#configuration
4 4
@@ -69,19 +69,18 @@ clear :
69fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h func.h 69fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h func.h
70func.o : func.c luadebug.h lua.h table.h tree.h types.h opcode.h func.h mem.h 70func.o : func.c luadebug.h lua.h table.h tree.h types.h opcode.h func.h mem.h
71hash.o : hash.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h 71hash.o : hash.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h
72inout.o : inout.c mem.h opcode.h lua.h types.h tree.h func.h hash.h inout.h \ 72inout.o : inout.c lex.h opcode.h lua.h types.h tree.h func.h inout.h table.h
73 table.h
74iolib.o : iolib.c lua.h luadebug.h lualib.h 73iolib.o : iolib.c lua.h luadebug.h lualib.h
75lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h inout.h luadebug.h \ 74lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h lex.h inout.h \
76 parser.h ugly.h 75 luadebug.h parser.h ugly.h
77lua.o : lua.c lua.h lualib.h 76lua.o : lua.c lua.h lualib.h
78mathlib.o : mathlib.c lualib.h lua.h 77mathlib.o : mathlib.c lualib.h lua.h
79mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h 78mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h
80opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ 79opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \
81 inout.h table.h fallback.h 80 inout.h table.h fallback.h
82parser.o : parser.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ 81parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \
83 inout.h table.h 82 hash.h inout.h table.h
84strlib.o : strlib.c lua.h lualib.h 83strlib.o : strlib.c lua.h lualib.h
85table.o : table.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h \ 84table.o : table.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h \
86 inout.h fallback.h luadebug.h 85 inout.h fallback.h luadebug.h
87tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h func.h 86tree.o : tree.c mem.h lua.h tree.h types.h hash.h opcode.h func.h table.h
diff --git a/opcode.h b/opcode.h
index e66c9676..fe96bccd 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1,6 +1,6 @@
1/* 1/*
2** TeCGraf - PUC-Rio 2** TeCGraf - PUC-Rio
3** $Id: opcode.h,v 3.15 1995/12/21 16:14:04 roberto Exp roberto $ 3** $Id: opcode.h,v 3.16 1996/01/26 18:03:19 roberto Exp roberto $
4*/ 4*/
5 5
6#ifndef opcode_h 6#ifndef opcode_h
@@ -11,9 +11,6 @@
11#include "tree.h" 11#include "tree.h"
12#include "func.h" 12#include "func.h"
13 13
14#ifndef real
15#define real float
16#endif
17 14
18#define FIELDS_PER_FLUSH 40 15#define FIELDS_PER_FLUSH 40
19 16
@@ -74,12 +71,9 @@ typedef enum
74#define MULT_RET 255 71#define MULT_RET 255
75 72
76 73
77typedef void (*Cfunction) (void);
78typedef int (*Input) (void);
79
80typedef union 74typedef union
81{ 75{
82 Cfunction f; 76 lua_CFunction f;
83 real n; 77 real n;
84 TaggedString *ts; 78 TaggedString *ts;
85 TFunc *tf; 79 TFunc *tf;
@@ -140,9 +134,6 @@ typedef union
140/* Exported functions */ 134/* Exported functions */
141char *lua_strdup (char *l); 135char *lua_strdup (char *l);
142 136
143void lua_setinput (Input fn); /* from "lex.c" module */
144char *lua_lasttext (void); /* from "lex.c" module */
145int luaY_lex (void); /* from "lex.c" module */
146void lua_parse (TFunc *tf); /* from "lua.stx" module */ 137void lua_parse (TFunc *tf); /* from "lua.stx" module */
147void luaI_codedebugline (int line); /* from "lua.stx" module */ 138void luaI_codedebugline (int line); /* from "lua.stx" module */
148void lua_travstack (int (*fn)(Object *)); 139void lua_travstack (int (*fn)(Object *));