mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Update types
This commit is contained in:
+5
-3
@@ -53,8 +53,10 @@ PlaceShapeStateFromSlice :: proc "c" (Memory: []byte) -> ^shape_state {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
DecodeUtf8String :: proc "c" (String: string) -> decode {
|
DecodeUtf8String :: proc "c" (String: string) -> (Codepoint: rune, SourceCharactersConsumed: u32, Valid: b32) {
|
||||||
return DecodeUtf8(raw_data(String), len(String))
|
Decode := DecodeUtf8(raw_data(String), len(String))
|
||||||
|
Codepoint, SourceCharactersConsumed, Valid = Decode.Codepoint, Decode.SourceCharactersConsumed, Decode.Valid
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -92,7 +94,7 @@ FontFromMemory :: proc(Data: []byte, allocator: mem.Allocator) -> (Result: font,
|
|||||||
delete(Memory, allocator)
|
delete(Memory, allocator)
|
||||||
}
|
}
|
||||||
|
|
||||||
PostReadFontInitializeFromSlice(&Result, Memory)
|
_ = PostReadFontInitializeFromSlice(&Result, Memory)
|
||||||
return
|
return
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1838,5 +1838,5 @@ decode :: struct {
|
|||||||
Codepoint: rune,
|
Codepoint: rune,
|
||||||
|
|
||||||
SourceCharactersConsumed: u32,
|
SourceCharactersConsumed: u32,
|
||||||
Valid: u32,
|
Valid: b32,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user