Skip to content

Commit

Permalink
Fix windows related files
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorious3 committed Mar 2, 2024
1 parent b98d1a1 commit aa9ae83
Show file tree
Hide file tree
Showing 11 changed files with 4,375 additions and 4,355 deletions.
5 changes: 4 additions & 1 deletion include/gencstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import re
import clang.cindex as clang


clang.Config.set_library_path(r"C:\Users\Vic\scoop\apps\llvm\current\bin")

class File:
def __init__(self, fp) -> None:
self.GLOBALS = {}
Expand Down Expand Up @@ -384,7 +387,7 @@ def get_symbols(lib: str):
if sys.platform == "win32":
vswhere = os.environ["ProgramFiles(x86)"] + r"\Microsoft Visual Studio\Installer\vswhere.exe"
dumpbin = subprocess.check_output([vswhere, "-latest", "-find", r"VC\Tools\**\x64\dumpbin.exe"]).splitlines()[0]
winsdk_bat = subprocess.check_output([vswhere, "-latest", "-find", "**\winsdk.bat"]).splitlines()[0]
winsdk_bat = subprocess.check_output([vswhere, "-latest", "-find", r"**\winsdk.bat"]).splitlines()[0]
os.environ["VSCMD_ARG_HOST_ARCH"] = "x64"
os.environ["VSCMD_ARG_TGT_ARCH"] = "x64"
env = dict([tuple(var.decode().split("=")) for var in subprocess.check_output([winsdk_bat, ">", "nul", "&&", "set"], shell = True).splitlines()])
Expand Down
43 changes: 22 additions & 21 deletions include/windows/bfd.pr

Large diffs are not rendered by default.

890 changes: 445 additions & 445 deletions include/windows/bfd_sym.pr

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions include/windows/clang.pr
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const __llvm__: int = 1
export const __clang__: int = 1
export const __clang_major__: int = 16
export const __clang_major__: int = 17
export const __clang_minor__: int = 0
export const __clang_patchlevel__: int = 6
export const __clang_version__: [char] = "16.0.6 (https://github.com/llvm/llvm-project.git 7cbf1a2591520c2491aa35339f227775f4d3adf6)"
export const __clang_version__: [char] = "17.0.6 "
export const __ATOMIC_RELAXED: int = 0
export const __ATOMIC_CONSUME: int = 1
export const __ATOMIC_ACQUIRE: int = 2
Expand All @@ -16,7 +16,7 @@ export const __OPENCL_MEMORY_SCOPE_DEVICE: int = 2
export const __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: int = 3
export const __OPENCL_MEMORY_SCOPE_SUB_GROUP: int = 4
export const __PRAGMA_REDEFINE_EXTNAME: int = 1
export const __VERSION__: [char] = "Clang 16.0.6 (https://github.com/llvm/llvm-project.git 7cbf1a2591520c2491aa35339f227775f4d3adf6)"
export const __VERSION__: [char] = "Clang 17.0.6"
export const __OBJC_BOOL_IS_BOOL: int = 0
export const __CONSTANT_CFSTRINGS__: int = 1
export const __clang_literal_encoding__: [char] = "UTF-8"
Expand Down Expand Up @@ -254,8 +254,8 @@ export const _WIN32: int = 1
export const _WIN64: int = 1
export const _M_FP_CONTRACT: int = 1
export const _M_FP_PRECISE: int = 1
export const _MSC_VER: int = 1936
export const _MSC_FULL_VER: int = 193632537
export const _MSC_VER: int = 1938
export const _MSC_FULL_VER: int = 193833135
export const _MSC_BUILD: int = 1
export const _MSC_EXTENSIONS: int = 1
export const _ISO_VOLATILE: int = 1
Expand All @@ -267,3 +267,4 @@ export const _M_AMD64: int = 100
export const __STDC_HOSTED__: int = 1
export const __STDC_UTF_16__: int = 1
export const __STDC_UTF_32__: int = 1
export const MUSL: int = 1
55 changes: 27 additions & 28 deletions include/windows/cstd.pr
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export type s__finddata64i32_t = struct { attrib: uint; time_create: int64; time
export type s___finddata64_t = struct { attrib: uint; time_create: int64; time_access: int64; time_write: int64; size: int64; name: [260; char]; }
export const __llvm__: int = 1
export const __clang__: int = 1
export const __clang_major__: int = 16
export const __clang_major__: int = 17
export const __clang_minor__: int = 0
export const __clang_patchlevel__: int = 6
export const __clang_version__: [char] = "16.0.6 (https://github.com/llvm/llvm-project.git 7cbf1a2591520c2491aa35339f227775f4d3adf6)"
export const __clang_version__: [char] = "17.0.6 "
export const __ATOMIC_RELAXED: int = 0
export const __ATOMIC_CONSUME: int = 1
export const __ATOMIC_ACQUIRE: int = 2
Expand All @@ -51,7 +51,7 @@ export const __OPENCL_MEMORY_SCOPE_DEVICE: int = 2
export const __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: int = 3
export const __OPENCL_MEMORY_SCOPE_SUB_GROUP: int = 4
export const __PRAGMA_REDEFINE_EXTNAME: int = 1
export const __VERSION__: [char] = "Clang 16.0.6 (https://github.com/llvm/llvm-project.git 7cbf1a2591520c2491aa35339f227775f4d3adf6)"
export const __VERSION__: [char] = "Clang 17.0.6"
export const __OBJC_BOOL_IS_BOOL: int = 0
export const __CONSTANT_CFSTRINGS__: int = 1
export const __clang_literal_encoding__: [char] = "UTF-8"
Expand Down Expand Up @@ -289,8 +289,8 @@ export const _WIN32: int = 1
export const _WIN64: int = 1
export const _M_FP_CONTRACT: int = 1
export const _M_FP_PRECISE: int = 1
export const _MSC_VER: int = 1936
export const _MSC_FULL_VER: int = 193632537
export const _MSC_VER: int = 1938
export const _MSC_FULL_VER: int = 193833135
export const _MSC_BUILD: int = 1
export const _MSC_EXTENSIONS: int = 1
export const _ISO_VOLATILE: int = 1
Expand All @@ -302,6 +302,7 @@ export const _M_AMD64: int = 100
export const __STDC_HOSTED__: int = 1
export const __STDC_UTF_16__: int = 1
export const __STDC_UTF_32__: int = 1
export const MUSL: int = 1
export const _VCRT_COMPILER_PREPROCESSOR: int = 1
export const _SAL_VERSION: int = 20
export const __SAL_H_VERSION: int = 180000000
Expand Down Expand Up @@ -537,16 +538,16 @@ export import def #extern _aligned_recalloc(_Block: *, _Count: uint64, _Size: ui
export import def #extern _errno() -> *int
export import def #extern _set_errno(_Value: int) -> int
export import def #extern _get_errno(_Value: *int) -> int
export import def #extern bsearch_s(_Key: *, _Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def (*, *, *) -> (int), _Context: *) -> *
export import def #extern qsort_s(_Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def (*, *, *) -> (int), _Context: *)
export import def #extern bsearch(_Key: *, _Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def (*, *) -> (int)) -> *
export import def #extern qsort(_Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def (*, *) -> (int))
export import def #extern _lfind_s(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint64, _CompareFunction: def (*, *, *) -> (int), _Context: *) -> *
export import def #extern _lfind(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def (*, *) -> (int)) -> *
export import def #extern _lsearch_s(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint64, _CompareFunction: def (*, *, *) -> (int), _Context: *) -> *
export import def #extern _lsearch(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def (*, *) -> (int)) -> *
export import def #extern lfind(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def (*, *) -> (int)) -> *
export import def #extern lsearch(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def (*, *) -> (int)) -> *
export import def #extern bsearch_s(_Key: *, _Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def [*, *, *] -> int, _Context: *) -> *
export import def #extern qsort_s(_Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def [*, *, *] -> int, _Context: *)
export import def #extern bsearch(_Key: *, _Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def [*, *] -> int) -> *
export import def #extern qsort(_Base: *, _NumOfElements: uint64, _SizeOfElements: uint64, _CompareFunction: def [*, *] -> int)
export import def #extern _lfind_s(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint64, _CompareFunction: def [*, *, *] -> int, _Context: *) -> *
export import def #extern _lfind(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def [*, *] -> int) -> *
export import def #extern _lsearch_s(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint64, _CompareFunction: def [*, *, *] -> int, _Context: *) -> *
export import def #extern _lsearch(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def [*, *] -> int) -> *
export import def #extern lfind(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def [*, *] -> int) -> *
export import def #extern lsearch(_Key: *, _Base: *, _NumOfElements: *uint, _SizeOfElements: uint, _CompareFunction: def [*, *] -> int) -> *
export import def #extern _itow_s(_Value: int, _Buffer: *ushort, _BufferCount: uint64, _Radix: int) -> int
export import def #extern _itow(_Value: int, _Buffer: *ushort, _Radix: int) -> *ushort
export import def #extern _ltow_s(_Value: long, _Buffer: *ushort, _BufferCount: uint64, _Radix: int) -> int
Expand Down Expand Up @@ -606,15 +607,15 @@ export import def #extern _Exit(_Code: int)
export import def #extern quick_exit(_Code: int)
export import def #extern abort()
export import def #extern _set_abort_behavior(_Flags: uint, _Mask: uint) -> uint
export import def #extern atexit(_0: def () -> ()) -> int
export import def #extern _onexit(_Func: def () -> (int)) -> def () -> (int)
export import def #extern at_quick_exit(_0: def () -> ()) -> int
export import def #extern _set_purecall_handler(_Handler: def () -> ()) -> def () -> ()
export import def #extern _get_purecall_handler() -> def () -> ()
export import def #extern _set_invalid_parameter_handler(_Handler: def (*ushort, *ushort, *ushort, uint, uint64) -> ()) -> def (*ushort, *ushort, *ushort, uint, uint64) -> ()
export import def #extern _get_invalid_parameter_handler() -> def (*ushort, *ushort, *ushort, uint, uint64) -> ()
export import def #extern _set_thread_local_invalid_parameter_handler(_Handler: def (*ushort, *ushort, *ushort, uint, uint64) -> ()) -> def (*ushort, *ushort, *ushort, uint, uint64) -> ()
export import def #extern _get_thread_local_invalid_parameter_handler() -> def (*ushort, *ushort, *ushort, uint, uint64) -> ()
export import def #extern atexit(_0: def -> ) -> int
export import def #extern _onexit(_Func: def -> int) -> def -> int
export import def #extern at_quick_exit(_0: def -> ) -> int
export import def #extern _set_purecall_handler(_Handler: def -> ) -> def ->
export import def #extern _get_purecall_handler() -> def ->
export import def #extern _set_invalid_parameter_handler(_Handler: def [*ushort, *ushort, *ushort, uint, uint64] -> ) -> def [*ushort, *ushort, *ushort, uint, uint64] ->
export import def #extern _get_invalid_parameter_handler() -> def [*ushort, *ushort, *ushort, uint, uint64] ->
export import def #extern _set_thread_local_invalid_parameter_handler(_Handler: def [*ushort, *ushort, *ushort, uint, uint64] -> ) -> def [*ushort, *ushort, *ushort, uint, uint64] ->
export import def #extern _get_thread_local_invalid_parameter_handler() -> def [*ushort, *ushort, *ushort, uint, uint64] ->
export import def #extern _set_error_mode(_Mode: int) -> int
export import def #extern __doserrno() -> *ulong
export import def #extern _set_doserrno(_Value: ulong) -> int
Expand Down Expand Up @@ -748,7 +749,7 @@ export import def #extern ltoa(_Value: long, _Buffer: *char, _Radix: int) -> *ch
export import def #extern swab(_Buf1: *char, _Buf2: *char, _SizeInBytes: int)
export import def #extern ultoa(_Value: ulong, _Buffer: *char, _Radix: int) -> *char
export import def #extern putenv(_EnvString: *char) -> int
export import def #extern onexit(_Func: def () -> (int)) -> def () -> (int)
export import def #extern onexit(_Func: def -> int) -> def -> int
export import def #extern __acrt_iob_func(_Ix: uint) -> *s__iobuf
export import def #extern fgetwc(_Stream: *s__iobuf) -> ushort
export import def #extern _fgetwchar() -> ushort
Expand Down Expand Up @@ -1358,7 +1359,7 @@ export import def #extern y1(_X: double) -> double
export import def #extern yn(_X: int, _Y: double) -> double
export import def #extern _wassert(_Message: *ushort, _File: *ushort, _Line: uint)
export import def #extern __pxcptinfoptrs() -> **
export import def #extern signal(_Signal: int, _Function: def (int) -> ()) -> def (int) -> ()
export import def #extern signal(_Signal: int, _Function: def int -> ) -> def int ->
export import def #extern raise(_Signal: int) -> int
export import def #extern __pctype_func() -> *ushort
export import def #extern __pwctype_func() -> *ushort
Expand Down Expand Up @@ -1428,9 +1429,7 @@ export import def #extern iscntrl(_C: int) -> int
export import def #extern _iscntrl_l(_C: int, _Locale: *s___crt_locale_pointers) -> int
export import def #extern toupper(_C: int) -> int
export import def #extern tolower(_C: int) -> int
export import def #extern _tolower(_C: int) -> int
export import def #extern _tolower_l(_C: int, _Locale: *s___crt_locale_pointers) -> int
export import def #extern _toupper(_C: int) -> int
export import def #extern _toupper_l(_C: int, _Locale: *s___crt_locale_pointers) -> int
export import def #extern __isascii(_C: int) -> int
export import def #extern __toascii(_C: int) -> int
Expand Down
Loading

0 comments on commit aa9ae83

Please sign in to comment.