1/*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3 *
4 * FILE: dat_isw-funcs.h
5 *
6 * ISW*: int isw* (wint_t wc);
7 */
8
9#include <errno.h>
10#include <stdlib.h>
11#include <wctype.h>
12#include "tst_types.h"
13#include "tgn_locdef.h"
14
15#define TST_ISW_LOC(FUNC, func) \
16 TST_ISW## FUNC tst_isw## func ##_loc []
17
18#define TST_ISW_REC(locale, func) \
19 { Tisw## func, TST_LOC_## locale },
20
21/*
22 * NOTE:
23 * Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
24 * Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
25 *
26 * Since the functions return *non*-zero value for TRUE, can't
27 * compare an actual return value with an expected return value.
28 * Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
29 * the non-zero value.
30 *
31 * { { WEOF }, { 0,1,0 } },
32 * | |
33 * | ret_val: an expected return value
34 * ret_flg: if 1, compare an actual return value with the
35 * ret_val; if 0, the test program
36 * checks the actual return value.
37 */
38

source code of glibc/localedata/tests-mbwc/dat_isw-funcs.h