udem-dlteam / pnut

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

Support K&R param syntax in function definition #27

Closed laurenthuberdeau closed 5 months ago

laurenthuberdeau commented 5 months ago

Context

The earliest versions of TCC used K&R style for certain functions. This PR adds support for it, as it only takes a few lines. When we get to bootstrapping the latest versions of TCC, we'll be able to remove this small change to the parser.