Lines Matching refs:retval
139 int retval; in main() local
152 retval = mbtowc(&wchar, first[0], MAX_BYTES); in main()
153 if (retval == 0) in main()
160 retval = mbtowc (&wchar, first[i-1], MAX_BYTES); in main()
161 if (retval == i) in main()
170 retval = mbtowc (&wchar, last[i-1], MAX_BYTES); in main()
171 if (retval == i) in main()
180 retval = mbtowc (&wchar, boundary[i-1], MAX_BYTES); in main()
181 if ((i < 4 && retval == 3) || (i > 3 && retval == 4)) in main()
189 retval = mbtowc (&wchar, continuation_bytes[0], MAX_BYTES); in main()
190 if (retval == 1) in main()
195 retval = mbtowc (&wchar, continuation_bytes[1], MAX_BYTES); in main()
196 if (retval == 1) in main()
203 retval = num_invalid(continuation_bytes[i], i); in main()
204 if (retval == -1) in main()
207 printf("3.1.%d: %d Invalid\n", i+1, retval); in main()
213 retval = num_invalid(all_continuation_bytes, 0xc0 - 0x80); in main()
214 if (retval == -1) in main()
217 printf("3.1.9: %d Invalid\n", retval); in main()
223 retval = num_invalid(all_two_byte_seq, 0xe0 - 0xc0); in main()
224 if (retval == -1) in main()
227 printf("3.2.1: %d Invalid\n", retval); in main()
232 retval = num_invalid(all_three_byte_seq, 0xf0 - 0xe0); in main()
233 if (retval == -1) in main()
236 printf("3.2.2: %d Invalid\n", retval); in main()
241 retval = num_invalid(all_four_byte_seq, 0xf8 - 0xf0); in main()
242 if (retval == -1) in main()
245 printf("3.2.3: %d Invalid\n", retval); in main()
250 retval = num_invalid(all_five_byte_seq, 0xfc - 0xf8); in main()
251 if (retval == -1) in main()
254 printf("3.2.4: %d Invalid\n", retval); in main()
259 retval = num_invalid(all_six_byte_seq, 0xfe - 0xfc); in main()
260 if (retval == -1) in main()
263 printf("3.2.5: %d Invalid\n", retval); in main()
268 retval = mbtowc(&wchar, incomplete_seq[i-1], i); in main()
269 if(retval == -1) in main()
277 retval = mbtowc(&wchar, incomplete_seq[i-1], i - 5); in main()
278 if(retval == -1) in main()
289 retval = mbtowc(&wchar, impossible_bytes[0], 1); in main()
290 if(retval == -1) in main()
295 retval = mbtowc(&wchar, impossible_bytes[1], 1); in main()
296 if(retval == -1) in main()
301 retval = mbtowc(&wchar, impossible_bytes[2], 4); in main()
302 if(retval == -1) in main()
311 retval = mbtowc(&wchar, overlong[i-2], i); in main()
312 if(retval == -1) in main()
321 retval = mbtowc(&wchar, overlong_max[i-2], i); in main()
322 if(retval == -1) in main()
331 retval = mbtowc(&wchar, overlong_nul[i-2], i); in main()
332 if(retval == -1) in main()
342 retval = mbtowc(&wchar, single_surrogates[i-1], 3); in main()
343 if(retval == -1) in main()
352 retval = mbtowc(&wchar, paired_surrogates[i-1], 6); in main()
353 if(retval == -1) in main()
360 retval = mbtowc(&wchar, illegal_pos[0], 3); in main()
361 if(retval == -1) in main()
366 retval = mbtowc(&wchar, illegal_pos[1], 3); in main()
367 if(retval == -1) in main()
380 int retval = 0; in num_invalid() local
390 retval = mbtowc (&wchar, t, len - i); in num_invalid()
391 if(retval == -1) in num_invalid()