X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstdio.psi;h=6909354f4be5f2e4dcead79393b704c58937f32f;hp=0741874ac5ba0af4ee0ddefb83c3672ad3278d8e;hb=cfebc76ed7426836f21296cca9a14b422bfa04cf;hpb=0e6d6d0bdaf5cca59d04a8f4e9fcca8a65f341d8 diff --git a/psi.d/stdio.psi b/psi.d/stdio.psi index 0741874..6909354 100644 --- 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); - 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); } +