Fixed SDL's implementation of isspace() to check form feed and vertical tab.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 06 Jul 2013 16:05:09 +0200
changeset 73579bd0b241c941
parent 7356 d1a0bbe64f15
child 7358 1aadd7170248
Fixed SDL's implementation of isspace() to check form feed and vertical tab.
src/stdlib/SDL_stdlib.c
     1.1 --- a/src/stdlib/SDL_stdlib.c	Sat Jul 06 15:56:06 2013 +0200
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Sat Jul 06 16:05:09 2013 +0200
     1.3 @@ -182,7 +182,7 @@
     1.4  int SDL_tolower(int x) { return tolower(x); }
     1.5  #else
     1.6  int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); }
     1.7 -int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n'); }
     1.8 +int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n') || ((x) == '\f') || ((x) == '\v'); }
     1.9  int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)-'a')) : (x); }
    1.10  int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) : (x); }
    1.11  #endif