Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed SDL's implementation of isspace() to check form feed and vertic…

…al tab.
  • Loading branch information
philippwiesemann committed Jul 6, 2013
1 parent 4aee6f4 commit 7e628b7aab01fa115c6998c8e6dbb2275dfffc21
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stdlib/SDL_stdlib.c
@@ -182,7 +182,7 @@ int SDL_toupper(int x) { return toupper(x); }
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

0 comments on commit 7e628b7

Please sign in to comment.