projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge branch 'slimconfigure'
[m6w6/ext-psi]
/
tests
/
pipe
/
pipe.psi
diff --git
a/tests/pipe/pipe.psi
b/tests/pipe/pipe.psi
index fd7e3ff1770e975a7e8ce4763acf2daa8432235b..568fc262f9b8292153a70bb16809c1c892ce36cb 100644
(file)
--- a/
tests/pipe/pipe.psi
+++ b/
tests/pipe/pipe.psi
@@
-1,8
+1,7
@@
-
-extern int pipe(int fds[2]);
+#include <unistd.h>
function \pipe(array &$fds = null) : int {
function \pipe(array &$fds = null) : int {
- return to_int(pipe);
- let f
ds = calloc(2, psi\SIZEOF_INT
);
- set $fds = to_array(
fds[2]
);
+ return
pipe(fildes) as
to_int(pipe);
+ let f
ildes = calloc(2, sizeof(int)
);
+ set $fds = to_array(
*fildes, 2, to_int(*fildes)
);
}
}