flush
[m6w6/ext-psi] / psi.d / stdio.psi
index 0741874ac5ba0af4ee0ddefb83c3672ad3278d8e..6909354f4be5f2e4dcead79393b704c58937f32f 100644 (file)
@@ -2,7 +2,7 @@
 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);
@@ -65,8 +65,9 @@ function psi\rewind(object $stream) : void {
        return void(rewind);
 }
 
-//extern int printf(const char *fmt, ...);
+//extern int printf(const char *format, ...);
 function psi\printf(string $fmt, mixed ...$args) : int {
-       let fmt = strval($fmt);
+       let format = strval($fmt);
        return to_int(printf);
 }
+