File: README_SPRING

package info (click to toggle)
spring 98.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 41,928 kB
  • ctags: 60,665
  • sloc: cpp: 356,167; ansic: 39,434; python: 12,228; java: 12,203; awk: 5,856; sh: 1,719; xml: 997; perl: 405; php: 253; objc: 194; makefile: 72; sed: 2
file content (62 lines) | stat: -rw-r--r-- 1,709 bytes parent folder | download | duplicates (7)
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
Lua-5.1.4 source code modifications:

  1. Applied the patch-lua-5.1.4-2.diff patch

  2. Moved the following headers from src/ into include/:
     - lua.h
     - lualib.h
     - lauxlib.h
     - luaconf.h

  3. Added the include/LuaInclude.h header

  4. Made the following adjustments in luaconf.h:

     //SPRING#define LUA_NUMBER_DOUBLE
     #undef LUA_NUMBER_DOUBLE

     //SPRING#define LUA_NUMBER  double
     #define LUA_NUMBER  float                                               

     //SPRING#define LUA_NUMBER_SCAN "%lf"
     #define LUA_NUMBER_SCAN "%f"

  5. Moved the *.c files to *.cpp for C++ compilation

  6. Swapped <math.h> includes with "streflop_cond.h" includes  (for sync) 

  6. removed the following files:
     Makefile
     doc/*
     etc/*
     test/*
     src/lua.c
     src/luac.c

  7. Changed the return type of lua_toboolean from int to bool to prevent
     compiler performance warnings on Visual Studio 2005.

  8. Modified lbaselib.cpp:luaB_tostring() and lvm.cpp:luaV_tostring()
     so that the tostring() lua function would be sync safe.

  9. Undefined (in include/luaconf.h):
       LUA_COMPAT_VARARG
       LUA_COMPAT_MOD
       LUA_COMPAT_LSTR
       LUA_COMPAT_GFIND
       LUA_COMPAT_OPENLIB

  10. Added the following to lua.h  (and associated code)
        lua_set_fopen()
        lua_set_popen()
        lua_set_system()
        lua_set_remove()
        lua_set_rename()
        lua_calchash()
        lua_pushhstring()

  11.
      modify lauxlib.cpp::luaL_checknumber and LuaInclude.h::lua_tofloat to
      trigger asserts if a Lua script pushes a NaN or Inf onto the stack and
      the engine reads it (asserts are disabled for Lua-internal math calls)