mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
size of short strings stored in a single byte, to reduce the size
of struct 'TString'
This commit is contained in:
parent
5b01cb39b5
commit
7e2015a46d
9 changed files with 69 additions and 45 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lstring.h,v 1.54 2014/03/19 18:51:42 roberto Exp roberto $
|
||||
** $Id: lstring.h,v 1.56 2014/07/18 14:46:47 roberto Exp roberto $
|
||||
** String table (keep all strings handled by Lua)
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
|
||||
#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char))
|
||||
#define sizestring(s) sizelstring((s)->len)
|
||||
|
||||
#define sizeludata(l) (sizeof(union UUdata) + (l))
|
||||
#define sizeudata(u) sizeludata((u)->len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue