aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
commit55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch)
tree1a1f02de45d28c7eb8976087ade773d7937bed14 /lstring.h
parent97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff)
downloadlua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.gz
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.bz2
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.zip
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.
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lstring.h b/lstring.h
index b7226d83..c88357aa 100644
--- a/lstring.h
+++ b/lstring.h
@@ -20,6 +20,17 @@
20 20
21 21
22/* 22/*
23** Maximum length for short strings, that is, strings that are
24** internalized. (Cannot be smaller than reserved words or tags for
25** metamethods, as these strings must be internalized;
26** #("function") = 8, #("__newindex") = 10.)
27*/
28#if !defined(LUAI_MAXSHORTLEN)
29#define LUAI_MAXSHORTLEN 40
30#endif
31
32
33/*
23** Size of a short TString: Size of the header plus space for the string 34** Size of a short TString: Size of the header plus space for the string
24** itself (including final '\0'). 35** itself (including final '\0').
25*/ 36*/