Home
last modified time | relevance | path

Searched refs:srclen (Results 1 – 5 of 5) sorted by relevance

/l4re-core-master/lua/lib/contrib/src/
A Dlobject.c557 void luaO_chunkid (char *out, const char *source, size_t srclen) { in luaO_chunkid() argument
560 if (srclen <= bufflen) /* small enough? */ in luaO_chunkid()
561 memcpy(out, source + 1, srclen * sizeof(char)); in luaO_chunkid()
568 if (srclen <= bufflen) /* small enough? */ in luaO_chunkid()
569 memcpy(out, source + 1, srclen * sizeof(char)); in luaO_chunkid()
573 memcpy(out, source + 1 + srclen - bufflen, bufflen * sizeof(char)); in luaO_chunkid()
580 if (srclen < bufflen && nl == NULL) { /* small one-line source? */ in luaO_chunkid()
581 addstr(out, source, srclen); /* keep it */ in luaO_chunkid()
584 if (nl != NULL) srclen = nl - source; /* stop at first newline */ in luaO_chunkid()
585 if (srclen > bufflen) srclen = bufflen; in luaO_chunkid()
[all …]
A Dldebug.c259 ar->srclen = LL("=[C]"); in funcinfo()
268 ar->srclen = tsslen(p->source); in funcinfo()
272 ar->srclen = LL("=?"); in funcinfo()
278 luaO_chunkid(ar->short_src, ar->source, ar->srclen); in funcinfo()
A Dldblib.c171 lua_pushlstring(L, ar.source, ar.srclen); in db_getinfo()
A Dlua.h476 size_t srclen; /* (S) */ member
A Dlobject.h796 LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t srclen);

Completed in 11 milliseconds