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:
Roberto Ierusalimschy
2024-06-20 13:43:33 -03:00
parent 97ef8e7bd4
commit 55ac40f859
19 changed files with 159 additions and 165 deletions

View File

@@ -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').