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