| 38 | ESL_DECLARE(const char *)cJSON_GetErrorPtr(void) {return ep;} |
| 39 | |
| 40 | static int cJSON_strcasecmp(const char *s1,const char *s2) |
| 41 | { |
| 42 | if (!s1) |
| 43 | return (s1==s2)?0:1; |
| 44 | if (!s2) |
| 45 | return 1; |
| 46 | for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2) if(*s1 == 0) return 0; |
| 47 | return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2); |
| 48 | } |
| 49 | |
| 50 | static void *glue_malloc(size_t theSize) |
| 51 | { |
no outgoing calls
no test coverage detected