aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-15 12:24:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-15 12:24:32 -0300
commit15e8405731c18f96e926e66dbd692fcefbb724ab (patch)
tree7f811d727ce36f74747c2bc40b873f5640de69ea
parentfd1672ba989d14273e9ba429518913d4a926ef6d (diff)
downloadlua-15e8405731c18f96e926e66dbd692fcefbb724ab.tar.gz
lua-15e8405731c18f96e926e66dbd692fcefbb724ab.tar.bz2
lua-15e8405731c18f96e926e66dbd692fcefbb724ab.zip
'LUA_COMPAT_ALL' -> 'LUA_COMPAT_5_1'/'LUA_COMPAT_5_2' + "@*" in
comments replaced by "@@". ("@*" is too distracting)
-rw-r--r--luaconf.h57
1 files changed, 39 insertions, 18 deletions
diff --git a/luaconf.h b/luaconf.h
index 86c55c1a..dd5e7280 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.200 2014/04/17 14:41:11 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.201 2014/05/11 13:03:48 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -22,9 +22,9 @@
22/* 22/*
23** =================================================================== 23** ===================================================================
24@@ LUA_INT_INT / LUA_INT_LONG / LUA_INT_LONGLONG defines type for 24@@ LUA_INT_INT / LUA_INT_LONG / LUA_INT_LONGLONG defines type for
25@* Lua integers; 25@@ Lua integers;
26@@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines 26@@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines
27@* type for Lua floats. 27@@ type for Lua floats.
28** 28**
29** These definitions set the numeric types for Lua. Lua should work 29** These definitions set the numeric types for Lua. Lua should work
30** fine with any mix of these previous options. 30** fine with any mix of these previous options.
@@ -73,7 +73,7 @@
73 73
74 74
75/* 75/*
76@@ LUA_USE_C99 includes all functionality from C 99. 76@@ LUA_USE_C99 includes all functionality that depends on C 99.
77** CHANGE it (define it) if your system is compatible. 77** CHANGE it (define it) if your system is compatible.
78*/ 78*/
79#if defined(LUA_USE_C99) 79#if defined(LUA_USE_C99)
@@ -83,7 +83,7 @@
83 83
84/* 84/*
85@@ LUA_USE_POSIX includes all functionality listed as X/Open System 85@@ LUA_USE_POSIX includes all functionality listed as X/Open System
86@* Interfaces Extension (XSI). 86@@ Interfaces Extension (XSI).
87** CHANGE it (define it) if your system is XSI compatible. 87** CHANGE it (define it) if your system is XSI compatible.
88*/ 88*/
89#if defined(LUA_USE_POSIX) 89#if defined(LUA_USE_POSIX)
@@ -93,9 +93,9 @@
93 93
94/* 94/*
95@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for 95@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
96@* Lua libraries. 96@@ Lua libraries.
97@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for 97@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
98@* C libraries. 98@@ C libraries.
99** CHANGE them if your machine has a non-conventional directory 99** CHANGE them if your machine has a non-conventional directory
100** hierarchy or if you want to install your libraries in 100** hierarchy or if you want to install your libraries in
101** non-conventional directories. 101** non-conventional directories.
@@ -180,10 +180,10 @@
180 180
181/* 181/*
182@@ LUAI_FUNC is a mark for all extern functions that are not to be 182@@ LUAI_FUNC is a mark for all extern functions that are not to be
183@* exported to outside modules. 183@@ exported to outside modules.
184@@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables 184@@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables
185@* that are not to be exported to outside modules (LUAI_DDEF for 185@@ that are not to be exported to outside modules (LUAI_DDEF for
186@* definitions and LUAI_DDEC for declarations). 186@@ definitions and LUAI_DDEC for declarations).
187** CHANGE them if you need to mark them in some special way. Elf/gcc 187** CHANGE them if you need to mark them in some special way. Elf/gcc
188** (versions 3.2 and later) mark them as "hidden" to optimize access 188** (versions 3.2 and later) mark them as "hidden" to optimize access
189** when Lua is compiled as a shared library. Not all elf targets support 189** when Lua is compiled as a shared library. Not all elf targets support
@@ -216,7 +216,7 @@
216 216
217/* 217/*
218@@ LUA_IDSIZE gives the maximum size for the description of the source 218@@ LUA_IDSIZE gives the maximum size for the description of the source
219@* of a function in debug information. 219@@ of a function in debug information.
220** CHANGE it if you want a different size. 220** CHANGE it if you want a different size.
221*/ 221*/
222#define LUA_IDSIZE 60 222#define LUA_IDSIZE 60
@@ -258,17 +258,38 @@
258*/ 258*/
259 259
260/* 260/*
261@@ LUA_COMPAT_ALL controls all compatibility options. 261@@ LUA_COMPAT_5_2 controls other macros for compatibility with Lua 5.2.
262@@ LUA_COMPAT_5_1 controls other macros for compatibility with Lua 5.1.
262** You can define it to get all options, or change specific options 263** You can define it to get all options, or change specific options
263** to fit your specific needs. 264** to fit your specific needs.
264*/ 265*/
265#if defined(LUA_COMPAT_ALL) /* { */ 266#if defined(LUA_COMPAT_5_2) /* { */
267
268/*
269@@ LUA_COMPAT_MATHLIB controls the presence of several deprecated
270** functions in the mathematical library.
271*/
272#define LUA_COMPAT_MATHLIB
266 273
267/* 274/*
268@@ LUA_COMPAT_BITLIB controls the presence of library 'bit32'. 275@@ LUA_COMPAT_BITLIB controls the presence of library 'bit32'.
269*/ 276*/
270#define LUA_COMPAT_BITLIB 277#define LUA_COMPAT_BITLIB
271 278
279
280/*
281@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
282@@ a float mark ('.0').
283** This macro is not on by default even in compatibility mode,
284** because this is not really an incompatibility.
285*/
286/* #define LUA_COMPAT_FLOATSTRING */
287
288#endif /* } */
289
290
291#if defined(LUA_COMPAT_5_1) /* { */
292
272/* 293/*
273@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'. 294@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'.
274** You can replace it with 'table.unpack'. 295** You can replace it with 'table.unpack'.
@@ -351,9 +372,9 @@
351/* 372/*
352@@ LUA_INT32 is an signed integer with exactly 32 bits. 373@@ LUA_INT32 is an signed integer with exactly 32 bits.
353@@ LUAI_UMEM is an unsigned integer big enough to count the total 374@@ LUAI_UMEM is an unsigned integer big enough to count the total
354@* memory used by Lua. 375@@ memory used by Lua.
355@@ LUAI_MEM is a signed integer big enough to count the total memory 376@@ LUAI_MEM is a signed integer big enough to count the total memory
356@* used by Lua. 377@@ used by Lua.
357** CHANGE here if for some weird reason the default definitions are not 378** CHANGE here if for some weird reason the default definitions are not
358** good enough for your machine. Probably you do not need to change 379** good enough for your machine. Probably you do not need to change
359** this. 380** this.
@@ -407,7 +428,7 @@
407@@ LUA_NUMBER is the floating-point type used by Lua. 428@@ LUA_NUMBER is the floating-point type used by Lua.
408** 429**
409@@ LUAI_UACNUMBER is the result of an 'usual argument conversion' 430@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
410@* over a floating number. 431@@ over a floating number.
411** 432**
412@@ LUA_NUMBER_FRMLEN is the length modifier for writing floats. 433@@ LUA_NUMBER_FRMLEN is the length modifier for writing floats.
413@@ LUA_NUMBER_SCAN is the format for reading floats. 434@@ LUA_NUMBER_SCAN is the format for reading floats.
@@ -490,7 +511,7 @@
490 511
491/* 512/*
492@@ The luai_num* macros define the primitive operations over numbers. 513@@ The luai_num* macros define the primitive operations over numbers.
493@* They should work for any size of floating numbers. 514** They should work for any size of floating numbers.
494*/ 515*/
495 516
496/* the following operations need the math library */ 517/* the following operations need the math library */
@@ -529,7 +550,7 @@
529@@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER. 550@@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER.
530** 551**
531@@ LUAI_UACINT is the result of an 'usual argument conversion' 552@@ LUAI_UACINT is the result of an 'usual argument conversion'
532@* over a lUA_INTEGER. 553@@ over a lUA_INTEGER.
533@@ LUA_INTEGER_FRMLEN is the length modifier for reading/writing integers. 554@@ LUA_INTEGER_FRMLEN is the length modifier for reading/writing integers.
534@@ LUA_INTEGER_SCAN is the format for reading integers. 555@@ LUA_INTEGER_SCAN is the format for reading integers.
535@@ LUA_INTEGER_FMT is the format for writing integers. 556@@ LUA_INTEGER_FMT is the format for writing integers.