mirror of
https://github.com/HerrCraziDev/tiny-kyoukai.git
synced 2026-04-20 15:24:22 +02:00
initial commit - very silly!
This commit is contained in:
22
src/includes/errors.h
Normal file
22
src/includes/errors.h
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
#ifndef __TINYKYOU_ERRORS_H__
|
||||
#define __TINYKYOU_ERRORS_H__
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
Common Errors
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
NO_ERR = 0x0000, /* No Errors */
|
||||
ERR_UNKNOWN = 0xFFFF, /* Unknown error */
|
||||
|
||||
ERR_NOT_IMPLEMENTED = 0xFF01, /* Not implemented */
|
||||
ERR_BAD_PARAMS = 0xFF02, /* Bad param (value) */
|
||||
ERR_USAGE = 0xFF03, /* Incorrect usage */
|
||||
ERR_SKILL_ISSUE = 0xDEAD, /* Unspecified internal error */
|
||||
|
||||
} e_ret;
|
||||
|
||||
#endif /* __TINYKYOU_ERRORS_H__ */
|
||||
3
src/includes/test.h
Normal file
3
src/includes/test.h
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
extern char* sTestString;
|
||||
27
src/includes/types.h
Normal file
27
src/includes/types.h
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#ifndef __TINYKYOU_TYPES_H__
|
||||
#define __TINYKYOU_TYPES_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "errors.h"
|
||||
|
||||
#define __FUCK_OFF(def) #def
|
||||
#define _TOSTRING(def) __FUCK_OFF(def)
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
Common Types
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
typedef int8_t int8;
|
||||
typedef uint8_t uint8;
|
||||
typedef int16_t int16;
|
||||
typedef uint16_t uint16;
|
||||
typedef int32_t int32;
|
||||
typedef uint32_t uint32;
|
||||
typedef int64_t int64;
|
||||
typedef uint64_t uint64;
|
||||
|
||||
#endif /* __TINYKYOU_TYPES_H__ */
|
||||
|
||||
15
src/includes/version.h
Normal file
15
src/includes/version.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
#ifndef __TINYKYOU_VERSION__
|
||||
#define __TINYKYOU_VERSION__
|
||||
|
||||
#include "types.h"
|
||||
|
||||
|
||||
#define TINYKYOU_VERSION_MAJOR 1
|
||||
#define TINYKYOU_VERSION_MINOR 0
|
||||
#define TINYKYOU_VERSION _TOSTRING(TINYKYOU_VERSION_MAJOR)"."_TOSTRING(TINYKYOU_VERSION_MINOR)
|
||||
|
||||
#define TINYKYOU_NAME "tiny-kyoukai"
|
||||
|
||||
#endif /* __TINYKYOU_VERSION__ */
|
||||
4
src/test.c
Normal file
4
src/test.c
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
|
||||
char* sTestString = "Kyou";
|
||||
Reference in New Issue
Block a user