udem-dlteam / pnut

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell
https://pnut.sh
BSD 2-Clause "Simplified" License
424 stars 14 forks source link

Support comma operator and varargs in exe backend #112

Closed laurenthuberdeau closed 3 weeks ago

laurenthuberdeau commented 3 weeks ago

Context

This PR adds support for variadic functions to exe backend. The portable libc already implemented the va_list/va_arg/va_end macros but used the comma operator which wasn't properly supported by pnut. This PR: