diff options
Diffstat (limited to 'src/lua51/lstate.h')
| -rw-r--r-- | src/lua51/lstate.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lua51/lstate.h b/src/lua51/lstate.h index 2f71e57..1c049e1 100644 --- a/src/lua51/lstate.h +++ b/src/lua51/lstate.h @@ -41,9 +41,9 @@ struct lua_longjmp; /* defined in ldo.c */ //c rehash在lstring.c -> luaS_resize typedef struct stringtable { GCObject **hash; //c 字符串,因为是散列桶,所以是** - lu_int32 nuse; //c 桶用到的容量,因为不一定size都用到了 /* number of elements */ - int size; //c 桶的总容量,是常值 - // nuse和size是用来动态控制桶容量的关键 + lu_int32 nuse; //c 桶用到的容量,因为不一定size都用到了 /* number of elements */ + int size; //c 桶的总容量,是常值 + //c nuse和size是用来动态控制桶容量的关键 } stringtable; @@ -120,7 +120,6 @@ typedef struct global_State { } global_State; -//c 一个lua_state,可以看做是一个 //c StkId引用的永远是lua_State栈上的内容 /* ** `per thread' state |
