mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
remove link_prefixes
This commit is contained in:
+33
-56
@@ -5,7 +5,6 @@ import "core:c"
|
||||
|
||||
foreign import paf "system:ScePaf_stub"
|
||||
|
||||
@(link_prefix = "scePaf")
|
||||
foreign paf {
|
||||
|
||||
/**
|
||||
@@ -16,27 +15,25 @@ foreign paf {
|
||||
*
|
||||
* @return 0 on success, <0 otherwise.
|
||||
*/
|
||||
GraphicsUpdateCurrentWave :: proc(index: sce.UInt32, update_interval: sce.Float32) -> c.int ---
|
||||
scePafGraphicsUpdateCurrentWave :: proc(index: sce.UInt32, update_interval: sce.Float32) -> c.int ---
|
||||
|
||||
GetCurrentClockLocalTime :: proc(data: ^ScePafDateTime) -> c.int ---
|
||||
scePafGetCurrentClockLocalTime :: proc(data: ^ScePafDateTime) -> c.int ---
|
||||
|
||||
Sha1Init :: proc(_context: ^ScePafSha1Context) -> c.int ---
|
||||
Sha1Update :: proc(_context: ^ScePafSha1Context, data: rawptr, length: sce.Size) -> c.int ---
|
||||
Sha1Result :: proc(_context: ^ScePafSha1Context, dst: rawptr) -> c.int ---
|
||||
scePafSha1Init :: proc(_context: ^ScePafSha1Context) -> c.int ---
|
||||
scePafSha1Update :: proc(_context: ^ScePafSha1Context, data: rawptr, length: sce.Size) -> c.int ---
|
||||
scePafSha1Result :: proc(_context: ^ScePafSha1Context, dst: rawptr) -> c.int ---
|
||||
|
||||
CreateHeap :: proc(_context: ^ScePafHeapContext, membase: rawptr, size: sce.Size, name: cstring, opt: ^ScePafHeapOpt) ---
|
||||
DeleteHeap :: proc(_context: ^ScePafHeapContext) ---
|
||||
scePafCreateHeap :: proc(_context: ^ScePafHeapContext, membase: rawptr, size: sce.Size, name: cstring, opt: ^ScePafHeapOpt) ---
|
||||
scePafDeleteHeap :: proc(_context: ^ScePafHeapContext) ---
|
||||
|
||||
MallocWithContext :: proc(_context: ^ScePafHeapContext, len: sce.Size) -> rawptr ---
|
||||
FreeWithContext :: proc(_context: ^ScePafHeapContext, ptr: rawptr) ---
|
||||
scePafMallocWithContext :: proc(_context: ^ScePafHeapContext, len: sce.Size) -> rawptr ---
|
||||
scePafFreeWithContext :: proc(_context: ^ScePafHeapContext, ptr: rawptr) ---
|
||||
|
||||
MallocAlignWithContext :: proc(_context: ^ScePafHeapContext, align: sce.UInt32, len: sce.Size) -> rawptr ---
|
||||
ReallocWithContext :: proc(_context: ^ScePafHeapContext, ptr: rawptr, len: sce.Size) -> rawptr ---
|
||||
scePafMallocAlignWithContext :: proc(_context: ^ScePafHeapContext, align: sce.UInt32, len: sce.Size) -> rawptr ---
|
||||
scePafReallocWithContext :: proc(_context: ^ScePafHeapContext, ptr: rawptr, len: sce.Size) -> rawptr ---
|
||||
|
||||
@(link_name = "sce_paf_malloc")
|
||||
malloc :: proc(size: sce.Size) -> rawptr ---
|
||||
@(link_name = "sce_paf_free")
|
||||
free :: proc(ptr: rawptr) ---
|
||||
sce_paf_malloc :: proc(size: sce.Size) -> rawptr ---
|
||||
sce_paf_free :: proc(ptr: rawptr) ---
|
||||
|
||||
/**
|
||||
* @brief Alloc memory with align
|
||||
@@ -46,49 +43,30 @@ foreign paf {
|
||||
*
|
||||
* @return memory pointer or NULL
|
||||
*/
|
||||
@(link_name = "sce_paf_memalign")
|
||||
memalign :: proc(align: sce.Size, length: sce.Size) -> rawptr ---
|
||||
sce_paf_memalign :: proc(align: sce.Size, length: sce.Size) -> rawptr ---
|
||||
|
||||
@(link_name = "sce_paf_memchr")
|
||||
memchr :: proc(src: rawptr, ch: c.int, length: sce.Size) -> rawptr ---
|
||||
@(link_name = "sce_paf_memcmp")
|
||||
memcmp :: proc(s1: rawptr, s2: rawptr, n: sce.Size) -> c.int ---
|
||||
sce_paf_memchr :: proc(src: rawptr, ch: c.int, length: sce.Size) -> rawptr ---
|
||||
sce_paf_memcmp :: proc(s1: rawptr, s2: rawptr, n: sce.Size) -> c.int ---
|
||||
|
||||
@(link_name = "sce_paf_memcpy")
|
||||
memcpy :: proc(dst: rawptr, src: rawptr, len: sce.Size) -> rawptr ---
|
||||
@(link_name = "sce_paf_memset")
|
||||
memset :: proc(dst: rawptr, ch: c.int, len: sce.Size) -> rawptr ---
|
||||
@(link_name = "sce_paf_memmove")
|
||||
memmove :: proc(dst: rawptr, src: rawptr, len: sce.Size) -> rawptr ---
|
||||
sce_paf_memcpy :: proc(dst: rawptr, src: rawptr, len: sce.Size) -> rawptr ---
|
||||
sce_paf_memset :: proc(dst: rawptr, ch: c.int, len: sce.Size) -> rawptr ---
|
||||
sce_paf_memmove :: proc(dst: rawptr, src: rawptr, len: sce.Size) -> rawptr ---
|
||||
|
||||
@(link_name = "sce_paf_snprintf")
|
||||
snprintf :: proc(dst: cstring, max: c.uint, fmt: cstring, #c_vararg args: ..any) -> c.int ---
|
||||
@(link_name = "sce_paf_vsnprintf")
|
||||
vsnprintf :: proc(dst: cstring, max: c.uint, fmt: cstring, arg: c.va_list) -> c.int ---
|
||||
sce_paf_snprintf :: proc(dst: cstring, max: c.uint, fmt: cstring, #c_vararg args: ..any) -> c.int ---
|
||||
sce_paf_vsnprintf :: proc(dst: cstring, max: c.uint, fmt: cstring, arg: c.va_list) -> c.int ---
|
||||
|
||||
@(link_name = "sce_paf_bcmp")
|
||||
bcmp :: proc(ptr1: rawptr, ptr2: rawptr, num: sce.Size) -> c.int ---
|
||||
@(link_name = "sce_paf_bcopy")
|
||||
bcopy :: proc(dst: rawptr, src: rawptr, n: sce.Size) -> rawptr ---
|
||||
@(link_name = "sce_paf_bzero")
|
||||
bzero :: proc(dst: rawptr, n: sce.Size) -> rawptr ---
|
||||
sce_paf_bcmp :: proc(ptr1: rawptr, ptr2: rawptr, num: sce.Size) -> c.int ---
|
||||
sce_paf_bcopy :: proc(dst: rawptr, src: rawptr, n: sce.Size) -> rawptr ---
|
||||
sce_paf_bzero :: proc(dst: rawptr, n: sce.Size) -> rawptr ---
|
||||
|
||||
@(link_name = "sce_paf_strchr")
|
||||
strchr :: proc(s: cstring, ch: c.int) -> ^c.char ---
|
||||
@(link_name = "sce_paf_strcmp")
|
||||
strcmp :: proc(s1: cstring, s2: cstring) -> c.int ---
|
||||
@(link_name = "sce_paf_strlen")
|
||||
strlen :: proc(s: cstring) -> c.size_t ---
|
||||
@(link_name = "sce_paf_strcasecmp")
|
||||
strcasecmp :: proc(s1: cstring, s2: cstring) -> c.int ---
|
||||
@(link_name = "sce_paf_strncasecmp")
|
||||
strncasecmp :: proc(s1: cstring, s2: cstring, len: sce.Size) -> c.int ---
|
||||
@(link_name = "sce_paf_strncmp")
|
||||
strncmp :: proc(s1: cstring, s2: cstring, len: sce.Size) -> c.int ---
|
||||
@(link_name = "sce_paf_strncpy")
|
||||
strncpy :: proc(dst: cstring, src: cstring, len: sce.Size) -> cstring ---
|
||||
@(link_name = "sce_paf_strrchr")
|
||||
strrchr :: proc(s: cstring, ch: c.int) -> ^c.char ---
|
||||
sce_paf_strchr :: proc(s: cstring, ch: c.int) -> ^c.char ---
|
||||
sce_paf_strcmp :: proc(s1: cstring, s2: cstring) -> c.int ---
|
||||
sce_paf_strlen :: proc(s: cstring) -> c.size_t ---
|
||||
sce_paf_strcasecmp :: proc(s1: cstring, s2: cstring) -> c.int ---
|
||||
sce_paf_strncasecmp :: proc(s1: cstring, s2: cstring, len: sce.Size) -> c.int ---
|
||||
sce_paf_strncmp :: proc(s1: cstring, s2: cstring, len: sce.Size) -> c.int ---
|
||||
sce_paf_strncpy :: proc(dst: cstring, src: cstring, len: sce.Size) -> cstring ---
|
||||
sce_paf_strrchr :: proc(s: cstring, ch: c.int) -> ^c.char ---
|
||||
|
||||
/**
|
||||
* @brief string to double
|
||||
@@ -98,6 +76,5 @@ foreign paf {
|
||||
*
|
||||
* @return parsed value
|
||||
*/
|
||||
@(link_name = "sce_paf_strtod")
|
||||
strtod :: proc(nptr: cstring, endptr: ^^c.char) -> c.double ---
|
||||
sce_paf_strtod :: proc(nptr: cstring, endptr: ^^c.char) -> c.double ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user