We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static void setnodevector (lua_State *L, Table *t, int size) { int lsize; if (size == 0) { /* no elements to hash part? */ t->node = cast(Node *, dummynode); /* use common `dummynode' */ lsize = 0; } else { int i; lsize = ceillog2(size); if (lsize > MAXBITS) luaG_runerror(L, "table overflow"); size = twoto(lsize); t->node = luaM_newvector(L, size, Node); for (i=0; i<size; i++) { Node *n = gnode(t, i); gnext(n) = NULL; setnilvalue(gkey(n)); setnilvalue(gval(n)); } } t->lsizenode = cast_byte(lsize); t->lastfree = gnode(t, size); /* all positions are free */ }
t->lastfree = gnode(t, size); /* all positions are free */ 从这行代码可知,lastfree指针指向的那个节点是不可用的; 这个图里的lastfree指向的有点不明确
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
t->lastfree = gnode(t, size); /* all positions are free */
从这行代码可知,lastfree指针指向的那个节点是不可用的;
这个图里的lastfree指向的有点不明确
The text was updated successfully, but these errors were encountered: