optimizations for "while 1", "until nil", and the like

This commit is contained in:
Roberto Ierusalimschy
2000-06-16 14:51:40 -03:00
parent 89a3ec08f3
commit 2e1b32d873
2 changed files with 103 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lcode.h,v 1.12 2000/04/12 18:47:03 roberto Exp roberto $
** $Id: lcode.h,v 1.13 2000/05/22 18:44:46 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -36,7 +36,6 @@ int luaK_jump (FuncState *fs);
void luaK_patchlist (FuncState *fs, int list, int target);
void luaK_concat (FuncState *fs, int *l1, int l2);
void luaK_goiftrue (FuncState *fs, expdesc *v, int keepvalue);
void luaK_goiffalse (FuncState *fs, expdesc *v, int keepvalue);
int luaK_getlabel (FuncState *fs);
void luaK_deltastack (FuncState *fs, int delta);
void luaK_kstr (LexState *ls, int c);