Blame localedata/tests-mbwc/dat_isw-funcs.h

Packit 6c4009
/*
Packit 6c4009
 *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
Packit 6c4009
 *
Packit 6c4009
 *	 FILE:	dat_isw-funcs.h
Packit 6c4009
 *
Packit 6c4009
 *	 ISW*:	int isw* (wint_t wc);
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#include <errno.h>
Packit 6c4009
#include <stdlib.h>
Packit 6c4009
#include <wctype.h>
Packit 6c4009
#include "tst_types.h"
Packit 6c4009
#include "tgn_locdef.h"
Packit 6c4009
Packit 6c4009
#define TST_ISW_LOC(FUNC, func) \
Packit 6c4009
	TST_ISW## FUNC	  tst_isw## func ##_loc []
Packit 6c4009
Packit 6c4009
#define TST_ISW_REC(locale, func) \
Packit 6c4009
	{  Tisw## func,	   TST_LOC_## locale  },
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 *  NOTE:
Packit 6c4009
 *    Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
Packit 6c4009
 *    Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
Packit 6c4009
 *
Packit 6c4009
 *    Since the functions return *non*-zero value for TRUE, can't
Packit 6c4009
 *    compare an actual return value with an expected return value.
Packit 6c4009
 *    Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
Packit 6c4009
 *    the non-zero value.
Packit 6c4009
 *
Packit 6c4009
 *    { { WEOF }, { 0,1,0 } },
Packit 6c4009
 *		      | |
Packit 6c4009
 *		      | ret_val: an expected return value
Packit 6c4009
 *		      ret_flg: if 1, compare an actual return value with the
Packit 6c4009
 *			       ret_val; if 0, the test program
Packit 6c4009
 *			       checks the actual return value.
Packit 6c4009
 */