From 5d52185b584317227b3b58ce3fcb53fd47d180ff Mon Sep 17 00:00:00 2001 From: fubark Date: Mon, 26 Aug 2024 00:16:37 -0400 Subject: [PATCH] Fix bindings. --- src/tools/cbindgen.cy | 3 ++- src/tools/llvm.cy | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/tools/cbindgen.cy b/src/tools/cbindgen.cy index 93f9799de..fe5879b04 100755 --- a/src/tools/cbindgen.cy +++ b/src/tools/cbindgen.cy @@ -468,7 +468,8 @@ let macrosRootVisitor(cursor, parent, state): var eval = clang.lib.clang_Cursor_Evaluate(cursor) var kind = clang.lib.clang_EvalResult_getKind(eval) - var finalName = getApiName(name[4..].trim(.left, '_')) + -- var finalName = getApiName(name[4..].trim(.left, '_')) + var finalName = getApiName(name[4..]) switch kind case clang.CXEval_UnExposed: -- Can't eval to primitive. Check for struct intializer. diff --git a/src/tools/llvm.cy b/src/tools/llvm.cy index eb6e9fa89..3de178358 100644 --- a/src/tools/llvm.cy +++ b/src/tools/llvm.cy @@ -2762,22 +2762,22 @@ func load() dyn: return lib -- Macros -var .GCC_HAVE_DWARF2_CFI_ASM int = 1 +var ._GCC_HAVE_DWARF2_CFI_ASM int = 1 var .INT64_MAX int = 9223372036854775807 var .INT64_MIN int = -9223372036854775808 var .UINT64_MAX int = -1 -var .INT_LEAST64_MIN int = -9223372036854775808 -var .INT_LEAST64_MAX int = 9223372036854775807 -var .UINT_LEAST64_MAX int = -1 -var .INT_LEAST32_MIN int = -2147483648 -var .INT_LEAST32_MAX int = 2147483647 -var .UINT_LEAST32_MAX int = 4294967295 -var .INT_LEAST16_MIN int = -32768 -var .INT_LEAST16_MAX int = 32767 -var .UINT_LEAST16_MAX int = 65535 -var .INT_LEAST8_MIN int = -128 -var .INT_LEAST8_MAX int = 127 -var .UINT_LEAST8_MAX int = 255 +var ._INT_LEAST64_MIN int = -9223372036854775808 +var ._INT_LEAST64_MAX int = 9223372036854775807 +var ._UINT_LEAST64_MAX int = -1 +var ._INT_LEAST32_MIN int = -2147483648 +var ._INT_LEAST32_MAX int = 2147483647 +var ._UINT_LEAST32_MAX int = 4294967295 +var ._INT_LEAST16_MIN int = -32768 +var ._INT_LEAST16_MAX int = 32767 +var ._UINT_LEAST16_MAX int = 65535 +var ._INT_LEAST8_MIN int = -128 +var ._INT_LEAST8_MAX int = 127 +var ._UINT_LEAST8_MAX int = 255 var .INT_LEAST64_MIN int = -9223372036854775808 var .INT_LEAST64_MAX int = 9223372036854775807 var .UINT_LEAST64_MAX int = -1