Lines Matching refs:CHAR
31 # define CHAR wchar_t macro
38 # define CHAR char macro
44 typedef CHAR *(*proto_t) (const CHAR *, int);
45 CHAR *SIMPLE_STRRCHR (const CHAR *, int);
50 CHAR *
51 SIMPLE_STRRCHR (const CHAR *s, int c) in SIMPLE_STRRCHR()
53 const CHAR *ret = NULL; in SIMPLE_STRRCHR()
56 if (*s == (CHAR) c) in SIMPLE_STRRCHR()
59 return (CHAR *) (c == '\0' ? s : ret); in SIMPLE_STRRCHR()
63 do_one_test (impl_t *impl, const CHAR *s, int c, CHAR *exp_res) in do_one_test()
65 CHAR *res = CALL (impl, s, c); in do_one_test()
82 CHAR *result; in do_test()
83 CHAR *buf = (CHAR *) buf1; in do_test()
86 if ( (align + len) * sizeof (CHAR) >= page_size) in do_test()
104 result = (CHAR *) (buf + align + pos); in do_test()
107 result = (CHAR *) (buf + align + len); in do_test()
112 do_one_test (impl, (CHAR *) (buf + align), seek_char, result); in do_test()
120 CHAR *result; in do_random_tests()
125 align = random () & (63 / sizeof (CHAR)); in do_random_tests()
175 result = (CHAR *) (p + pos + align); in do_random_tests()
177 result = (CHAR *) (p + len + align); in do_random_tests()
182 if (CALL (impl, (CHAR *) (p + align), seek_char) != result) in do_random_tests()
186 CALL (impl, (CHAR *) (p + align), seek_char), result, p); in do_random_tests()