fix line endings
This commit is contained in:
parent
90f04e3c3c
commit
c2bcc926c5
|
@ -34,15 +34,15 @@ static int cJSON_strcasecmp(const char *s1,const char *s2)
|
||||||
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
|
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *glue_malloc(size_t theSize)
|
static void *glue_malloc(size_t theSize)
|
||||||
{
|
{
|
||||||
return(malloc(theSize));
|
return(malloc(theSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue_free(void *thePtr)
|
static void glue_free(void *thePtr)
|
||||||
{
|
{
|
||||||
free(thePtr);
|
free(thePtr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
|
static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
|
||||||
static void (*cJSON_free)(void *ptr) = glue_free;
|
static void (*cJSON_free)(void *ptr) = glue_free;
|
||||||
|
|
|
@ -33,15 +33,15 @@ static int cJSON_strcasecmp(const char *s1,const char *s2)
|
||||||
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
|
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *glue_malloc(size_t theSize)
|
static void *glue_malloc(size_t theSize)
|
||||||
{
|
{
|
||||||
return(malloc(theSize));
|
return(malloc(theSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue_free(void *thePtr)
|
static void glue_free(void *thePtr)
|
||||||
{
|
{
|
||||||
free(thePtr);
|
free(thePtr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
|
static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
|
||||||
static void (*cJSON_free)(void *ptr) = glue_free;
|
static void (*cJSON_free)(void *ptr) = glue_free;
|
||||||
|
|
Loading…
Reference in New Issue