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
8
typedef
unsigned
short
ushort
;
9
typedef
unsigned
long
ulong
;
10
11
typedef
uint8_t
BYTE
;
12
typedef
uint16_t
WORD
;
13
typedef
uint32_t
DWORD
;
14
typedef
int16_t
BOOL
;
15
16
#define FALSE 0
17
#define TRUE 1
18
19
// Compatibility shims
20
#define far __far
21
#define near
22
23
struct
intvector
{
24
void (*
callback
)(void);
25
uint16_t
cs
;
26
uint16_t
ds
;
27
uint16_t
unknown
;
/* ? */
28
};
29
typedef
struct
intvector
intvector_t
;
30
31
struct
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
};
39
typedef
struct
ownerinfo
ownerinfo_t
;
40
41
struct
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
};
50
typedef
struct
datetime
datetime_t
;
51
52
#endif
/* __LIBWW_SYS_TYPES_H__ */
datetime
Definition
types.h:41
datetime::date
uint8_t date
Definition
types.h:44
datetime::month
uint8_t month
Definition
types.h:43
datetime::year
uint8_t year
Definition
types.h:42
datetime::second
uint8_t second
Definition
types.h:48
datetime::minute
uint8_t minute
Definition
types.h:47
datetime::day_of_week
uint8_t day_of_week
Definition
types.h:45
datetime::hour
uint8_t hour
Definition
types.h:46
intvector
Definition
types.h:23
intvector::callback
void(* callback)(void)
Definition
types.h:24
intvector::unknown
uint16_t unknown
Definition
types.h:27
intvector::ds
uint16_t ds
Definition
types.h:26
intvector::cs
uint16_t cs
Definition
types.h:25
ownerinfo
Definition
types.h:31
ownerinfo::birth_year
uint16_t birth_year
Definition
types.h:33
ownerinfo::birth_month
uint8_t birth_month
Definition
types.h:34
ownerinfo::birth_day
uint8_t birth_day
Definition
types.h:35
ownerinfo::bloodtype
uint8_t bloodtype
Definition
types.h:37
ownerinfo::name
char name[16]
Definition
types.h:32
ownerinfo::sex
uint8_t sex
Definition
types.h:36
BOOL
int16_t BOOL
Definition
types.h:14
ulong
unsigned long ulong
Definition
types.h:9
BYTE
uint8_t BYTE
Definition
types.h:11
WORD
uint16_t WORD
Definition
types.h:12
ushort
unsigned short ushort
Definition
types.h:8
DWORD
uint32_t DWORD
Definition
types.h:13
include
sys
types.h
Generated by
1.12.0