summaryrefslogtreecommitdiff
path: root/libs/@luaJIT
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-22 23:26:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-22 23:26:32 +0800
commitd0ff66c9abe9d6abbca12fd811e0c3cb69c1033a (patch)
treebb34518d70b85de7656dbdbe958dfa221a3ff3b3 /libs/@luaJIT
parent0a2c2ad15e1ec359171fb0dd4c72e57c5b66e9ba (diff)
downloadlua-language-server-d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a.zip
整理一下目录结构
Diffstat (limited to 'libs/@luaJIT')
-rw-r--r--libs/@luaJIT/bit.lni145
-rw-r--r--libs/@luaJIT/ffi.lni194
-rw-r--r--libs/@luaJIT/jit.lni73
3 files changed, 412 insertions, 0 deletions
diff --git a/libs/@luaJIT/bit.lni b/libs/@luaJIT/bit.lni
new file mode 100644
index 00000000..742d2bc5
--- /dev/null
+++ b/libs/@luaJIT/bit.lni
@@ -0,0 +1,145 @@
+<default>
+version = LuaJIT
+
+[bit]
+type = table
+[[.source]]
+type = library
+name = bit
+``````````
+type = global
+name = bit
+
+<default>
+type = function
+parent = {
+ 1 = {
+ type = 'library',
+ name = 'bit',
+ },
+ 2 = {
+ type = 'global',
+ name = 'bit',
+ },
+}
+
+[tobit]
+[[.args]]
+name = x
+type = number
+[[.returns]]
+type = number
+
+[tohex]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+optional = after
+[[.returns]]
+type = number
+
+[bnot]
+[[.args]]
+name = x
+type = number
+[[.returns]]
+type = number
+
+[bor]
+[[.args]]
+name = x1
+type = number
+``````````
+name = x2
+type = number
+optional = after
+`````````
+type = '...'
+[[.returns]]
+type = number
+
+[band]
+[[.args]]
+name = x1
+type = number
+``````````
+name = x2
+type = number
+optional = after
+`````````
+type = '...'
+[[.returns]]
+type = number
+
+[bxor]
+[[.args]]
+name = x1
+type = number
+``````````
+name = x2
+type = number
+optional = after
+`````````
+type = '...'
+[[.returns]]
+type = number
+
+[lshift]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+[[.returns]]
+type = number
+
+[rshift]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+[[.returns]]
+type = number
+
+[arshift]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+[[.returns]]
+type = number
+
+[rol]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+[[.returns]]
+type = number
+
+[ror]
+[[.args]]
+name = x
+type = number
+``````````
+name = n
+type = number
+[[.returns]]
+type = number
+
+[bswap]
+[[.args]]
+name = x
+type = number
+[[.returns]]
+type = number
diff --git a/libs/@luaJIT/ffi.lni b/libs/@luaJIT/ffi.lni
new file mode 100644
index 00000000..567999f3
--- /dev/null
+++ b/libs/@luaJIT/ffi.lni
@@ -0,0 +1,194 @@
+<default>
+version = LuaJIT
+
+[ffi]
+type = table
+[[.source]]
+type = library
+name = ffi
+
+<default>
+type = function
+parent = {
+ 1 = {
+ type = 'library',
+ name = 'ffi',
+ },
+}
+
+[cdef]
+[[.args]]
+name = def
+type = string
+
+[C]
+type = namespace
+
+[load]
+[[.args]]
+name = name
+type = string
+``````````
+name = global
+type = boolean
+optional = after
+[[.returns]]
+name = clib
+type = namespace
+
+[new]
+[[.args]]
+name = ct
+type = string
+``````````
+name = nelem
+type = number
+optional = self
+``````````
+name = init
+optional = after
+``````````
+type = '...'
+[[.returns]]
+type = cdata
+
+[typeof]
+[[.args]]
+name = ct
+type = string
+[[.returns]]
+type = ctype
+
+[cast]
+[[.args]]
+name = ct
+type = string
+``````````
+name = init
+[[.returns]]
+type = cdata
+
+[metatype]
+[[.args]]
+name = ct
+type = string
+``````````
+name = metatable
+type = table
+[[.returns]]
+type = ctype
+
+[gc]
+[[.args]]
+type = cdata
+``````````
+name = finalizer
+type = function
+[[.returns]]
+type = cdata
+
+[sizeof]
+[[.args]]
+name = ct
+type = string
+``````````
+name = nelem
+type = number
+optional = after
+[[.returns]]
+name = size
+type = number
+
+[alignof]
+[[.args]]
+name = ct
+type = string
+[[.returns]]
+name = align
+type = number
+
+[offsetof]
+[[.args]]
+name = ct
+type = string
+``````````
+name = field
+type = string
+[[.returns]]
+name = ofs
+type = number
+``````````
+name = bpos
+type = number
+optional = after
+``````````
+name = bsize
+type = number
+
+[istype]
+[[.args]]
+name = ct
+type = string
+``````````
+name = obj
+[[.returns]]
+name = status
+type = boolean
+
+[errno]
+[[.args]]
+name = newerr
+type = number
+optional = after
+[[.returns]]
+name = err
+type = number
+
+[string]
+[[.args]]
+name = ptr
+type = number
+``````````
+name = len
+type = number
+optional = after
+[[.returns]]
+name = str
+type = string
+
+[copy]
+[[.args]]
+name = dst
+type = number
+``````````
+name = src
+type = number/string
+``````````
+name = len
+type = number
+
+[fill]
+[[.args]]
+name = dst
+type = number
+``````````
+name = len
+type = number
+``````````
+name = c
+type = string
+optional = after
+
+[abi]
+[[.args]]
+name = param
+type = string
+[[.returns]]
+name = status
+type = boolean
+
+[os]
+type = 'string'
+
+[arch]
+type = 'string'
diff --git a/libs/@luaJIT/jit.lni b/libs/@luaJIT/jit.lni
new file mode 100644
index 00000000..d7c91d11
--- /dev/null
+++ b/libs/@luaJIT/jit.lni
@@ -0,0 +1,73 @@
+<default>
+version = LuaJIT
+
+[jit]
+type = table
+[[.source]]
+type = library
+name = jit
+``````````
+type = global
+name = jit
+
+<default>
+type = function
+parent = {
+ 1 = {
+ type = 'library',
+ name = 'jit',
+ },
+ 2 = {
+ type = 'global',
+ name = 'jit',
+ },
+}
+
+[on]
+[[.args]]
+type = {'function', 'boolean'}
+optional = after
+``````````
+type = boolean
+optional = after
+
+[off]
+[[.args]]
+type = {'function', 'boolean'}
+optional = after
+``````````
+type = boolean
+optional = after
+
+[flush]
+[[.args]]
+type = {'function', 'boolean'}
+optional = after
+``````````
+type = boolean
+optional = after
+
+[status]
+[[.returns]]
+name = status
+type = boolean
+``````````
+type = '...'
+
+[version]
+type = string
+
+[version_num]
+type = string
+
+[os]
+type = string
+
+[arch]
+type = string
+
+[opt]
+type = table
+
+[util]
+type = table