diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-01-25 19:05:40 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-01-25 19:05:40 -0200 |
commit | a4b96ce9a3305ae3585c0bb143fa7342c140f20b (patch) | |
tree | fbb635282c4b72dde25e5c9ffb2bc6d314419d05 /llimits.h | |
parent | 291f564485d8968fc7b0d043dda5ff91a7ce604b (diff) | |
download | lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.gz lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.bz2 lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.zip |
first implementation of long strings
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.94 2011/11/29 15:39:48 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.95 2011/12/06 16:58:36 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -125,6 +125,15 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
125 | 125 | ||
126 | 126 | ||
127 | /* | 127 | /* |
128 | ** maximum length for short strings, that is, strings that are | ||
129 | ** internalized. (Cannot be smaller than reserved words or tags | ||
130 | ** for metamethods; #"function" = 8, #"__newindex" = 10; should | ||
131 | ** not be larger than 255, to allow future changes) | ||
132 | */ | ||
133 | #define LUA_MAXSHORTLEN (8 * sizeof(void*)) | ||
134 | |||
135 | |||
136 | /* | ||
128 | ** type for virtual-machine instructions | 137 | ** type for virtual-machine instructions |
129 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) | 138 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) |
130 | */ | 139 | */ |