X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fpipe%2Fpipe.psi;h=c7b2e73347d1a9760c28261bb961bff5a52058f6;hb=8d1d1243a8a42b0046ac670808913b3bb06c994b;hp=6fc9e89aee5b2f64760aa7b9e1781f1d07026129;hpb=d3171526ab7658114cac4ebe1098af4b038e576e;p=m6w6%2Fext-psi diff --git a/tests/pipe/pipe.psi b/tests/pipe/pipe.psi index 6fc9e89..c7b2e73 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); + return pipe(fildes) as 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)); }