diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-21 17:13:32 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-21 17:13:32 -0500 |
| commit | 580df110a231be68c64f5fe061e12fae9fbcc4cd (patch) | |
| tree | 8c19f9130c1f407186ee9f78a3237d8710b652c4 | |
| parent | 41fcaf2a159ee3c4c0d3a48c55566bb52c4cb3f1 (diff) | |
usr: sdk: Add SDK types
Introduce the initial type coverage for OpenMOS
Signed-off-by: Ian Moffett <ian@osmora.org>
| -rw-r--r-- | usr/sdk/inc/sdk/types.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/usr/sdk/inc/sdk/types.h b/usr/sdk/inc/sdk/types.h new file mode 100644 index 0000000..12dd6e6 --- /dev/null +++ b/usr/sdk/inc/sdk/types.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2025, Ian Moffett. + * Provided under the BSD-3 clause. + */ + +#ifndef _SDK_TYPES_H_ +#define _SDK_TYPES_H_ 1 + +#define NULL ((void *)0) + +#ifndef true +#define true 1 +#endif /* !true */ + +#ifndef false +#define false 0 +#endif /* !false */ + +/* Boolean type */ +typedef _Bool BOOL; + +/* Signed types */ +typedef char BYTE; +typedef short SHORT; +typedef int LONG; +typedef long long QUAD; +typedef QUAD SSIZE; + +/* Unsigned types */ +typedef unsigned char UBYTE; +typedef unsigned short USHORT; +typedef unsigned int ULONG; +typedef unsigned long long UQUAD; +typedef UQUAD USIZE; + +#endif /* !_SDK_TYPES_H_ */ |
