Initialize kind before use in check.
[freeciv.git] / dependencies / lua-5.3 / src / luaconf.h
bloba458be2b2ee724dbd245d76e5699b0eb5c8fa038
1 /*
2 ** $Id: luaconf.h,v 1.259 2016/12/22 13:08:50 roberto Exp $
3 ** Configuration file for Lua
4 ** See Copyright Notice in lua.h
5 */
8 #ifndef luaconf_h
9 #define luaconf_h
11 #include <limits.h>
12 #include <stddef.h>
14 #include "localluaconf.h"
17 ** ===================================================================
18 ** Search for "@@" to find all configurable definitions.
19 ** ===================================================================
24 ** {====================================================================
25 ** System Configuration: macros to adapt (if needed) Lua to some
26 ** particular platform, for instance compiling it with 32-bit numbers or
27 ** restricting it to C89.
28 ** =====================================================================
32 @@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. You
33 ** can also define LUA_32BITS in the make file, but changing here you
34 ** ensure that all software connected to Lua will be compiled with the
35 ** same configuration.
37 /* #define LUA_32BITS */
41 @@ LUA_USE_C89 controls the use of non-ISO-C89 features.
42 ** Define it if you want Lua to avoid the use of a few C99 features
43 ** or Windows-specific features on Windows.
45 /* #define LUA_USE_C89 */
49 ** By default, Lua on Windows use (some) specific Windows features
51 #if !defined(LUA_USE_C89) && defined(_WIN32) && !defined(_WIN32_WCE)
52 #define LUA_USE_WINDOWS /* enable goodies for regular Windows */
53 #endif
56 #if defined(LUA_USE_WINDOWS)
57 #define LUA_DL_DLL /* enable support for DLL */
58 #define LUA_USE_C89 /* broadly, Windows is C89 */
59 #endif
62 #if defined(LUA_USE_LINUX)
63 #define LUA_USE_POSIX
64 #define LUA_USE_DLOPEN /* needs an extra library: -ldl */
65 #endif
68 #if defined(LUA_USE_MACOSX)
69 #define LUA_USE_POSIX
70 #define LUA_USE_DLOPEN /* MacOS does not need -ldl */
71 #endif
75 @@ LUA_C89_NUMBERS ensures that Lua uses the largest types available for
76 ** C89 ('long' and 'double'); Windows always has '__int64', so it does
77 ** not need to use this case.
79 #if defined(LUA_USE_C89) && !defined(LUA_USE_WINDOWS)
80 #define LUA_C89_NUMBERS
81 #endif
86 @@ LUAI_BITSINT defines the (minimum) number of bits in an 'int'.
88 /* avoid undefined shifts */
89 #if ((INT_MAX >> 15) >> 15) >= 1
90 #define LUAI_BITSINT 32
91 #else
92 /* 'int' always must have at least 16 bits */
93 #define LUAI_BITSINT 16
94 #endif
98 @@ LUA_INT_TYPE defines the type for Lua integers.
99 @@ LUA_FLOAT_TYPE defines the type for Lua floats.
100 ** Lua should work fine with any mix of these options (if supported
101 ** by your C compiler). The usual configurations are 64-bit integers
102 ** and 'double' (the default), 32-bit integers and 'float' (for
103 ** restricted platforms), and 'long'/'double' (for C compilers not
104 ** compliant with C99, which may not have support for 'long long').
107 /* predefined options for LUA_INT_TYPE */
108 #define LUA_INT_INT 1
109 #define LUA_INT_LONG 2
110 #define LUA_INT_LONGLONG 3
112 /* predefined options for LUA_FLOAT_TYPE */
113 #define LUA_FLOAT_FLOAT 1
114 #define LUA_FLOAT_DOUBLE 2
115 #define LUA_FLOAT_LONGDOUBLE 3
117 #if defined(LUA_32BITS) /* { */
119 ** 32-bit integers and 'float'
121 #if LUAI_BITSINT >= 32 /* use 'int' if big enough */
122 #define LUA_INT_TYPE LUA_INT_INT
123 #else /* otherwise use 'long' */
124 #define LUA_INT_TYPE LUA_INT_LONG
125 #endif
126 #define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT
128 #elif defined(LUA_C89_NUMBERS) /* }{ */
130 ** largest types available for C89 ('long' and 'double')
132 #define LUA_INT_TYPE LUA_INT_LONG
133 #define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
135 #endif /* } */
139 ** default configuration for 64-bit Lua ('long long' and 'double')
141 #if !defined(LUA_INT_TYPE)
142 #define LUA_INT_TYPE LUA_INT_LONGLONG
143 #endif
145 #if !defined(LUA_FLOAT_TYPE)
146 #define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
147 #endif
149 /* }================================================================== */
155 ** {==================================================================
156 ** Configuration for Paths.
157 ** ===================================================================
161 ** LUA_PATH_SEP is the character that separates templates in a path.
162 ** LUA_PATH_MARK is the string that marks the substitution points in a
163 ** template.
164 ** LUA_EXEC_DIR in a Windows path is replaced by the executable's
165 ** directory.
167 #define LUA_PATH_SEP ";"
168 #define LUA_PATH_MARK "?"
169 #define LUA_EXEC_DIR "!"
173 @@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
174 ** Lua libraries.
175 @@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
176 ** C libraries.
177 ** CHANGE them if your machine has a non-conventional directory
178 ** hierarchy or if you want to install your libraries in
179 ** non-conventional directories.
181 #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
182 #if defined(_WIN32) /* { */
184 ** In Windows, any exclamation mark ('!') in the path is replaced by the
185 ** path of the directory of the executable file of the current process.
187 #define LUA_LDIR "!\\lua\\"
188 #define LUA_CDIR "!\\"
189 #define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
190 #define LUA_PATH_DEFAULT \
191 LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
192 LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
193 LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
194 ".\\?.lua;" ".\\?\\init.lua"
195 #define LUA_CPATH_DEFAULT \
196 LUA_CDIR"?.dll;" \
197 LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
198 LUA_CDIR"loadall.dll;" ".\\?.dll"
200 #else /* }{ */
202 #define LUA_ROOT "/usr/local/"
203 #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
204 #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
205 #define LUA_PATH_DEFAULT \
206 LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
207 LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
208 "./?.lua;" "./?/init.lua"
209 #define LUA_CPATH_DEFAULT \
210 LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
211 #endif /* } */
215 @@ LUA_DIRSEP is the directory separator (for submodules).
216 ** CHANGE it if your machine does not use "/" as the directory separator
217 ** and is not Windows. (On Windows Lua automatically uses "\".)
219 #if defined(_WIN32)
220 #define LUA_DIRSEP "\\"
221 #else
222 #define LUA_DIRSEP "/"
223 #endif
225 /* }================================================================== */
229 ** {==================================================================
230 ** Marks for exported symbols in the C code
231 ** ===================================================================
235 @@ LUA_API is a mark for all core API functions.
236 @@ LUALIB_API is a mark for all auxiliary library functions.
237 @@ LUAMOD_API is a mark for all standard library opening functions.
238 ** CHANGE them if you need to define those functions in some special way.
239 ** For instance, if you want to create one Windows DLL with the core and
240 ** the libraries, you may want to use the following definition (define
241 ** LUA_BUILD_AS_DLL to get it).
243 #if defined(LUA_BUILD_AS_DLL) /* { */
245 #if defined(LUA_CORE) || defined(LUA_LIB) /* { */
246 #define LUA_API __declspec(dllexport)
247 #else /* }{ */
248 #define LUA_API __declspec(dllimport)
249 #endif /* } */
251 #else /* }{ */
253 #define LUA_API extern
255 #endif /* } */
258 /* more often than not the libs go together with the core */
259 #define LUALIB_API LUA_API
260 #define LUAMOD_API LUALIB_API
264 @@ LUAI_FUNC is a mark for all extern functions that are not to be
265 ** exported to outside modules.
266 @@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables
267 ** that are not to be exported to outside modules (LUAI_DDEF for
268 ** definitions and LUAI_DDEC for declarations).
269 ** CHANGE them if you need to mark them in some special way. Elf/gcc
270 ** (versions 3.2 and later) mark them as "hidden" to optimize access
271 ** when Lua is compiled as a shared library. Not all elf targets support
272 ** this attribute. Unfortunately, gcc does not offer a way to check
273 ** whether the target offers that support, and those without support
274 ** give a warning about it. To avoid these warnings, change to the
275 ** default definition.
277 #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
278 defined(__ELF__) /* { */
279 #define LUAI_FUNC __attribute__((visibility("hidden"))) extern
280 #else /* }{ */
281 #define LUAI_FUNC extern
282 #endif /* } */
284 #define LUAI_DDEC LUAI_FUNC
285 #define LUAI_DDEF /* empty */
287 /* }================================================================== */
291 ** {==================================================================
292 ** Compatibility with previous versions
293 ** ===================================================================
297 @@ LUA_COMPAT_5_2 controls other macros for compatibility with Lua 5.2.
298 @@ LUA_COMPAT_5_1 controls other macros for compatibility with Lua 5.1.
299 ** You can define it to get all options, or change specific options
300 ** to fit your specific needs.
302 #if defined(LUA_COMPAT_5_2) /* { */
305 @@ LUA_COMPAT_MATHLIB controls the presence of several deprecated
306 ** functions in the mathematical library.
308 #define LUA_COMPAT_MATHLIB
311 @@ LUA_COMPAT_BITLIB controls the presence of library 'bit32'.
313 #define LUA_COMPAT_BITLIB
316 @@ LUA_COMPAT_IPAIRS controls the effectiveness of the __ipairs metamethod.
318 #define LUA_COMPAT_IPAIRS
321 @@ LUA_COMPAT_APIINTCASTS controls the presence of macros for
322 ** manipulating other integer types (lua_pushunsigned, lua_tounsigned,
323 ** luaL_checkint, luaL_checklong, etc.)
325 #define LUA_COMPAT_APIINTCASTS
327 #endif /* } */
330 #if defined(LUA_COMPAT_5_1) /* { */
332 /* Incompatibilities from 5.2 -> 5.3 */
333 #define LUA_COMPAT_MATHLIB
334 #define LUA_COMPAT_APIINTCASTS
337 @@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'.
338 ** You can replace it with 'table.unpack'.
340 #define LUA_COMPAT_UNPACK
343 @@ LUA_COMPAT_LOADERS controls the presence of table 'package.loaders'.
344 ** You can replace it with 'package.searchers'.
346 #define LUA_COMPAT_LOADERS
349 @@ macro 'lua_cpcall' emulates deprecated function lua_cpcall.
350 ** You can call your C function directly (with light C functions).
352 #define lua_cpcall(L,f,u) \
353 (lua_pushcfunction(L, (f)), \
354 lua_pushlightuserdata(L,(u)), \
355 lua_pcall(L,1,0,0))
359 @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library.
360 ** You can rewrite 'log10(x)' as 'log(x, 10)'.
362 #define LUA_COMPAT_LOG10
365 @@ LUA_COMPAT_LOADSTRING defines the function 'loadstring' in the base
366 ** library. You can rewrite 'loadstring(s)' as 'load(s)'.
368 #define LUA_COMPAT_LOADSTRING
371 @@ LUA_COMPAT_MAXN defines the function 'maxn' in the table library.
373 #define LUA_COMPAT_MAXN
376 @@ The following macros supply trivial compatibility for some
377 ** changes in the API. The macros themselves document how to
378 ** change your code to avoid using them.
380 #define lua_strlen(L,i) lua_rawlen(L, (i))
382 #define lua_objlen(L,i) lua_rawlen(L, (i))
384 #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
385 #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT)
388 @@ LUA_COMPAT_MODULE controls compatibility with previous
389 ** module functions 'module' (Lua) and 'luaL_register' (C).
391 #define LUA_COMPAT_MODULE
393 #endif /* } */
397 @@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
398 @@ a float mark ('.0').
399 ** This macro is not on by default even in compatibility mode,
400 ** because this is not really an incompatibility.
402 /* #define LUA_COMPAT_FLOATSTRING */
404 /* }================================================================== */
409 ** {==================================================================
410 ** Configuration for Numbers.
411 ** Change these definitions if no predefined LUA_FLOAT_* / LUA_INT_*
412 ** satisfy your needs.
413 ** ===================================================================
417 @@ LUA_NUMBER is the floating-point type used by Lua.
418 @@ LUAI_UACNUMBER is the result of a 'default argument promotion'
419 @@ over a floating number.
420 @@ l_mathlim(x) corrects limit name 'x' to the proper float type
421 ** by prefixing it with one of FLT/DBL/LDBL.
422 @@ LUA_NUMBER_FRMLEN is the length modifier for writing floats.
423 @@ LUA_NUMBER_FMT is the format for writing floats.
424 @@ lua_number2str converts a float to a string.
425 @@ l_mathop allows the addition of an 'l' or 'f' to all math operations.
426 @@ l_floor takes the floor of a float.
427 @@ lua_str2number converts a decimal numeric string to a number.
431 /* The following definitions are good for most cases here */
433 #define l_floor(x) (l_mathop(floor)(x))
435 #define lua_number2str(s,sz,n) \
436 l_sprintf((s), sz, LUA_NUMBER_FMT, (LUAI_UACNUMBER)(n))
439 @@ lua_numbertointeger converts a float number to an integer, or
440 ** returns 0 if float is not within the range of a lua_Integer.
441 ** (The range comparisons are tricky because of rounding. The tests
442 ** here assume a two-complement representation, where MININTEGER always
443 ** has an exact representation as a float; MAXINTEGER may not have one,
444 ** and therefore its conversion to float may have an ill-defined value.)
446 #define lua_numbertointeger(n,p) \
447 ((n) >= (LUA_NUMBER)(LUA_MININTEGER) && \
448 (n) < -(LUA_NUMBER)(LUA_MININTEGER) && \
449 (*(p) = (LUA_INTEGER)(n), 1))
452 /* now the variable definitions */
454 #if LUA_FLOAT_TYPE == LUA_FLOAT_FLOAT /* { single float */
456 #define LUA_NUMBER float
458 #define l_mathlim(n) (FLT_##n)
460 #define LUAI_UACNUMBER double
462 #define LUA_NUMBER_FRMLEN ""
463 #define LUA_NUMBER_FMT "%.7g"
465 #define l_mathop(op) op##f
467 #define lua_str2number(s,p) strtof((s), (p))
470 #elif LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE /* }{ long double */
472 #define LUA_NUMBER long double
474 #define l_mathlim(n) (LDBL_##n)
476 #define LUAI_UACNUMBER long double
478 #define LUA_NUMBER_FRMLEN "L"
479 #define LUA_NUMBER_FMT "%.19Lg"
481 #define l_mathop(op) op##l
483 #define lua_str2number(s,p) strtold((s), (p))
485 #elif LUA_FLOAT_TYPE == LUA_FLOAT_DOUBLE /* }{ double */
487 #define LUA_NUMBER double
489 #define l_mathlim(n) (DBL_##n)
491 #define LUAI_UACNUMBER double
493 #define LUA_NUMBER_FRMLEN ""
494 #define LUA_NUMBER_FMT "%.14g"
496 #define l_mathop(op) op
498 #define lua_str2number(s,p) strtod((s), (p))
500 #else /* }{ */
502 #error "numeric float type not defined"
504 #endif /* } */
509 @@ LUA_INTEGER is the integer type used by Lua.
511 @@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER.
513 @@ LUAI_UACINT is the result of a 'default argument promotion'
514 @@ over a lUA_INTEGER.
515 @@ LUA_INTEGER_FRMLEN is the length modifier for reading/writing integers.
516 @@ LUA_INTEGER_FMT is the format for writing integers.
517 @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER.
518 @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER.
519 @@ lua_integer2str converts an integer to a string.
523 /* The following definitions are good for most cases here */
525 #define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
527 #define LUAI_UACINT LUA_INTEGER
529 #define lua_integer2str(s,sz,n) \
530 l_sprintf((s), sz, LUA_INTEGER_FMT, (LUAI_UACINT)(n))
533 ** use LUAI_UACINT here to avoid problems with promotions (which
534 ** can turn a comparison between unsigneds into a signed comparison)
536 #define LUA_UNSIGNED unsigned LUAI_UACINT
539 /* now the variable definitions */
541 #if LUA_INT_TYPE == LUA_INT_INT /* { int */
543 #define LUA_INTEGER int
544 #define LUA_INTEGER_FRMLEN ""
546 #define LUA_MAXINTEGER INT_MAX
547 #define LUA_MININTEGER INT_MIN
549 #elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */
551 #define LUA_INTEGER long
552 #define LUA_INTEGER_FRMLEN "l"
554 #define LUA_MAXINTEGER LONG_MAX
555 #define LUA_MININTEGER LONG_MIN
557 #elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */
559 /* use presence of macro LLONG_MAX as proxy for C99 compliance */
560 #if defined(LLONG_MAX) /* { */
561 /* use ISO C99 stuff */
563 #define LUA_INTEGER long long
564 #define LUA_INTEGER_FRMLEN "ll"
566 #define LUA_MAXINTEGER LLONG_MAX
567 #define LUA_MININTEGER LLONG_MIN
569 #elif defined(LUA_USE_WINDOWS) /* }{ */
570 /* in Windows, can use specific Windows types */
572 #define LUA_INTEGER __int64
573 #define LUA_INTEGER_FRMLEN "I64"
575 #define LUA_MAXINTEGER _I64_MAX
576 #define LUA_MININTEGER _I64_MIN
578 #else /* }{ */
580 #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
581 or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
583 #endif /* } */
585 #else /* }{ */
587 #error "numeric integer type not defined"
589 #endif /* } */
591 /* }================================================================== */
595 ** {==================================================================
596 ** Dependencies with C99 and other C details
597 ** ===================================================================
601 @@ l_sprintf is equivalent to 'snprintf' or 'sprintf' in C89.
602 ** (All uses in Lua have only one format item.)
604 #if !defined(LUA_USE_C89)
605 #define l_sprintf(s,sz,f,i) snprintf(s,sz,f,i)
606 #else
607 #define l_sprintf(s,sz,f,i) ((void)(sz), sprintf(s,f,i))
608 #endif
612 @@ lua_strx2number converts an hexadecimal numeric string to a number.
613 ** In C99, 'strtod' does that conversion. Otherwise, you can
614 ** leave 'lua_strx2number' undefined and Lua will provide its own
615 ** implementation.
617 #if !defined(LUA_USE_C89)
618 #define lua_strx2number(s,p) lua_str2number(s,p)
619 #endif
623 @@ lua_number2strx converts a float to an hexadecimal numeric string.
624 ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that.
625 ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will
626 ** provide its own implementation.
628 #if !defined(LUA_USE_C89)
629 #define lua_number2strx(L,b,sz,f,n) \
630 ((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n)))
631 #endif
635 ** 'strtof' and 'opf' variants for math functions are not valid in
636 ** C89. Otherwise, the macro 'HUGE_VALF' is a good proxy for testing the
637 ** availability of these variants. ('math.h' is already included in
638 ** all files that use these macros.)
640 #if defined(LUA_USE_C89) || (defined(HUGE_VAL) && !defined(HUGE_VALF))
641 #undef l_mathop /* variants not available */
642 #undef lua_str2number
643 #define l_mathop(op) (lua_Number)op /* no variant */
644 #define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
645 #endif
649 @@ LUA_KCONTEXT is the type of the context ('ctx') for continuation
650 ** functions. It must be a numerical type; Lua will use 'intptr_t' if
651 ** available, otherwise it will use 'ptrdiff_t' (the nearest thing to
652 ** 'intptr_t' in C89)
654 #define LUA_KCONTEXT ptrdiff_t
656 #if !defined(LUA_USE_C89) && defined(__STDC_VERSION__) && \
657 __STDC_VERSION__ >= 199901L
658 #include <stdint.h>
659 #if defined(INTPTR_MAX) /* even in C99 this type is optional */
660 #undef LUA_KCONTEXT
661 #define LUA_KCONTEXT intptr_t
662 #endif
663 #endif
667 @@ lua_getlocaledecpoint gets the locale "radix character" (decimal point).
668 ** Change that if you do not want to use C locales. (Code using this
669 ** macro must include header 'locale.h'.)
671 #if !defined(lua_getlocaledecpoint)
672 #define lua_getlocaledecpoint() (localeconv()->decimal_point[0])
673 #endif
675 /* }================================================================== */
679 ** {==================================================================
680 ** Language Variations
681 ** =====================================================================
685 @@ LUA_NOCVTN2S/LUA_NOCVTS2N control how Lua performs some
686 ** coercions. Define LUA_NOCVTN2S to turn off automatic coercion from
687 ** numbers to strings. Define LUA_NOCVTS2N to turn off automatic
688 ** coercion from strings to numbers.
690 /* #define LUA_NOCVTN2S */
691 /* #define LUA_NOCVTS2N */
695 @@ LUA_USE_APICHECK turns on several consistency checks on the C API.
696 ** Define it as a help when debugging C code.
698 #if defined(LUA_USE_APICHECK)
699 #include <assert.h>
700 #define luai_apicheck(l,e) assert(e)
701 #endif
703 /* }================================================================== */
707 ** {==================================================================
708 ** Macros that affect the API and must be stable (that is, must be the
709 ** same when you compile Lua and when you compile code that links to
710 ** Lua). You probably do not want/need to change them.
711 ** =====================================================================
715 @@ LUAI_MAXSTACK limits the size of the Lua stack.
716 ** CHANGE it if you need a different limit. This limit is arbitrary;
717 ** its only purpose is to stop Lua from consuming unlimited stack
718 ** space (and to reserve some numbers for pseudo-indices).
720 #if LUAI_BITSINT >= 32
721 #define LUAI_MAXSTACK 1000000
722 #else
723 #define LUAI_MAXSTACK 15000
724 #endif
728 @@ LUA_EXTRASPACE defines the size of a raw memory area associated with
729 ** a Lua state with very fast access.
730 ** CHANGE it if you need a different size.
732 #define LUA_EXTRASPACE (sizeof(void *))
736 @@ LUA_IDSIZE gives the maximum size for the description of the source
737 @@ of a function in debug information.
738 ** CHANGE it if you want a different size.
740 #define LUA_IDSIZE 60
744 @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
745 ** CHANGE it if it uses too much C-stack space. (For long double,
746 ** 'string.format("%.99f", -1e4932)' needs 5034 bytes, so a
747 ** smaller buffer would force a memory allocation for each call to
748 ** 'string.format'.)
750 #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE
751 #define LUAL_BUFFERSIZE 8192
752 #else
753 #define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer)))
754 #endif
756 /* }================================================================== */
760 @@ LUA_QL describes how error messages quote program elements.
761 ** Lua does not use these macros anymore; they are here for
762 ** compatibility only.
764 #define LUA_QL(x) "'" x "'"
765 #define LUA_QS LUA_QL("%s")
770 /* =================================================================== */
773 ** Local configuration. You can use this space to add your redefinitions
774 ** without modifying the main part of the file.
781 #endif