From 19ed43850d0ea136399935fc1ecba8d8a6528d68 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Sun, 30 Dec 2012 20:03:12 +0000 Subject: [PATCH] PDCLIB-2 PDCLIB-12: Add uchar.h with appropriate type definitions. Functions TBD. --- includes/uchar.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 includes/uchar.h diff --git a/includes/uchar.h b/includes/uchar.h new file mode 100644 index 0000000..3b34c92 --- /dev/null +++ b/includes/uchar.h @@ -0,0 +1,39 @@ +/* 7.28 + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + + +#ifndef _PDCLIB_UCHAR_H +#define _PDCLIB_UCHAR_H +#include <_PDCLIB_encoding.h> +_PDCLIB_BEGIN_EXTERN_C + +/* This is mostly a placeholder. for now. This header will be completed by the + * release of 0.6, but at present merely exposes types needed by the rest of the + * library + */ + +#ifndef _PDCLIB_SIZE_T_DEFINED +#define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED +typedef _PDCLIB_size_t size_t; +#endif + +#ifndef _PDCLIB_MBSTATE_T_DEFINED +#define _PDCLIB_MBSTATE_T_DEFINED _PDCLIB_MBSTATE_T_DEFINED +typedef struct _PDCLIB_mbstate_t mbstate_t; +#endif + +#ifndef __cplusplus +#ifndef _PDCLIB_CHAR16_T_DEFINED +#define _PDCLIB_CHAR16_T_DEFINED _PDCLIB_CHAR16_T_DEFINED +typedef _PDCLIB_char16_t char16_t; +#endif + +#ifndef _PDCLIB_CHAR32_T_DEFINED +#define _PDCLIB_CHAR32_T_DEFINED _PDCLIB_CHAR32_T_DEFINED +typedef _PDCLIB_char32_t char32_t; +#endif + +#endif \ No newline at end of file -- 2.40.0