X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fwctype.h;h=3b3e211eb5fe1d78b9b36dcc1690b09255a243bc;hp=1c50bfc2810ec21c6e6f94b659456bf0e4ff8936;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=70f1c6f7c9d515ef426da68973511f46de57005a diff --git a/includes/wctype.h b/includes/wctype.h index 1c50bfc..3b3e211 100644 --- a/includes/wctype.h +++ b/includes/wctype.h @@ -1,26 +1,37 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Wide character classification and mapping utilities -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * ---------------------------------------------------------------------------- + * Wide character classification and mapping utilities + * --------------------------------------------------------------------------*/ -#ifndef __WCTYPE_H -#define __WCTYPE_H __WCTYPE_H +#ifndef _WCTYPE_H +#define _WCTYPE_H _WCTYPE_H -// TODO: Documentation +#ifndef _NULL +#define _NULL _NULL +#include "__intern.h" +#endif /* _NULL */ -// ---------------------------------------------------------------------------- -// TYPEDEFS +/* TODO: Documentation */ -typedef wctrans_t; // TODO - personality? -typedef wctype_t; // TODO - personality? -typedef wint_t; // TODO - personality? +/* ---------------------------------------------------------------------------- + * TYPEDEFS + * --------------------------------------------------------------------------*/ -// ---------------------------------------------------------------------------- -// FUNCTIONS +#ifndef _WINT_T +#define _WINT_T _WINT_T +typedef __wint_t wint_t +#endif /* _WINT_T */ + +typedef wctrans_t; /* TODO - to __intern.h / __personality.h? */ +typedef wctype_t; /* TODO - to __intern.h / __personality.h? */ + +/* ---------------------------------------------------------------------------- + * FUNCTIONS + * --------------------------------------------------------------------------*/ int iswalnum( wint_t c ); int iswalpha( wint_t c ); @@ -43,4 +54,4 @@ wint_t towupper( wint_t c ); wctrans_t wctrans( const char * property ); wctype_t wctype( const char * property ); -#endif // __WCTYPE_H +#endif /* _WCTYPE_H */