aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-03-28 12:14:54 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-03-28 12:14:54 -0300
commitea1a7a6b279595b9666eead2616b323b60aef596 (patch)
treef6d8d7e715cf4e9d81335e5d055cd74f4754a799
parent3577eb6f136bf2b394c2ce839fc098da5faa9fd5 (diff)
downloadlua-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.stx6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua.stx b/lua.stx
index 437f1f88..3c2f6efa 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,11 +1,13 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 1.3 1993/12/28 16:42:29 roberto Exp roberto $"; 3char *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);