Re: [hatari-devel] Switching from SDL_types.h to inttypes.h ? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Switching from SDL_types.h to inttypes.h ?
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Wed, 28 Sep 2022 14:01:34 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1664373695; bh=aTYmERQUYOmpeVBTS1HZD8/03Dh9V7j9I6vFx1x97f4=; h=Date:Subject:To:From:From; b=cybxlaZpi9k/Wb+JSRjbNObfMDwKIOcjmVVEdr8riKe5WhNOxdwyDFyqp7BD3C/gr gh1xLZEkOmqu/k+pq24b6/3+lwvGT/JvJKoToSJOVjRcd0c8H8JjY1Qe94XYQnutbh B71JYRbCPBM12qPyQAFHDOJNo0sxrGpM586niCbL16pOeS9KS0rYuS1MRRZ4xCu8pA J3+is/INZvoF+uSuYtw09+1gfe2giDpeEmierwfNPqKNd86nJT3VfYP/InS86aAmfi Ryh4kQNzhgBGBATYG1M6gjxlqBEDZ8bRHvoenoZy4NmxOINrMfXJWdDxhSJOmD6zRX oeNPLjyBBzokg==
On 28/09/2022 14.58, Nicolas Pomarède wrote:
Le 24/09/2022 à 13:53, Thomas Huth a écrit :
Opinions? Would it be OK to switch non-SDL related files to uint16_t
instead of Uint16 etc. ? Or is anybody really keen on keeping the SDL types?
Hi
you changed types in several parts already, do you have a small sed script
or similar to do it and do you plan to change the rest of the code ?
I basically did:
for x in 8 16 32 ; do \
sed -i "s/Uint${x}/uint${x}_t/g" file.c ; \
done
for x in 8 16 32 ; do \
sed -i "s/Sint${x}/int${x}_t/g" file.c ; \
done
Just wondering if I should change myself avi_record.c or mfp.c for example
or just wait that you complete the rest of the changes ?
I've got no uncommitted work right now, so feel free to go ahead!
(otherwise, I'll continue that work sometime in the future when I find some
spare minutes again. So far, I just wanted to clean the files that needed
the types from main.h first, and that's what I achieved so far ... however,
there are still some other issues left to make main.h independent from the
SDL stuff, like the "#define strlcpy" in str.h, so it will take some more
work to really be able to drop the SDL_types.h from main.h)
Thomas