Skip to content

Commit c04e108

Browse files
committed
Comment out redundant function names in php_wasm.c
1 parent 29fa83c commit c04e108

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

packages/php-wasm/compile/php/php_wasm.c

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,19 +1918,20 @@ EMSCRIPTEN_KEEPALIVE off_t wasm_get_end_offset(int fd) {
19181918
return eof_offset;
19191919
}
19201920

1921-
// TODO: EXPLAIN WHY THIS SHIM FUNCTION
1922-
EM_ASYNC_JS(int, call_js__syscall_fcntl64, (int fd, int cmd, va_list args), {
1923-
const result = await _js__syscall_fcntl64(fd, cmd, args);
1924-
return result;
1925-
});
1926-
1927-
int __syscall_fcntl64(int fd, int cmd, ...) {
1928-
va_list args;
1929-
va_start(args, cmd);
1930-
wasm_trace("__syscall_fcntl64: errno before %d", errno);
1931-
int result = call_js__syscall_fcntl64(fd, cmd, args);
1932-
wasm_trace("__syscall_fcntl64: errno after %d", errno);
1933-
va_end(args);
1934-
wasm_trace("__syscall_fcntl64: errno after va_end %d", errno);
1935-
return result;
1936-
}
1921+
// TODO: Remove this if it is no longer needed
1922+
// // TODO: EXPLAIN WHY THIS SHIM FUNCTION
1923+
// EM_ASYNC_JS(int, call_js__syscall_fcntl64, (int fd, int cmd, va_list args), {
1924+
// const result = await _js__syscall_fcntl64(fd, cmd, args);
1925+
// return result;
1926+
// });
1927+
1928+
// int __syscall_fcntl64(int fd, int cmd, ...) {
1929+
// va_list args;
1930+
// va_start(args, cmd);
1931+
// wasm_trace("__syscall_fcntl64: errno before %d", errno);
1932+
// int result = call_js__syscall_fcntl64(fd, cmd, args);
1933+
// wasm_trace("__syscall_fcntl64: errno after %d", errno);
1934+
// va_end(args);
1935+
// wasm_trace("__syscall_fcntl64: errno after va_end %d", errno);
1936+
// return result;
1937+
// }

0 commit comments

Comments
 (0)