typedef follow-up

This commit is contained in:
nhmall
2022-07-01 08:23:31 -04:00
parent 30b557f7d5
commit 465db21c79
2 changed files with 4 additions and 2 deletions

View File

@@ -65,14 +65,14 @@
typedef int8_t xint8;
/*
* type coordxy: integers (typedef'd as signed,
* in the range 32768 to 32767), mostly coordinates.
* in the range -32768 to 32767), mostly coordinates.
* Note that in 2022, screen coordinates easily
* surpass an upper limit of 127.
*/
typedef int16_t coordxy;
/*
* type xint16: integers (typedef'd as signed,
* in the range 32768 to 32767), non-coordinates.
* in the range -32768 to 32767), non-coordinates.
*/
typedef int16_t xint16;

View File

@@ -64,6 +64,7 @@
/*
* STDINT_WORKAROUND section begins here
*/
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
@@ -91,6 +92,7 @@ typedef unsigned long long int uint64_t;
#endif /* !C99 */
/* Provide uint8, int16, uint16, int32, uint32, int64 and uint64 */
typedef int8_t int8;
typedef uint8_t uint8;
typedef int16_t int16;
typedef uint16_t uint16;