src/stdlib/SDL_stdlib.c
changeset 7357 9bd0b241c941
parent 7351 668a3dc28361
child 8033 8181c3a4a055
child 8478 337b5dc0797b
equal deleted inserted replaced
7356:d1a0bbe64f15 7357:9bd0b241c941
   180 int SDL_isspace(int x) { return isspace(x); }
   180 int SDL_isspace(int x) { return isspace(x); }
   181 int SDL_toupper(int x) { return toupper(x); }
   181 int SDL_toupper(int x) { return toupper(x); }
   182 int SDL_tolower(int x) { return tolower(x); }
   182 int SDL_tolower(int x) { return tolower(x); }
   183 #else
   183 #else
   184 int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); }
   184 int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); }
   185 int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n'); }
   185 int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n') || ((x) == '\f') || ((x) == '\v'); }
   186 int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)-'a')) : (x); }
   186 int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)-'a')) : (x); }
   187 int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) : (x); }
   187 int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) : (x); }
   188 #endif
   188 #endif
   189 
   189 
   190 
   190