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

Fix many small bugs #46

Closed laurenthuberdeau closed 5 months ago

laurenthuberdeau commented 5 months ago

Fix a few bugs found recently:

  1. A typedef with pointer type wouldn't be parsed. Commit
  2. When using OPTIMIZE_CONSTANT_PARAM, the shell backend would crash when compiling a switch and labelled statements. Commit
  3. String literals used at the top level used defstr which wasn't yet defined. Commit
  4. When using SH_AVOID_PRINTF_USE, using the %c format specifiers would output the first digit of the ascii code of the letter instead of the letter. Commit