File: dat_isw-funcs.h

package info (click to toggle)
glibc 2.24-11%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 225,316 kB
  • sloc: ansic: 996,116; asm: 261,826; sh: 10,483; makefile: 9,849; cpp: 4,169; python: 3,971; perl: 2,254; awk: 1,753; pascal: 1,521; yacc: 291; sed: 80
file content (37 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (46)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
 *
 *	 FILE:	dat_isw-funcs.h
 *
 *	 ISW*:	int isw* (wint_t wc);
 */

#include <errno.h>
#include <stdlib.h>
#include <wctype.h>
#include "tst_types.h"
#include "tgn_locdef.h"

#define TST_ISW_LOC(FUNC, func) \
	TST_ISW## FUNC	  tst_isw## func ##_loc []

#define TST_ISW_REC(locale, func) \
	{  Tisw## func,	   TST_LOC_## locale  },

/*
 *  NOTE:
 *    Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
 *    Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
 *
 *    Since the functions return *non*-zero value for TRUE, can't
 *    compare an actual return value with an expected return value.
 *    Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
 *    the non-zero value.
 *
 *    { { WEOF }, { 0,1,0 } },
 *		      | |
 *		      | ret_val: an expected return value
 *		      ret_flg: if 1, compare an actual return value with the
 *			       ret_val; if 0, the test program
 *			       checks the actual return value.
 */