X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fpipe%2Fpipe.psi;h=d1961da8afc4b5bbf8d480405ea826c1fc21d558;hb=3eb42b54ab141d3b25b6fff0cdec860f93e37617;hp=6fc9e89aee5b2f64760aa7b9e1781f1d07026129;hpb=d3171526ab7658114cac4ebe1098af4b038e576e;p=m6w6%2Fext-psi diff --git a/tests/pipe/pipe.psi b/tests/pipe/pipe.psi index 6fc9e89..d1961da 100644 --- a/tests/pipe/pipe.psi +++ b/tests/pipe/pipe.psi @@ -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)); }