Searched refs:luaS_newlstr (Results 1 - 14 of 14) sorted by relevance

/freebsd-current/contrib/lua/src/
H A Dlstring.h28 #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
52 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
H A Dlstring.c221 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { function
253 p[0] = luaS_newlstr(L, str, strlen(str));
H A Dlobject.c377 setsvalue(L, obj, luaS_newlstr(L, buff, len));
416 setsvalue2s(L, L->top.p, luaS_newlstr(L, str, lstr));
H A Dlundump.c119 ts = luaS_newlstr(L, buff, size); /* create string */
H A Dllex.c136 TString *ts = luaS_newlstr(L, str, l); /* create new string */
H A Dlapi.c529 ts = (len == 0) ? luaS_new(L, "") : luaS_newlstr(L, s, len);
1291 setsvalue2s(L, L->top.p, luaS_newlstr(L, "", 0)); /* push empty string */
H A Dlvm.c672 ts = luaS_newlstr(L, buff, tl);
/freebsd-current/sys/contrib/openzfs/module/lua/
H A Dlstring.h19 #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
42 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
H A Dlstring.c156 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { function
171 return luaS_newlstr(L, str, strlen(str));
H A Dlobject.c168 setsvalue2s(L, L->top++, luaS_newlstr(L, str, l));
H A Dllex.c123 TString *ts = luaS_newlstr(L, str, l); /* create new string */
H A Dlvm.c52 setsvalue2s(L, obj, luaS_newlstr(L, s, l));
327 setsvalue2s(L, top-n, luaS_newlstr(L, buffer, tl));
H A Dlapi.c503 ts = luaS_newlstr(L, s, len);
1137 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
H A Dlcode.c334 setsvalue(L, L->top++, luaS_newlstr(L, (char *)&r, sizeof(r)));

Completed in 281 milliseconds