Since there is a possibility that the Error () function will collide with libwonx.a when linking, It changed to Wonx_Error (). Added bios_exit (). sprite_set_char, sprite_get_char, palette number minus 8 Fixed bug that was not specified. font_set_monodata (), font_set_colordata (), font_get_data (), disp.c, The arguments of screen_set_char (), screen_get_char (), sprite_set_data () Changed from void * to appropriate type. Sample program and attached SpeedMac. I added a document. Version 0.3 beta - from wonx-b03.tar.gz
47 lines
684 B
C
47 lines
684 B
C
#ifndef _WONX_SYS_TYPES_H_
|
|
#define _WONX_SYS_TYPES_H_
|
|
|
|
#include "system_configure.h"
|
|
|
|
#include <stdlib.h> /* for NULL definition */
|
|
|
|
#ifdef TYPEDEF_USHORT
|
|
typedef unsigned short int ushort;
|
|
#endif
|
|
#ifdef TYPEDEF_ULONG
|
|
typedef unsigned long int ulong;
|
|
#endif
|
|
|
|
typedef unsigned char BYTE;
|
|
typedef unsigned short WORD;
|
|
typedef unsigned long DWORD;
|
|
typedef int BOOL;
|
|
|
|
#ifndef far
|
|
#define far /* None */
|
|
#endif
|
|
|
|
#ifndef near
|
|
#define near /* None */
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
typedef struct {
|
|
BYTE year;
|
|
BYTE month;
|
|
BYTE date;
|
|
BYTE day_of_week;
|
|
BYTE hour;
|
|
BYTE minute;
|
|
BYTE second;
|
|
} datetime_t;
|
|
|
|
#endif
|