aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/LuaJIT-1.1.7/etc
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/LuaJIT-1.1.7/etc')
-rw-r--r--libraries/LuaJIT-1.1.7/etc/README20
-rw-r--r--libraries/LuaJIT-1.1.7/etc/lua.hpp9
-rw-r--r--libraries/LuaJIT-1.1.7/etc/luajit.icobin1078 -> 0 bytes
-rw-r--r--libraries/LuaJIT-1.1.7/etc/luajit.pc28
-rwxr-xr-xlibraries/LuaJIT-1.1.7/etc/luavs.bat22
-rw-r--r--libraries/LuaJIT-1.1.7/etc/strict.lua41
6 files changed, 0 insertions, 120 deletions
diff --git a/libraries/LuaJIT-1.1.7/etc/README b/libraries/LuaJIT-1.1.7/etc/README
deleted file mode 100644
index 98117d0..0000000
--- a/libraries/LuaJIT-1.1.7/etc/README
+++ /dev/null
@@ -1,20 +0,0 @@
1This directory contains some useful files and code.
2Unlike the code in ../src, everything here is in the public domain.
3
4lua.hpp
5 Lua header files for C++ using 'extern "C"'.
6
7luajit.ico
8 A LuaJIT icon for Windows (and web sites: save as favicon.ico).
9 Lua icon drawn by hand by Markus Gritsch. Modified for LuaJIT.
10
11luajit.pc
12 pkg-config data for LuaJIT
13
14luavs.bat
15 Script to build LuaJIT under "Visual Studio .NET Command Prompt".
16 Run it from the toplevel as etc\luavs.bat.
17
18strict.lua
19 Traps uses of undeclared global variables.
20
diff --git a/libraries/LuaJIT-1.1.7/etc/lua.hpp b/libraries/LuaJIT-1.1.7/etc/lua.hpp
deleted file mode 100644
index ec417f5..0000000
--- a/libraries/LuaJIT-1.1.7/etc/lua.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
1// lua.hpp
2// Lua header files for C++
3// <<extern "C">> not supplied automatically because Lua also compiles as C++
4
5extern "C" {
6#include "lua.h"
7#include "lualib.h"
8#include "lauxlib.h"
9}
diff --git a/libraries/LuaJIT-1.1.7/etc/luajit.ico b/libraries/LuaJIT-1.1.7/etc/luajit.ico
deleted file mode 100644
index bdd7a90..0000000
--- a/libraries/LuaJIT-1.1.7/etc/luajit.ico
+++ /dev/null
Binary files differ
diff --git a/libraries/LuaJIT-1.1.7/etc/luajit.pc b/libraries/LuaJIT-1.1.7/etc/luajit.pc
deleted file mode 100644
index 1444076..0000000
--- a/libraries/LuaJIT-1.1.7/etc/luajit.pc
+++ /dev/null
@@ -1,28 +0,0 @@
1# luajit.pc -- pkg-config data for LuaJIT
2
3# vars from install Makefile
4
5# grep '^J*V=' ../Makefile
6V= 5.1
7JV= 1.1.7
8
9# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
10prefix= /usr/local
11INSTALL_BIN= ${prefix}/bin
12INSTALL_INC= ${prefix}/include
13INSTALL_LIB= ${prefix}/lib
14INSTALL_MAN= ${prefix}/man/man1
15INSTALL_LMOD= ${prefix}/share/lua/${V}
16INSTALL_CMOD= ${prefix}/lib/lua/${V}
17
18exec_prefix=${prefix}
19libdir=${exec_prefix}/lib
20includedir=${prefix}/include
21
22Name: LuaJIT
23Description: An Extensible Extension Language (JIT compiled for speed)
24Version: ${JV}
25Requires:
26Libs: -L${libdir} -llua -lm
27Cflags: -I${includedir}
28
diff --git a/libraries/LuaJIT-1.1.7/etc/luavs.bat b/libraries/LuaJIT-1.1.7/etc/luavs.bat
deleted file mode 100755
index 4f311e2..0000000
--- a/libraries/LuaJIT-1.1.7/etc/luavs.bat
+++ /dev/null
@@ -1,22 +0,0 @@
1@rem Script to build LuaJIT under "Visual Studio .NET Command Prompt".
2@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
3@rem It creates lua51.dll, lua51.lib and luajit.exe in src.
4@rem (contributed by David Manura and Mike Pall)
5
6@setlocal
7@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /I . /I ..\dynasm
8@set MYLINK=link /nologo
9@set MYMT=mt /nologo
10
11cd src
12%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
13del lua.obj luac.obj
14%MYLINK% /DLL /out:lua51.dll l*.obj
15if exist lua51.dll.manifest^
16 %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2
17%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
18%MYLINK% /out:luajit.exe lua.obj lua51.lib
19if exist luajit.exe.manifest^
20 %MYMT% -manifest luajit.exe.manifest -outputresource:luajit.exe
21del *.obj *.manifest
22cd ..
diff --git a/libraries/LuaJIT-1.1.7/etc/strict.lua b/libraries/LuaJIT-1.1.7/etc/strict.lua
deleted file mode 100644
index 604619d..0000000
--- a/libraries/LuaJIT-1.1.7/etc/strict.lua
+++ /dev/null
@@ -1,41 +0,0 @@
1--
2-- strict.lua
3-- checks uses of undeclared global variables
4-- All global variables must be 'declared' through a regular assignment
5-- (even assigning nil will do) in a main chunk before being used
6-- anywhere or assigned to inside a function.
7--
8
9local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget
10
11local mt = getmetatable(_G)
12if mt == nil then
13 mt = {}
14 setmetatable(_G, mt)
15end
16
17mt.__declared = {}
18
19local function what ()
20 local d = getinfo(3, "S")
21 return d and d.what or "C"
22end
23
24mt.__newindex = function (t, n, v)
25 if not mt.__declared[n] then
26 local w = what()
27 if w ~= "main" and w ~= "C" then
28 error("assign to undeclared variable '"..n.."'", 2)
29 end
30 mt.__declared[n] = true
31 end
32 rawset(t, n, v)
33end
34
35mt.__index = function (t, n)
36 if not mt.__declared[n] and what() ~= "C" then
37 error("variable '"..n.."' is not declared", 2)
38 end
39 return rawget(t, n)
40end
41