Re: [hatari-devel] Switching from SDL_types.h to inttypes.h ?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


I don‘t see any benefit from keeping the SDL-types in some cases. I suggest to either keep them all or replace them all. 

Am 29.09.2022 um 11:07 schrieb Chris Jenkins <cdpjenkins@xxxxxxxxx>:



Question is: Shall we also convert the spots that are actually calling SDL
functions? ... I don't mind anyway, but others might argue that SDL-related
stuff should still use the SDL-related types?

I agree with others here that code that directly calls SDL can still use the SDL types; code that calls `SDL is already dependent on SDL and coupled to it so it makes sense to use SDL's typedefs in that case.

A general point from me on this: it's really annoying that SDL (and seemingly every other library ever) defines its own typedefs for integer types. Presumably there's a historical reason for that but I really wish it wasn't like that.
 

 Thomas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/