Closed ToKe79 closed 1 month ago
I was about to remove the fflush altogether. It's not needed since exit() will flush standard file descriptors anyway. So, if you remove do it I'll pull it in.
no problem, I removed fflush(stdout|stderr) from the emulator code. I left fflush() in where it made sense:
gizmondo - logging https://github.com/irixxxx/picodrive/blob/695e6de85e06d47043003664531fc491eaa91240/platform/gizmondo/giz.c#L44
external conversion tool: https://github.com/irixxxx/picodrive/blob/695e6de85e06d47043003664531fc491eaa91240/tools/bin_to_cso_mp3/bin_to_cso_mp3.c#L456 https://github.com/irixxxx/picodrive/blob/695e6de85e06d47043003664531fc491eaa91240/tools/bin_to_cso_mp3/bin_to_cso_mp3.c#L517
file operation: https://github.com/irixxxx/picodrive/blob/695e6de85e06d47043003664531fc491eaa91240/zlib/gzio.c#L760
If you are okay with that, or want to remove more, let me know. As final step I should probably squash these and rename the PR.
hmm that's probably a bit too drastic. Let me do some review on the locations you worked on.
sorry about that, you probably meant altogether from that spot, not altogether from the codebase. it makes sense to remove it right before exit(), but keep it where it is logging, so the buffer is displayed earlier. I will put those back except the one before exit() in compiler.c.
No rush. Let me first look at the code.
After review I think it's indeed sufficient to just remove the one fflush in pico/carthw/svp/compiler.c. All others are either in debug code or in other platforms and should probably stay.
odd. I do not see the commit in the history.
It's in the release-testing branch which will become the new master branch rsn.
Hello, attached is a patch that adds a cast to expected type to fix this compile error with gcc14 when building libretro core: