summaryrefslogtreecommitdiff
path: root/script/LuaJIT/c-parser/ctypes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/LuaJIT/c-parser/ctypes.lua')
-rw-r--r--script/LuaJIT/c-parser/ctypes.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/script/LuaJIT/c-parser/ctypes.lua b/script/LuaJIT/c-parser/ctypes.lua
index 07954311..babb2cbb 100644
--- a/script/LuaJIT/c-parser/ctypes.lua
+++ b/script/LuaJIT/c-parser/ctypes.lua
@@ -292,17 +292,43 @@ end
local base_types = {
["char"] = true,
["const"] = true,
+ ["bool"] = true,
["double"] = true,
["float"] = true,
["int"] = true,
["long"] = true,
["short"] = true,
["signed"] = true,
+ ["__signed"] = true,
+ ["__signed__"] = true,
["unsigned"] = true,
["void"] = true,
["volatile"] = true,
+ ["ptrdiff_t"] = true,
+ ["size_t"] = true,
+ ["ssize_t"] = true,
+ ["wchar_t"] = true,
+ ["int8_t"] = true,
+ ["int16_t"] = true,
+ ["int32_t"] = true,
+ ["int64_t"] = true,
+ ["uint8_t"] = true,
+ ["uint16_t"] = true,
+ ["uint32_t"] = true,
+ ["uint64_t"] = true,
+ ["intptr_t"] = true,
+ ["uintptr_t"] = true,
+ ["__int8"] = true,
+ ["__int16"] = true,
+ ["__int32"] = true,
+ ["__int64"] = true,
["_Bool"] = true,
+ ["__ptr32"] = true,
+ ["__ptr64"] = true,
["_Complex"] = true,
+ ["complex"] = true,
+ ["__complex"] = true,
+ ["__complex__"] = true,
["*"] = true,
}