omos-tcnj2024/sys/include/types.h

25 lines
521 B
C
Raw Normal View History

2024-02-17 21:00:38 +01:00
#ifndef TYPES_H
#define TYPES_H
#define NULL 0x00
#define TRUE 0
#define FALSE 1
2024-02-18 01:20:00 +01:00
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef int s32;
typedef short s16;
typedef char s8;
typedef unsigned int size_t;
typedef int ssize_t;
2024-02-17 21:00:38 +01:00
2024-02-18 17:03:37 +01:00
typedef unsigned char *va_list;
#define va_start(list, param) (list = (((va_list)&param) + sizeof(param)))
#define va_arg(list, type) (*(type *)((list += sizeof(type)) - sizeof(type)))
#define va_end(list) (list = NULL)
2024-02-17 21:00:38 +01:00
#endif