diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-03-28 12:14:54 -0300 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-03-28 12:14:54 -0300 |
commit | ea1a7a6b279595b9666eead2616b323b60aef596 (patch) | |
tree | f6d8d7e715cf4e9d81335e5d055cd74f4754a799 | |
parent | 3577eb6f136bf2b394c2ce839fc098da5faa9fd5 (diff) | |
download | lua-ea1a7a6b279595b9666eead2616b323b60aef596.tar.gz lua-ea1a7a6b279595b9666eead2616b323b60aef596.tar.bz2 lua-ea1a7a6b279595b9666eead2616b323b60aef596.zip |
Acrescentar o gerenciador de memoria "mm" e corrigir um bug pois
no novo "lex" o token FUNCTION nao tem valor associado.
-rw-r--r-- | lua.stx | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,11 +1,13 @@ | |||
1 | %{ | 1 | %{ |
2 | 2 | ||
3 | char *rcs_luastx = "$Id: lua.stx,v 1.3 1993/12/28 16:42:29 roberto Exp roberto $"; | 3 | char *rcs_luastx = "$Id: lua.stx,v 1.4 1994/02/13 20:38:20 roberto Exp celes $"; |
4 | 4 | ||
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <string.h> | 7 | #include <string.h> |
8 | 8 | ||
9 | #include "mm.h" | ||
10 | |||
9 | #include "opcode.h" | 11 | #include "opcode.h" |
10 | #include "hash.h" | 12 | #include "hash.h" |
11 | #include "inout.h" | 13 | #include "inout.h" |
@@ -240,7 +242,7 @@ function : FUNCTION NAME {pc=basepc=code; nlocalvar=0;} '(' parlist ')' | |||
240 | { | 242 | { |
241 | align(Word,1); | 243 | align(Word,1); |
242 | code_byte(SETFUNCTION); | 244 | code_byte(SETFUNCTION); |
243 | code_word($1); | 245 | code_word(lua_nfile-1); |
244 | code_word($2); | 246 | code_word($2); |
245 | } | 247 | } |
246 | lua_codeadjust (0); | 248 | lua_codeadjust (0); |