aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-21 11:27:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-21 11:27:16 -0300
commit1a3ebc203a04a4b312d1692d41eeda7035ea0eef (patch)
tree7593b5b9b4d7cfac02cbf26c68851e3b4358872e
parent2d5e2212d4cbf755d509913917f7db36e530385a (diff)
downloadlua-1a3ebc203a04a4b312d1692d41eeda7035ea0eef.tar.gz
lua-1a3ebc203a04a4b312d1692d41eeda7035ea0eef.tar.bz2
lua-1a3ebc203a04a4b312d1692d41eeda7035ea0eef.zip
definition of LUA_REAL_* and LUA_INT_* moved to the beginning of
configurations
-rw-r--r--luaconf.h42
1 files changed, 23 insertions, 19 deletions
diff --git a/luaconf.h b/luaconf.h
index 66759701..aee4b0fb 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.191 2014/03/06 16:15:18 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.192 2014/03/18 18:27:08 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*/
@@ -20,6 +20,24 @@
20 20
21 21
22/* 22/*
23** ===================================================================
24@@ LUA_INT_INT / LUA_INT_LONG / LUA_INT_LONGLONG defines size for
25@* Lua integers;
26@@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines size for
27@* Lua floats.
28**
29** These definitions set the numeric types for Lua. Lua should work
30** fine with 32-bit or 64-bit integers mixed with 32-bit or 64-bit
31** floats. The usual configurations are 64-bit integers and floats (the
32** default) and 32-bit integers and floats (Small Lua, for restricted
33** hardware).
34** =====================================================================
35*/
36#define LUA_INT_LONGLONG
37#define LUA_REAL_DOUBLE
38
39
40/*
23@@ LUA_ANSI controls the use of non-ansi features. 41@@ LUA_ANSI controls the use of non-ansi features.
24** CHANGE it (define it) if you want Lua to avoid the use of any 42** CHANGE it (define it) if you want Lua to avoid the use of any
25** non-ansi feature or library. 43** non-ansi feature or library.
@@ -378,29 +396,15 @@
378#define LUAL_BUFFERSIZE BUFSIZ 396#define LUAL_BUFFERSIZE BUFSIZ
379 397
380 398
381
382
383/* 399/*
384** {================================================================== 400** {==================================================================
385** The following definitions set the numeric types for Lua. 401** Configuration for Numbers.
386** Lua should work fine with 32-bit or 64-bit integers mixed with 402** Change these definitions if no predefined LUA_REAL_* / LUA_INT_*
387** 32-bit or 64-bit floats. The usual configurations are 64-bit 403** satisfy your needs.
388** integers and floats (the default) and 32-bit integers and floats
389** (for restricted hardware).
390** =================================================================== 404** ===================================================================
391*/ 405*/
392 406
393/* 407/*
394@@ LUA_INT_INT/LUA_INT_LONG/LUA_INT_LONGLONG defines size for Lua integers;
395@@ LUA_REAL_FLOAT/LUA_REAL_DOUBLE/LUA_REAL_LONGDOUBLE defines size for
396@* Lua floats.
397** Default is long long + double
398*/
399#define LUA_INT_LONGLONG
400#define LUA_REAL_DOUBLE
401
402
403/*
404@@ LUA_NUMBER is the floating-point type used by Lua. 408@@ LUA_NUMBER is the floating-point type used by Lua.
405** 409**
406@@ LUAI_UACNUMBER is the result of an 'usual argument conversion' 410@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
@@ -409,7 +413,7 @@
409@@ LUA_NUMBER_FRMLEN is the length modifier for writing floats. 413@@ LUA_NUMBER_FRMLEN is the length modifier for writing floats.
410@@ LUA_NUMBER_SCAN is the format for reading floats. 414@@ LUA_NUMBER_SCAN is the format for reading floats.
411@@ LUA_NUMBER_FMT is the format for writing floats. 415@@ LUA_NUMBER_FMT is the format for writing floats.
412@@ lua_number2str converts a floats to a string. 416@@ lua_number2str converts a float to a string.
413** 417**
414@@ l_mathop allows the addition of an 'l' or 'f' to all math operations 418@@ l_mathop allows the addition of an 'l' or 'f' to all math operations
415** 419**