maximecb / uvm

Fun, portable, minimalistic virtual machine.
Apache License 2.0
538 stars 19 forks source link

Fix stdio.h puts(), should add a trailing newline per C specs (!) #29

Closed tkchia closed 1 year ago

maximecb commented 1 year ago

Thanks for the fix :)

tkchia commented 1 year ago

Thanks @maximecb ! Though I just discovered that many of the example programs seem to assume that puts() does not add a newline. I am not quite sure about the best way to fix them.

Thank you!

maximecb commented 1 year ago

I looked at that. In the chess program, all the puts are for debugging and commented so it doesn't matter. Looks like the situation is similar in basic.c, so I think no need to change anything there.