فهرست منبع

field 'oldtop' renamed to 'extra', as it can be used for other
purposes

Roberto Ierusalimschy 15 سال پیش
والد
کامیت
c8ff7de7f0
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      lapi.c
  2. 2 2
      lstate.h

+ 2 - 2
lapi.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lapi.c,v 2.111 2010/01/13 16:18:25 roberto Exp roberto $
+** $Id: lapi.c,v 2.112 2010/01/21 16:49:21 roberto Exp roberto $
 ** Lua API
 ** Lua API
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -857,7 +857,7 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc,
     ci->u.c.k = k;  /* save continuation */
     ci->u.c.k = k;  /* save continuation */
     ci->u.c.ctx = ctx;  /* save context */
     ci->u.c.ctx = ctx;  /* save context */
     /* save information for error recovery */
     /* save information for error recovery */
-    ci->u.c.oldtop = savestack(L, c.func);
+    ci->u.c.extra = savestack(L, c.func);
     ci->u.c.old_allowhook = L->allowhook;
     ci->u.c.old_allowhook = L->allowhook;
     ci->u.c.old_errfunc = L->errfunc;
     ci->u.c.old_errfunc = L->errfunc;
     L->errfunc = func;
     L->errfunc = func;

+ 2 - 2
lstate.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lstate.h,v 2.51 2009/12/11 13:39:34 roberto Exp roberto $
+** $Id: lstate.h,v 2.52 2009/12/22 15:32:50 roberto Exp roberto $
 ** Global State
 ** Global State
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -85,7 +85,7 @@ typedef struct CallInfo {
       int ctx;  /* context info. in case of yields */
       int ctx;  /* context info. in case of yields */
       lua_CFunction k;  /* continuation in case of yields */
       lua_CFunction k;  /* continuation in case of yields */
       ptrdiff_t old_errfunc;
       ptrdiff_t old_errfunc;
-      ptrdiff_t oldtop;
+      ptrdiff_t extra;
       lu_byte old_allowhook;
       lu_byte old_allowhook;
       lu_byte status;
       lu_byte status;
     } c;
     } c;