X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Fpipe%2Fpipe.psi;h=568fc262f9b8292153a70bb16809c1c892ce36cb;hp=5bc3cd655184bd09bd12f9c7949218df328ef552;hb=c9384515a81cb64d345b299908b2852f51bb8e6e;hpb=9f381458672347c0f303dc3b309dc299f998f4f6 diff --git a/tests/pipe/pipe.psi b/tests/pipe/pipe.psi index 5bc3cd6..568fc26 100644 --- a/tests/pipe/pipe.psi +++ b/tests/pipe/pipe.psi @@ -1,8 +1,7 @@ - -extern int pipe(int fds[2]); +#include function \pipe(array &$fds = null) : int { - return to_int(pipe); - let fds = calloc(2, int); - set $fds = to_array(fds); + return pipe(fildes) as to_int(pipe); + let fildes = calloc(2, sizeof(int)); + set $fds = to_array(*fildes, 2, to_int(*fildes)); }