sokol: byte => u8
parent
3ddd136ced
commit
69eec2590d
|
@ -163,7 +163,7 @@ pub fn frame_duration() f64 {
|
|||
|
||||
// write string into clipboard
|
||||
[inline]
|
||||
pub fn set_clipboard_string(str &char) {
|
||||
pub fn set_clipboard_string(str &u8) {
|
||||
C.sapp_set_clipboard_string(str)
|
||||
}
|
||||
|
||||
|
|
|
@ -75,10 +75,10 @@ fn C.sapp_frame_count() u64
|
|||
fn C.sapp_frame_duration() f64
|
||||
|
||||
// write string into clipboard
|
||||
fn C.sapp_set_clipboard_string(str &byte)
|
||||
fn C.sapp_set_clipboard_string(str &u8)
|
||||
|
||||
// read string from clipboard (usually during SAPP_EVENTTYPE_CLIPBOARD_PASTED)
|
||||
fn C.sapp_get_clipboard_string() &byte
|
||||
fn C.sapp_get_clipboard_string() &u8
|
||||
|
||||
// set the window title (only on desktop platforms)
|
||||
fn C.sapp_set_window_title(&char)
|
||||
|
@ -90,7 +90,7 @@ fn C.sapp_set_window_title(&char)
|
|||
fn C.sapp_get_num_dropped_files() int
|
||||
|
||||
// Get the file path of the droped file
|
||||
fn C.sapp_get_dropped_file_path(int) &byte
|
||||
fn C.sapp_get_dropped_file_path(int) &u8
|
||||
|
||||
// special run-function for SOKOL_NO_ENTRY (in standard mode this is an empty stub)
|
||||
fn C.sapp_run(desc &Desc) int
|
||||
|
|
|
@ -106,7 +106,7 @@ fn sqlite_stmt_binder(stmt Stmt, d orm.QueryData, query string, mut c &int) ? {
|
|||
fn bind(stmt Stmt, c &int, data orm.Primitive) int {
|
||||
mut err := 0
|
||||
match data {
|
||||
i8, i16, int, byte, u16, u32, bool {
|
||||
i8, i16, int, u8, u16, u32, bool {
|
||||
err = stmt.bind_int(c, int(data))
|
||||
}
|
||||
i64, u64 {
|
||||
|
|
Loading…
Reference in New Issue