-
Notifications
You must be signed in to change notification settings - Fork 0
/
luaconf.diff
629 lines (485 loc) · 16.6 KB
/
luaconf.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
--- original
+++ modified
@@ -47,7 +47,7 @@
** (It will crash with a limit too high.)
*/
#if !defined(LUAI_MAXCSTACK)
-#define LUAI_MAXCSTACK 2000
+#define LUAI_MAXCSTACK 200
#endif
@@ -56,7 +56,7 @@
** Define it if you want Lua to avoid the use of a few C99 features
** or Windows-specific features on Windows.
*/
-/* #define LUA_USE_C89 */
+#define LUA_USE_C89
/*
@@ -68,27 +68,27 @@
#if defined(LUA_USE_WINDOWS)
-#define LUA_DL_DLL /* enable support for DLL */
-#define LUA_USE_C89 /* broadly, Windows is C89 */
+#define LUA_DL_DLL /* enable support for DLL */
+#define LUA_USE_C89 /* broadly, Windows is C89 */
#endif
#if defined(LUA_USE_LINUX)
#define LUA_USE_POSIX
-#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
+#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
#endif
#if defined(LUA_USE_MACOSX)
#define LUA_USE_POSIX
-#define LUA_USE_DLOPEN /* MacOS does not need -ldl */
+#define LUA_USE_DLOPEN /* MacOS does not need -ldl */
#endif
/*
@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
*/
-#define LUAI_IS32INT ((UINT_MAX >> 30) >= 3)
+#define LUAI_IS32INT ((UINT_MAX >> 30) >= 3)
/* }================================================================== */
@@ -103,7 +103,7 @@
/*
@@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats.
*/
-/* #define LUA_32BITS */
+#define LUA_32BITS
/*
@@ -127,45 +127,45 @@
*/
/* predefined options for LUA_INT_TYPE */
-#define LUA_INT_INT 1
-#define LUA_INT_LONG 2
-#define LUA_INT_LONGLONG 3
+#define LUA_INT_INT 1
+#define LUA_INT_LONG 2
+#define LUA_INT_LONGLONG 3
/* predefined options for LUA_FLOAT_TYPE */
-#define LUA_FLOAT_FLOAT 1
-#define LUA_FLOAT_DOUBLE 2
-#define LUA_FLOAT_LONGDOUBLE 3
+#define LUA_FLOAT_FLOAT 1
+#define LUA_FLOAT_DOUBLE 2
+#define LUA_FLOAT_LONGDOUBLE 3
-#if defined(LUA_32BITS) /* { */
+#if defined(LUA_32BITS) /* { */
/*
** 32-bit integers and 'float'
*/
#if LUAI_IS32INT /* use 'int' if big enough */
-#define LUA_INT_TYPE LUA_INT_INT
+#define LUA_INT_TYPE LUA_INT_INT
#else /* otherwise use 'long' */
-#define LUA_INT_TYPE LUA_INT_LONG
+#define LUA_INT_TYPE LUA_INT_LONG
#endif
-#define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT
+#define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT
-#elif defined(LUA_C89_NUMBERS) /* }{ */
+#elif defined(LUA_C89_NUMBERS) /* }{ */
/*
** largest types available for C89 ('long' and 'double')
*/
-#define LUA_INT_TYPE LUA_INT_LONG
-#define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
+#define LUA_INT_TYPE LUA_INT_LONG
+#define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
-#endif /* } */
+#endif /* } */
/*
** default configuration for 64-bit Lua ('long long' and 'double')
*/
#if !defined(LUA_INT_TYPE)
-#define LUA_INT_TYPE LUA_INT_LONGLONG
+#define LUA_INT_TYPE LUA_INT_LONGLONG
#endif
#if !defined(LUA_FLOAT_TYPE)
-#define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
+#define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
#endif
/* }================================================================== */
@@ -200,50 +200,50 @@
** non-conventional directories.
*/
-#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
-#if defined(_WIN32) /* { */
+#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
+#if defined(_WIN32) /* { */
/*
** In Windows, any exclamation mark ('!') in the path is replaced by the
** path of the directory of the executable file of the current process.
*/
-#define LUA_LDIR "!\\lua\\"
-#define LUA_CDIR "!\\"
-#define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
+#define LUA_LDIR "!\\lua\\"
+#define LUA_CDIR "!\\"
+#define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
#if !defined(LUA_PATH_DEFAULT)
#define LUA_PATH_DEFAULT \
- LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
- LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
- LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
- ".\\?.lua;" ".\\?\\init.lua"
+ LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
+ LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
+ LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
+ ".\\?.lua;" ".\\?\\init.lua"
#endif
#if !defined(LUA_CPATH_DEFAULT)
#define LUA_CPATH_DEFAULT \
- LUA_CDIR"?.dll;" \
- LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
- LUA_CDIR"loadall.dll;" ".\\?.dll"
+ LUA_CDIR"?.dll;" \
+ LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
+ LUA_CDIR"loadall.dll;" ".\\?.dll"
#endif
-#else /* }{ */
+#else /* }{ */
-#define LUA_ROOT "/usr/local/"
-#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
-#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#define LUA_ROOT "/usr/local/"
+#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
+#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
#if !defined(LUA_PATH_DEFAULT)
#define LUA_PATH_DEFAULT \
- LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
- LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
- "./?.lua;" "./?/init.lua"
+ LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
+ "./?.lua;" "./?/init.lua"
#endif
#if !defined(LUA_CPATH_DEFAULT)
#define LUA_CPATH_DEFAULT \
- LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
+ LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
#endif
-#endif /* } */
+#endif /* } */
/*
@@ -254,9 +254,9 @@
#if !defined(LUA_DIRSEP)
#if defined(_WIN32)
-#define LUA_DIRSEP "\\"
+#define LUA_DIRSEP "\\"
#else
-#define LUA_DIRSEP "/"
+#define LUA_DIRSEP ":"
#endif
#endif
@@ -279,26 +279,26 @@
** the libraries, you may want to use the following definition (define
** LUA_BUILD_AS_DLL to get it).
*/
-#if defined(LUA_BUILD_AS_DLL) /* { */
+#if defined(LUA_BUILD_AS_DLL) /* { */
-#if defined(LUA_CORE) || defined(LUA_LIB) /* { */
+#if defined(LUA_CORE) || defined(LUA_LIB) /* { */
#define LUA_API __declspec(dllexport)
-#else /* }{ */
+#else /* }{ */
#define LUA_API __declspec(dllimport)
-#endif /* } */
+#endif /* } */
-#else /* }{ */
+#else /* }{ */
-#define LUA_API extern
+#define LUA_API extern
-#endif /* } */
+#endif /* } */
/*
** More often than not the libs go together with the core.
*/
-#define LUALIB_API LUA_API
-#define LUAMOD_API LUA_API
+#define LUALIB_API LUA_API
+#define LUAMOD_API LUA_API
/*
@@ -316,14 +316,14 @@
** default definition.
*/
#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
- defined(__ELF__) /* { */
-#define LUAI_FUNC __attribute__((visibility("internal"))) extern
-#else /* }{ */
-#define LUAI_FUNC extern
-#endif /* } */
+ defined(__ELF__) /* { */
+#define LUAI_FUNC __attribute__((visibility("internal"))) extern
+#else /* }{ */
+#define LUAI_FUNC extern
+#endif /* } */
-#define LUAI_DDEC(dec) LUAI_FUNC dec
-#define LUAI_DDEF /* empty */
+#define LUAI_DDEC(dec) LUAI_FUNC dec
+#define LUAI_DDEF /* empty */
/* }================================================================== */
@@ -339,7 +339,7 @@
** You can define it to get all options, or change specific options
** to fit your specific needs.
*/
-#if defined(LUA_COMPAT_5_3) /* { */
+#if defined(LUA_COMPAT_5_3) /* { */
/*
@@ LUA_COMPAT_MATHLIB controls the presence of several deprecated
@@ -373,14 +373,14 @@
** (Once more, these macros were officially removed in 5.3, but they are
** still available here.)
*/
-#define lua_strlen(L,i) lua_rawlen(L, (i))
+#define lua_strlen(L,i) lua_rawlen(L, (i))
-#define lua_objlen(L,i) lua_rawlen(L, (i))
+#define lua_objlen(L,i) lua_rawlen(L, (i))
-#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
-#define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT)
+#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
+#define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT)
-#endif /* } */
+#endif /* } */
/* }================================================================== */
@@ -411,10 +411,10 @@
/* The following definitions are good for most cases here */
-#define l_floor(x) (l_mathop(floor)(x))
+#define l_floor(x) (l_mathop(floor)(x))
#define lua_number2str(s,sz,n) \
- l_sprintf((s), sz, LUA_NUMBER_FMT, (LUAI_UACNUMBER)(n))
+ l_sprintf((s), sz, LUA_NUMBER_FMT, (LUAI_UACNUMBER)(n))
/*
@@ lua_numbertointeger converts a float number with an integral value
@@ -433,57 +433,57 @@
/* now the variable definitions */
-#if LUA_FLOAT_TYPE == LUA_FLOAT_FLOAT /* { single float */
+#if LUA_FLOAT_TYPE == LUA_FLOAT_FLOAT /* { single float */
-#define LUA_NUMBER float
+#define LUA_NUMBER float
-#define l_floatatt(n) (FLT_##n)
+#define l_floatatt(n) (FLT_##n)
-#define LUAI_UACNUMBER double
+#define LUAI_UACNUMBER double
-#define LUA_NUMBER_FRMLEN ""
-#define LUA_NUMBER_FMT "%.7g"
+#define LUA_NUMBER_FRMLEN ""
+#define LUA_NUMBER_FMT "%.7g"
-#define l_mathop(op) op##f
+#define l_mathop(op) op##f
-#define lua_str2number(s,p) strtof((s), (p))
+#define lua_str2number(s,p) strtof((s), (p))
-#elif LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE /* }{ long double */
+#elif LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE /* }{ long double */
-#define LUA_NUMBER long double
+#define LUA_NUMBER long double
-#define l_floatatt(n) (LDBL_##n)
+#define l_floatatt(n) (LDBL_##n)
-#define LUAI_UACNUMBER long double
+#define LUAI_UACNUMBER long double
-#define LUA_NUMBER_FRMLEN "L"
-#define LUA_NUMBER_FMT "%.19Lg"
+#define LUA_NUMBER_FRMLEN "L"
+#define LUA_NUMBER_FMT "%.19Lg"
-#define l_mathop(op) op##l
+#define l_mathop(op) op##l
-#define lua_str2number(s,p) strtold((s), (p))
+#define lua_str2number(s,p) strtold((s), (p))
-#elif LUA_FLOAT_TYPE == LUA_FLOAT_DOUBLE /* }{ double */
+#elif LUA_FLOAT_TYPE == LUA_FLOAT_DOUBLE /* }{ double */
-#define LUA_NUMBER double
+#define LUA_NUMBER double
-#define l_floatatt(n) (DBL_##n)
+#define l_floatatt(n) (DBL_##n)
-#define LUAI_UACNUMBER double
+#define LUAI_UACNUMBER double
-#define LUA_NUMBER_FRMLEN ""
-#define LUA_NUMBER_FMT "%.14g"
+#define LUA_NUMBER_FRMLEN ""
+#define LUA_NUMBER_FMT "%.14g"
-#define l_mathop(op) op
+#define l_mathop(op) op
-#define lua_str2number(s,p) strtod((s), (p))
+#define lua_str2number(s,p) strtod((s), (p))
-#else /* }{ */
+#else /* }{ */
#error "numeric float type not defined"
-#endif /* } */
+#endif /* } */
@@ -506,82 +506,82 @@
/* The following definitions are good for most cases here */
-#define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
+#define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
-#define LUAI_UACINT LUA_INTEGER
+#define LUAI_UACINT LUA_INTEGER
#define lua_integer2str(s,sz,n) \
- l_sprintf((s), sz, LUA_INTEGER_FMT, (LUAI_UACINT)(n))
+ l_sprintf((s), sz, LUA_INTEGER_FMT, (LUAI_UACINT)(n))
/*
** use LUAI_UACINT here to avoid problems with promotions (which
** can turn a comparison between unsigneds into a signed comparison)
*/
-#define LUA_UNSIGNED unsigned LUAI_UACINT
+#define LUA_UNSIGNED unsigned LUAI_UACINT
-#define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT)
+#define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT)
/* now the variable definitions */
-#if LUA_INT_TYPE == LUA_INT_INT /* { int */
+#if LUA_INT_TYPE == LUA_INT_INT /* { int */
-#define LUA_INTEGER int
-#define LUA_INTEGER_FRMLEN ""
+#define LUA_INTEGER int
+#define LUA_INTEGER_FRMLEN ""
-#define LUA_MAXINTEGER INT_MAX
-#define LUA_MININTEGER INT_MIN
+#define LUA_MAXINTEGER INT_MAX
+#define LUA_MININTEGER INT_MIN
-#define LUA_MAXUNSIGNED UINT_MAX
+#define LUA_MAXUNSIGNED UINT_MAX
-#elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */
+#elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */
-#define LUA_INTEGER long
-#define LUA_INTEGER_FRMLEN "l"
+#define LUA_INTEGER long
+#define LUA_INTEGER_FRMLEN "l"
-#define LUA_MAXINTEGER LONG_MAX
-#define LUA_MININTEGER LONG_MIN
+#define LUA_MAXINTEGER LONG_MAX
+#define LUA_MININTEGER LONG_MIN
-#define LUA_MAXUNSIGNED ULONG_MAX
+#define LUA_MAXUNSIGNED ULONG_MAX
-#elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */
+#elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */
/* use presence of macro LLONG_MAX as proxy for C99 compliance */
-#if defined(LLONG_MAX) /* { */
+#if defined(LLONG_MAX) /* { */
/* use ISO C99 stuff */
-#define LUA_INTEGER long long
-#define LUA_INTEGER_FRMLEN "ll"
+#define LUA_INTEGER long long
+#define LUA_INTEGER_FRMLEN "ll"
-#define LUA_MAXINTEGER LLONG_MAX
-#define LUA_MININTEGER LLONG_MIN
+#define LUA_MAXINTEGER LLONG_MAX
+#define LUA_MININTEGER LLONG_MIN
-#define LUA_MAXUNSIGNED ULLONG_MAX
+#define LUA_MAXUNSIGNED ULLONG_MAX
#elif defined(LUA_USE_WINDOWS) /* }{ */
/* in Windows, can use specific Windows types */
-#define LUA_INTEGER __int64
-#define LUA_INTEGER_FRMLEN "I64"
+#define LUA_INTEGER __int64
+#define LUA_INTEGER_FRMLEN "I64"
-#define LUA_MAXINTEGER _I64_MAX
-#define LUA_MININTEGER _I64_MIN
+#define LUA_MAXINTEGER _I64_MAX
+#define LUA_MININTEGER _I64_MIN
-#define LUA_MAXUNSIGNED _UI64_MAX
+#define LUA_MAXUNSIGNED _UI64_MAX
-#else /* }{ */
+#else /* }{ */
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
-#endif /* } */
+#endif /* } */
-#else /* }{ */
+#else /* }{ */
#error "numeric integer type not defined"
-#endif /* } */
+#endif /* } */
/* }================================================================== */
@@ -597,9 +597,9 @@
** (All uses in Lua have only one format item.)
*/
#if !defined(LUA_USE_C89)
-#define l_sprintf(s,sz,f,i) snprintf(s,sz,f,i)
+#define l_sprintf(s,sz,f,i) snprintf(s,sz,f,i)
#else
-#define l_sprintf(s,sz,f,i) ((void)(sz), sprintf(s,f,i))
+#define l_sprintf(s,sz,f,i) ((void)(sz), sprintf(s,f,i))
#endif
@@ -610,7 +610,7 @@
** implementation.
*/
#if !defined(LUA_USE_C89)
-#define lua_strx2number(s,p) lua_str2number(s,p)
+#define lua_strx2number(s,p) lua_str2number(s,p)
#endif
@@ -618,7 +618,7 @@
@@ lua_pointer2str converts a pointer to a readable string in a
** non-specified way.
*/
-#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p)
+#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p)
/*
@@ -629,7 +629,7 @@
*/
#if !defined(LUA_USE_C89)
#define lua_number2strx(L,b,sz,f,n) \
- ((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n)))
+ ((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n)))
#endif
@@ -642,8 +642,8 @@
#if defined(LUA_USE_C89) || (defined(HUGE_VAL) && !defined(HUGE_VALF))
#undef l_mathop /* variants not available */
#undef lua_str2number
-#define l_mathop(op) (lua_Number)op /* no variant */
-#define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
+#define l_mathop(op) (lua_Number)op /* no variant */
+#define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
#endif
@@ -653,14 +653,14 @@
** available, otherwise it will use 'ptrdiff_t' (the nearest thing to
** 'intptr_t' in C89)
*/
-#define LUA_KCONTEXT ptrdiff_t
+#define LUA_KCONTEXT ptrdiff_t
#if !defined(LUA_USE_C89) && defined(__STDC_VERSION__) && \
__STDC_VERSION__ >= 199901L
#include <stdint.h>
#if defined(INTPTR_MAX) /* even in C99 this type is optional */
#undef LUA_KCONTEXT
-#define LUA_KCONTEXT intptr_t
+#define LUA_KCONTEXT intptr_t
#endif
#endif
@@ -671,7 +671,7 @@
** macro must include the header 'locale.h'.)
*/
#if !defined(lua_getlocaledecpoint)
-#define lua_getlocaledecpoint() (localeconv()->decimal_point[0])
+#define lua_getlocaledecpoint() (localeconv()->decimal_point[0])
#endif
/* }================================================================== */
@@ -699,7 +699,7 @@
*/
#if defined(LUA_USE_APICHECK)
#include <assert.h>
-#define luai_apicheck(l,e) assert(e)
+#define luai_apicheck(l,e) assert(e)
#endif
/* }================================================================== */
@@ -721,9 +721,9 @@
** (It must fit into max(size_t)/32.)
*/
#if LUAI_IS32INT
-#define LUAI_MAXSTACK 1000000
+#define LUAI_MAXSTACK 1000000
#else
-#define LUAI_MAXSTACK 15000
+#define LUAI_MAXSTACK 15000
#endif
@@ -732,7 +732,7 @@
** a Lua state with very fast access.
** CHANGE it if you need a different size.
*/
-#define LUA_EXTRASPACE (sizeof(void *))
+#define LUA_EXTRASPACE (sizeof(void *))
/*
@@ -740,7 +740,7 @@
@@ of a function in debug information.
** CHANGE it if you want a different size.
*/
-#define LUA_IDSIZE 60
+#define LUA_IDSIZE 60
/*
@@ -773,4 +773,3 @@
#endif
-