libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef __LIBWW_SYS_TYPES_H__
2#define __LIBWW_SYS_TYPES_H__
3
4#include <stddef.h>
5#include <stdint.h>
6#include <wonderful.h>
7
8typedef unsigned short ushort;
9typedef unsigned long ulong;
10
11typedef uint8_t BYTE;
12typedef uint16_t WORD;
13typedef uint32_t DWORD;
14typedef int16_t BOOL;
15
16#define FALSE 0
17#define TRUE 1
18
19// Compatibility shims
20#define far __far
21#define near
22
23struct intvector {
24 void (*callback)(void);
25 uint16_t cs;
26 uint16_t ds;
27 uint16_t unknown; /* ? */
28};
29typedef struct intvector intvector_t;
30
31struct ownerinfo {
32 char name[16];
33 uint16_t birth_year;
34 uint8_t birth_month;
35 uint8_t birth_day;
36 uint8_t sex;
37 uint8_t bloodtype;
38};
39typedef struct ownerinfo ownerinfo_t;
40
41struct datetime {
42 uint8_t year;
43 uint8_t month;
44 uint8_t date;
45 uint8_t day_of_week;
46 uint8_t hour;
47 uint8_t minute;
48 uint8_t second;
49};
50typedef struct datetime datetime_t;
51
52#endif /* __LIBWW_SYS_TYPES_H__ */
uint8_t date
Definition types.h:44
uint8_t month
Definition types.h:43
uint8_t year
Definition types.h:42
uint8_t second
Definition types.h:48
uint8_t minute
Definition types.h:47
uint8_t day_of_week
Definition types.h:45
uint8_t hour
Definition types.h:46
void(* callback)(void)
Definition types.h:24
uint16_t unknown
Definition types.h:27
uint16_t ds
Definition types.h:26
uint16_t cs
Definition types.h:25
uint16_t birth_year
Definition types.h:33
uint8_t birth_month
Definition types.h:34
uint8_t birth_day
Definition types.h:35
uint8_t bloodtype
Definition types.h:37
char name[16]
Definition types.h:32
uint8_t sex
Definition types.h:36
int16_t BOOL
Definition types.h:14
unsigned long ulong
Definition types.h:9
uint8_t BYTE
Definition types.h:11
uint16_t WORD
Definition types.h:12
unsigned short ushort
Definition types.h:8
uint32_t DWORD
Definition types.h:13