aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);