README
1README for Lua 5.1
2
3See INSTALL for installation instructions.
4See HISTORY for a summary of changes since the last released version.
5
6* What is Lua?
7 ------------
8 Lua is a powerful, light-weight programming language designed for extending
9 applications. Lua is also frequently used as a general-purpose, stand-alone
10 language. Lua is free software.
11
12 For complete information, visit Lua's web site at http://www.lua.org/ .
13 For an executive summary, see http://www.lua.org/about.html .
14
15 Lua has been used in many different projects around the world.
16 For a short list, see http://www.lua.org/uses.html .
17
18* Availability
19 ------------
20 Lua is freely available for both academic and commercial purposes.
21 See COPYRIGHT and http://www.lua.org/license.html for details.
22 Lua can be downloaded at http://www.lua.org/download.html .
23
24* Installation
25 ------------
26 Lua is implemented in pure ANSI C, and compiles unmodified in all known
27 platforms that have an ANSI C compiler. In most Unix-like platforms, simply
28 do "make" with a suitable target. See INSTALL for detailed instructions.
29
30* Origin
31 ------
32 Lua is developed at Lua.org, a laboratory of the Department of Computer
33 Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro
34 in Brazil).
35 For more information about the authors, see http://www.lua.org/authors.html .
36
37(end of README)
38
README_SPRING
1Lua-5.1.4 source code modifications:
2
3 1. Applied the patch-lua-5.1.4-2.diff patch
4
5 2. Moved the following headers from src/ into include/:
6 - lua.h
7 - lualib.h
8 - lauxlib.h
9 - luaconf.h
10
11 3. Added the include/LuaInclude.h header
12
13 4. Made the following adjustments in luaconf.h:
14
15 //SPRING#define LUA_NUMBER_DOUBLE
16 #undef LUA_NUMBER_DOUBLE
17
18 //SPRING#define LUA_NUMBER double
19 #define LUA_NUMBER float
20
21 //SPRING#define LUA_NUMBER_SCAN "%lf"
22 #define LUA_NUMBER_SCAN "%f"
23
24 5. Moved the *.c files to *.cpp for C++ compilation
25
26 6. Swapped <math.h> includes with "streflop_cond.h" includes (for sync)
27
28 6. removed the following files:
29 Makefile
30 doc/*
31 etc/*
32 test/*
33 src/lua.c
34 src/luac.c
35
36 7. Changed the return type of lua_toboolean from int to bool to prevent
37 compiler performance warnings on Visual Studio 2005.
38
39 8. Modified lbaselib.cpp:luaB_tostring() and lvm.cpp:luaV_tostring()
40 so that the tostring() lua function would be sync safe.
41
42 9. Undefined (in include/luaconf.h):
43 LUA_COMPAT_VARARG
44 LUA_COMPAT_MOD
45 LUA_COMPAT_LSTR
46 LUA_COMPAT_GFIND
47 LUA_COMPAT_OPENLIB
48
49 10. Added the following to lua.h (and associated code)
50 lua_set_fopen()
51 lua_set_popen()
52 lua_set_system()
53 lua_set_remove()
54 lua_set_rename()
55 lua_calchash()
56 lua_pushhstring()
57
58 11.
59 modify lauxlib.cpp::luaL_checknumber and LuaInclude.h::lua_tofloat to
60 trigger asserts if a Lua script pushes a NaN or Inf onto the stack and
61 the engine reads it (asserts are disabled for Lua-internal math calls)
62
63