projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
passing structs
[m6w6/ext-psi]
/
psi.d
/
stdio.psi
diff --git
a/psi.d/stdio.psi
b/psi.d/stdio.psi
index 1e136cef1caaa8101152fac63c3bd6134843ba57..6909354f4be5f2e4dcead79393b704c58937f32f 100644
(file)
--- a/
psi.d/stdio.psi
+++ b/
psi.d/stdio.psi
@@
-2,7
+2,7
@@
function psi\fopen(string $path, string $mode) : object {
let path = pathval($path);
let mode = strval($mode);
function psi\fopen(string $path, string $mode) : object {
let path = pathval($path);
let mode = strval($mode);
- return to_object(
*
fopen);
+ return to_object(fopen);
}
// extern int fclose(FILE *stream);
}
// extern int fclose(FILE *stream);
@@
-65,8
+65,9
@@
function psi\rewind(object $stream) : void {
return void(rewind);
}
return void(rewind);
}
-
extern int printf(const char *fm
t, ...);
+
//extern int printf(const char *forma
t, ...);
function psi\printf(string $fmt, mixed ...$args) : int {
function psi\printf(string $fmt, mixed ...$args) : int {
- let f
m
t = strval($fmt);
+ let f
orma
t = strval($fmt);
return to_int(printf);
}
return to_int(printf);
}
+