Whitespace formatting changes: line up macro bodies, function names,
place tabs after #define and typedef. Sort typedefs by name. Requested by: mike
This commit is contained in:
parent
71a63bac1b
commit
9a1a792488
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101409
@ -73,31 +73,31 @@
|
|||||||
#define NULL 0
|
#define NULL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#ifdef _BSD_WCHAR_T_
|
|
||||||
typedef _BSD_WCHAR_T_ wchar_t;
|
|
||||||
#undef _BSD_WCHAR_T_
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _BSD_MBSTATE_T_
|
#ifdef _BSD_MBSTATE_T_
|
||||||
typedef _BSD_MBSTATE_T_ mbstate_t;
|
typedef _BSD_MBSTATE_T_ mbstate_t;
|
||||||
#undef _BSD_MBSTATE_T_
|
#undef _BSD_MBSTATE_T_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _BSD_WINT_T_
|
|
||||||
typedef _BSD_WINT_T_ wint_t;
|
|
||||||
#undef _BSD_WINT_T_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _BSD_SIZE_T_
|
#ifdef _BSD_SIZE_T_
|
||||||
typedef _BSD_SIZE_T_ size_t;
|
typedef _BSD_SIZE_T_ size_t;
|
||||||
#undef _BSD_SIZE_T_
|
#undef _BSD_SIZE_T_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#ifdef _BSD_WCHAR_T_
|
||||||
|
typedef _BSD_WCHAR_T_ wchar_t;
|
||||||
|
#undef _BSD_WCHAR_T_
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _WCTYPE_T
|
#ifndef _WCTYPE_T
|
||||||
typedef unsigned long wctype_t;
|
typedef unsigned long wctype_t;
|
||||||
#define _WCTYPE_T
|
#define _WCTYPE_T
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _BSD_WINT_T_
|
||||||
|
typedef _BSD_WINT_T_ wint_t;
|
||||||
|
#undef _BSD_WINT_T_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WEOF
|
#ifndef WEOF
|
||||||
|
@ -36,19 +36,19 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef _BSD_WINT_T_
|
|
||||||
typedef _BSD_WINT_T_ wint_t;
|
|
||||||
#undef _BSD_WINT_T_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _WCTRANS_T
|
#ifndef _WCTRANS_T
|
||||||
typedef int wctrans_t;
|
typedef int wctrans_t;
|
||||||
#define _WCTRANS_T
|
#define _WCTRANS_T
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WCTYPE_T
|
#ifndef _WCTYPE_T
|
||||||
typedef unsigned long wctype_t;
|
typedef unsigned long wctype_t;
|
||||||
#define _WCTYPE_T
|
#define _WCTYPE_T
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _BSD_WINT_T_
|
||||||
|
typedef _BSD_WINT_T_ wint_t;
|
||||||
|
#undef _BSD_WINT_T_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WEOF
|
#ifndef WEOF
|
||||||
@ -72,8 +72,10 @@ int iswxdigit(wint_t);
|
|||||||
wint_t towctrans(wint_t, wctrans_t);
|
wint_t towctrans(wint_t, wctrans_t);
|
||||||
wint_t towlower(wint_t);
|
wint_t towlower(wint_t);
|
||||||
wint_t towupper(wint_t);
|
wint_t towupper(wint_t);
|
||||||
wctrans_t wctrans(const char *);
|
wctrans_t
|
||||||
wctype_t wctype(const char *);
|
wctrans(const char *);
|
||||||
|
wctype_t
|
||||||
|
wctype(const char *);
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
wint_t iswascii(wint_t);
|
wint_t iswascii(wint_t);
|
||||||
@ -86,30 +88,30 @@ wint_t iswspecial(wint_t);
|
|||||||
#endif
|
#endif
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D)
|
#define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D)
|
||||||
#define iswalpha(wc) __istype((wc), _CTYPE_A)
|
#define iswalpha(wc) __istype((wc), _CTYPE_A)
|
||||||
#define iswblank(wc) __istype((wc), _CTYPE_B)
|
#define iswblank(wc) __istype((wc), _CTYPE_B)
|
||||||
#define iswcntrl(wc) __istype((wc), _CTYPE_C)
|
#define iswcntrl(wc) __istype((wc), _CTYPE_C)
|
||||||
#define iswctype(wc, charclass) __istype((wc), (charclass))
|
#define iswctype(wc, charclass) __istype((wc), (charclass))
|
||||||
#define iswdigit(wc) __istype((wc), _CTYPE_D)
|
#define iswdigit(wc) __istype((wc), _CTYPE_D)
|
||||||
#define iswgraph(wc) __istype((wc), _CTYPE_G)
|
#define iswgraph(wc) __istype((wc), _CTYPE_G)
|
||||||
#define iswlower(wc) __istype((wc), _CTYPE_L)
|
#define iswlower(wc) __istype((wc), _CTYPE_L)
|
||||||
#define iswprint(wc) __istype((wc), _CTYPE_R)
|
#define iswprint(wc) __istype((wc), _CTYPE_R)
|
||||||
#define iswpunct(wc) __istype((wc), _CTYPE_P)
|
#define iswpunct(wc) __istype((wc), _CTYPE_P)
|
||||||
#define iswspace(wc) __istype((wc), _CTYPE_S)
|
#define iswspace(wc) __istype((wc), _CTYPE_S)
|
||||||
#define iswupper(wc) __istype((wc), _CTYPE_U)
|
#define iswupper(wc) __istype((wc), _CTYPE_U)
|
||||||
#define iswxdigit(wc) __istype((wc), _CTYPE_X)
|
#define iswxdigit(wc) __istype((wc), _CTYPE_X)
|
||||||
#define towlower(wc) __tolower(wc)
|
#define towlower(wc) __tolower(wc)
|
||||||
#define towupper(wc) __toupper(wc)
|
#define towupper(wc) __toupper(wc)
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
#define iswascii(wc) (((wc) & ~0x7F) == 0)
|
#define iswascii(wc) (((wc) & ~0x7F) == 0)
|
||||||
#define iswhexnumber(wc) __istype((wc), _CTYPE_X)
|
#define iswhexnumber(wc) __istype((wc), _CTYPE_X)
|
||||||
#define iswideogram(wc) __istype((wc), _CTYPE_I)
|
#define iswideogram(wc) __istype((wc), _CTYPE_I)
|
||||||
#define iswnumber(wc) __istype((wc), _CTYPE_D)
|
#define iswnumber(wc) __istype((wc), _CTYPE_D)
|
||||||
#define iswphonogram(wc) __istype((wc), _CTYPE_Q)
|
#define iswphonogram(wc) __istype((wc), _CTYPE_Q)
|
||||||
#define iswrune(wc) __istype((wc), 0xFFFFFF00L)
|
#define iswrune(wc) __istype((wc), 0xFFFFFF00L)
|
||||||
#define iswspecial(wc) __istype((wc), _CTYPE_T)
|
#define iswspecial(wc) __istype((wc), _CTYPE_T)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _WCTYPE_H_ */
|
#endif /* _WCTYPE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user