diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:15:52 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:15:52 -0200 |
| commit | 438a9fcc782754ce265412769519670475898f5c (patch) | |
| tree | 0b9bb47c459416226d0f01224e717e0c02c0282b | |
| parent | 7e2015a46df7976bddee313b994742e49e420714 (diff) | |
| download | lua-438a9fcc782754ce265412769519670475898f5c.tar.gz lua-438a9fcc782754ce265412769519670475898f5c.tar.bz2 lua-438a9fcc782754ce265412769519670475898f5c.zip | |
LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not
affect the API and is seldom modified)
| -rw-r--r-- | llimits.h | 12 | ||||
| -rw-r--r-- | luaconf.h | 11 |
2 files changed, 12 insertions, 11 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.127 2015/01/16 13:26:55 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.128 2015/01/16 15:41:03 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 | */ |
| @@ -165,6 +165,16 @@ typedef unsigned long Instruction; | |||
| 165 | 165 | ||
| 166 | 166 | ||
| 167 | 167 | ||
| 168 | /* | ||
| 169 | ** Maximum length for short strings, that is, strings that are | ||
| 170 | ** internalized. (Cannot be smaller than reserved words or tags for | ||
| 171 | ** metamethods, as these strings must be internalized; | ||
| 172 | ** #("function") = 8, #("__newindex") = 10.) | ||
| 173 | */ | ||
| 174 | #if !defined(LUAI_MAXSHORTLEN) | ||
| 175 | #define LUAI_MAXSHORTLEN 40 | ||
| 176 | #endif | ||
| 177 | |||
| 168 | 178 | ||
| 169 | /* | 179 | /* |
| 170 | ** Initial size for the string table (must be power of 2). | 180 | ** Initial size for the string table (must be power of 2). |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.239 2015/01/13 17:24:22 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.240 2015/01/13 19:50:30 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -689,15 +689,6 @@ | |||
| 689 | 689 | ||
| 690 | 690 | ||
| 691 | /* | 691 | /* |
| 692 | @@ LUAI_MAXSHORTLEN is the maximum length for short strings, that is, | ||
| 693 | ** strings that are internalized. (Cannot be smaller than reserved words | ||
| 694 | ** or tags for metamethods, as these strings must be internalized; | ||
| 695 | ** #("function") = 8, #("__newindex") = 10.) | ||
| 696 | */ | ||
| 697 | #define LUAI_MAXSHORTLEN 40 | ||
| 698 | |||
| 699 | |||
| 700 | /* | ||
| 701 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. | 692 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. |
| 702 | ** CHANGE it if it uses too much C-stack space. (For long double, | 693 | ** CHANGE it if it uses too much C-stack space. (For long double, |
| 703 | ** 'string.format("%.99f", 1e4932)' needs ~5030 bytes, so a | 694 | ** 'string.format("%.99f", 1e4932)' needs ~5030 bytes, so a |
