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 7357 9bd0b241c941
parent 7356 d1a0bbe64f15
child 7358 1aadd7170248
Fixed SDL's implementation of isspace() to check form feed and vertical tab.
src/stdlib/SDL_stdlib.c
--- a/src/stdlib/SDL_stdlib.c	Sat Jul 06 15:56:06 2013 +0200
+++ b/src/stdlib/SDL_stdlib.c	Sat Jul 06 16:05:09 2013 +0200
@@ -182,7 +182,7 @@
 int SDL_tolower(int x) { return tolower(x); }
 #else
 int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); }
-int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n'); }
+int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n') || ((x) == '\f') || ((x) == '\v'); }
 int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)-'a')) : (x); }
 int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) : (x); }
 #endif