diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-13 14:30:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-13 14:30:39 -0300 |
commit | 0f4903a5d79fb594115c5603072d0dce77b2b84e (patch) | |
tree | 96223404b48aef1a94b813e2ad03362701d0e0c1 /opcode.h | |
parent | 772f25d3dd3c5078988b8c06ddf64c3b78f7dfb6 (diff) | |
download | lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.gz lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.bz2 lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.zip |
new header "lex.h".
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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 | ||
77 | typedef void (*Cfunction) (void); | ||
78 | typedef int (*Input) (void); | ||
79 | |||
80 | typedef union | 74 | typedef 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 */ |
141 | char *lua_strdup (char *l); | 135 | char *lua_strdup (char *l); |
142 | 136 | ||
143 | void lua_setinput (Input fn); /* from "lex.c" module */ | ||
144 | char *lua_lasttext (void); /* from "lex.c" module */ | ||
145 | int luaY_lex (void); /* from "lex.c" module */ | ||
146 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ | 137 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ |
147 | void luaI_codedebugline (int line); /* from "lua.stx" module */ | 138 | void luaI_codedebugline (int line); /* from "lua.stx" module */ |
148 | void lua_travstack (int (*fn)(Object *)); | 139 | void lua_travstack (int (*fn)(Object *)); |