raising the head after a three-weeks refactoring
[m6w6/ext-psi] / tests / pipe / pipe.psi
index 6fc9e89aee5b2f64760aa7b9e1781f1d07026129..d1961da8afc4b5bbf8d480405ea826c1fc21d558 100644 (file)
@@ -1,8 +1,8 @@
 
-//extern int pipe(int fildes[2]);
+// extern int pipe(int fildes[2]);
 
 function \pipe(array &$fds = null) : int {
        return to_int(pipe);
        let fildes = calloc(2, psi\SIZEOF_INT);
-       set $fds = to_array(fildes[2]);
+       set $fds = to_array(*fildes, 2, to_int(*fildes));
 }