summaryrefslogtreecommitdiff
path: root/etc/def.lua
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2000-11-06 12:00:00 +0000
committerrepogen <>2000-11-06 12:00:00 +0000
commit8cb71cb5548e3138e5d4e4744f52c79d9fafb116 (patch)
tree25859eb162c67eafc46866e0ec3a9a7ebf93157a /etc/def.lua
parentb7610da5fed99f59ac73ae452da8839a0f2c1bda (diff)
downloadlua-github-4.0.tar.gz
Lua 4.04.0
Diffstat (limited to 'etc/def.lua')
-rw-r--r--etc/def.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/def.lua b/etc/def.lua
new file mode 100644
index 00000000..736e32cd
--- /dev/null
+++ b/etc/def.lua
@@ -0,0 +1,9 @@
+-- def.lua
+-- make .DEF file from lua.h
+-- usage: lua def.lua <lua.h >lua.def
+
+T=read"*a"
+write("LIBRARY LUA\nVERSION ")
+gsub(T,"LUA_VERSION.-(%d+%.%d+)",write)
+write("\nEXPORTS\n")
+gsub(T,"(lua_%w+)%s+%(",function (f) write(" ",f,"\n") end)