mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
va_list fixes for raylib & stb sprintf
This commit is contained in:
2
vendor/raylib/raylib.odin
vendored
2
vendor/raylib/raylib.odin
vendored
@@ -861,7 +861,7 @@ NPatchLayout :: enum c.int {
|
||||
|
||||
// Callbacks to hook some internal functions
|
||||
// WARNING: This callbacks are intended for advance users
|
||||
TraceLogCallback :: #type proc "c" (logLevel: TraceLogLevel, text: cstring, args: c.va_list) // Logging: Redirect trace log messages
|
||||
TraceLogCallback :: #type proc "c" (logLevel: TraceLogLevel, text: cstring, args: ^c.va_list) // Logging: Redirect trace log messages
|
||||
LoadFileDataCallback :: #type proc "c"(fileName: cstring, dataSize: ^c.int) -> [^]u8 // FileIO: Load binary data
|
||||
SaveFileDataCallback :: #type proc "c" (fileName: cstring, data: rawptr, dataSize: c.int) -> bool // FileIO: Save binary data
|
||||
LoadFileTextCallback :: #type proc "c" (fileName: cstring) -> [^]u8 // FileIO: Load text data
|
||||
|
||||
BIN
vendor/stb/lib/darwin/stb_sprintf.a
vendored
Normal file
BIN
vendor/stb/lib/darwin/stb_sprintf.a
vendored
Normal file
Binary file not shown.
BIN
vendor/stb/lib/stb_sprintf.lib
vendored
Normal file
BIN
vendor/stb/lib/stb_sprintf.lib
vendored
Normal file
Binary file not shown.
2
vendor/stb/sprintf/stb_sprintf.odin
vendored
2
vendor/stb/sprintf/stb_sprintf.odin
vendored
@@ -29,7 +29,7 @@ when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {
|
||||
foreign stbpf {
|
||||
sprintf :: proc(buf: [^]byte, fmt: cstring, #c_vararg args: ..any) -> i32 ---
|
||||
snprintf :: proc(buf: [^]byte, count: i32, fmt: cstring, #c_vararg args: ..any) -> i32 ---
|
||||
vsprintf :: proc(buf: [^]byte, fmt: cstring, va: c.va_list) -> i32 ---
|
||||
vsprintf :: proc(buf: [^]byte, fmt: cstring, va: ^c.va_list) -> i32 ---
|
||||
vsnprintf :: proc(buf: [^]byte, count: i32, fmt: cstring, va: ^c.va_list) -> i32 ---
|
||||
vsprintfcb :: proc(callback: SPRINTFCB, user: rawptr, buf: [^]byte, fmt: cstring, va: ^c.va_list) -> i32 ---
|
||||
}
|
||||
|
||||
3
vendor/stb/src/build.bat
vendored
3
vendor/stb/src/build.bat
vendored
@@ -2,12 +2,13 @@
|
||||
|
||||
if not exist "..\lib" mkdir ..\lib
|
||||
|
||||
cl -nologo -MT -TC -O2 -c stb_image.c stb_image_write.c stb_image_resize.c stb_truetype.c stb_rect_pack.c stb_vorbis.c
|
||||
cl -nologo -MT -TC -O2 -c stb_image.c stb_image_write.c stb_image_resize.c stb_truetype.c stb_rect_pack.c stb_vorbis.c stb_sprintf.c
|
||||
lib -nologo stb_image.obj -out:..\lib\stb_image.lib
|
||||
lib -nologo stb_image_write.obj -out:..\lib\stb_image_write.lib
|
||||
lib -nologo stb_image_resize.obj -out:..\lib\stb_image_resize.lib
|
||||
lib -nologo stb_truetype.obj -out:..\lib\stb_truetype.lib
|
||||
lib -nologo stb_rect_pack.obj -out:..\lib\stb_rect_pack.lib
|
||||
lib -nologo stb_vorbis.obj -out:..\lib\stb_vorbis.lib
|
||||
lib -nologo stb_sprintf.obj -out:..\lib\stb_sprintf.lib
|
||||
|
||||
del *.obj
|
||||
|
||||
Reference in New Issue
Block a user