mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that concerns only specific parts of the code) moved out of llimits.h, to more appropriate places.
This commit is contained in:
parent
97ef8e7bd4
commit
55ac40f859
19 changed files with 159 additions and 165 deletions
11
lstring.h
11
lstring.h
|
|
@ -19,6 +19,17 @@
|
|||
#define MEMERRMSG "not enough memory"
|
||||
|
||||
|
||||
/*
|
||||
** Maximum length for short strings, that is, strings that are
|
||||
** internalized. (Cannot be smaller than reserved words or tags for
|
||||
** metamethods, as these strings must be internalized;
|
||||
** #("function") = 8, #("__newindex") = 10.)
|
||||
*/
|
||||
#if !defined(LUAI_MAXSHORTLEN)
|
||||
#define LUAI_MAXSHORTLEN 40
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
** Size of a short TString: Size of the header plus space for the string
|
||||
** itself (including final '\0').
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue