projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
deduct variable names from implementation
[m6w6/ext-psi]
/
tests
/
pipe
/
pipe.psi
diff --git
a/tests/pipe/pipe.psi
b/tests/pipe/pipe.psi
index 5bc3cd655184bd09bd12f9c7949218df328ef552..c7b2e73347d1a9760c28261bb961bff5a52058f6 100644
(file)
--- a/
tests/pipe/pipe.psi
+++ b/
tests/pipe/pipe.psi
@@
-1,8
+1,8
@@
-
extern int pipe(int fd
s[2]);
+
// extern int pipe(int filde
s[2]);
function \pipe(array &$fds = null) : int {
function \pipe(array &$fds = null) : int {
- return to_int(pipe);
- let f
ds = calloc(2, int
);
- set $fds = to_array(
fds
);
+ return
pipe(fildes) as
to_int(pipe);
+ let f
ildes = calloc(2, psi\SIZEOF_INT
);
+ set $fds = to_array(
*fildes, 2, to_int(*fildes)
);
}
}