Mercurial > sdl-ios-xcode
comparison src/stdlib/SDL_iconv.c @ 1510:720f8bb49d7d
Win32 fixes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 02:06:33 +0000 |
parents | 5e4dad24a5de |
children | 13a3520a13f9 |
comparison
equal
deleted
inserted
replaced
1509:678d105d4492 | 1510:720f8bb49d7d |
---|---|
399 break; | 399 break; |
400 } | 400 } |
401 if ( srclen < 2 ) { | 401 if ( srclen < 2 ) { |
402 return SDL_ICONV_EINVAL; | 402 return SDL_ICONV_EINVAL; |
403 } | 403 } |
404 p = src; | 404 p = (Uint8 *)src; |
405 W2 = ((Uint32)p[0] << 8) | | 405 W2 = ((Uint32)p[0] << 8) | |
406 (Uint32)p[1]; | 406 (Uint32)p[1]; |
407 src += 2; | 407 src += 2; |
408 srclen -= 2; | 408 srclen -= 2; |
409 if ( W2 < 0xDC00 || W2 > 0xDFFF ) { | 409 if ( W2 < 0xDC00 || W2 > 0xDFFF ) { |
440 break; | 440 break; |
441 } | 441 } |
442 if ( srclen < 2 ) { | 442 if ( srclen < 2 ) { |
443 return SDL_ICONV_EINVAL; | 443 return SDL_ICONV_EINVAL; |
444 } | 444 } |
445 p = src; | 445 p = (Uint8 *)src; |
446 W2 = ((Uint32)p[1] << 8) | | 446 W2 = ((Uint32)p[1] << 8) | |
447 (Uint32)p[0]; | 447 (Uint32)p[0]; |
448 src += 2; | 448 src += 2; |
449 srclen -= 2; | 449 srclen -= 2; |
450 if ( W2 < 0xDC00 || W2 > 0xDFFF ) { | 450 if ( W2 < 0xDC00 || W2 > 0xDFFF ) { |