From 9d9f9c48ffea08f90768a24ceb38e551d48e17e2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Oct 1995 15:02:50 -0200 Subject: [PATCH] local variables may appear inside blocks in main code. --- lua.stx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua.stx b/lua.stx index a2ee9d23..e495eb20 100644 --- a/lua.stx +++ b/lua.stx @@ -1,6 +1,6 @@ %{ -char *rcs_luastx = "$Id: lua.stx,v 3.23 1995/10/25 14:33:25 roberto Exp roberto $"; +char *rcs_luastx = "$Id: lua.stx,v 3.24 1995/10/26 14:21:56 roberto Exp roberto $"; #include #include @@ -156,8 +156,6 @@ static void add_localvar (Word name) static void store_localvar (Word name, int n) { - if (*initcode == basepc) - yyerror("local variable outside function body"); if (nlocalvar+n < MAXLOCALS) localvar[nlocalvar+n] = name; else