Diff for /embedaddon/iperf/src/cjson.h between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2021/03/17 00:36:46 version 1.1.1.3, 2023/09/27 11:14:54
Line 19 Line 19
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   THE SOFTWARE.    THE SOFTWARE.
 */  */
 #include "iperf_config.h"  
   
 #ifndef cJSON__h  #ifndef cJSON__h
 #define cJSON__h  #define cJSON__h
Line 86  then using the CJSON_API_VISIBILITY flag to "export" t Line 85  then using the CJSON_API_VISIBILITY flag to "export" t
 /* project version */  /* project version */
 #define CJSON_VERSION_MAJOR 1  #define CJSON_VERSION_MAJOR 1
 #define CJSON_VERSION_MINOR 7  #define CJSON_VERSION_MINOR 7
#define CJSON_VERSION_PATCH 13#define CJSON_VERSION_PATCH 15
   
 #include <stddef.h>  #include <stddef.h>
   
Line 181  CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJS Line 180  CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJS
 CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void);  CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void);
   
 /* Check item type and return its value */  /* Check item type and return its value */
CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item);CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item);
CJSON_PUBLIC(double) cJSON_GetNumberValue(cJSON *item);CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item);
   
 /* These functions check the type of an item */  /* These functions check the type of an item */
 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item);  CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item);
Line 261  CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * c Line 260  CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * c
   
 /* Minify a strings, remove blank characters(such as ' ', '\t', '\r', '\n') from strings.  /* Minify a strings, remove blank characters(such as ' ', '\t', '\r', '\n') from strings.
  * The input pointer json cannot point to a read-only address area, such as a string constant,    * The input pointer json cannot point to a read-only address area, such as a string constant, 
 * but should point to a readable and writable adress area. */ * but should point to a readable and writable address area. */
 CJSON_PUBLIC(void) cJSON_Minify(char *json);  CJSON_PUBLIC(void) cJSON_Minify(char *json);
   
 /* Helper functions for creating and adding items to an object at the same time.  /* Helper functions for creating and adding items to an object at the same time.
Line 283  CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *obje Line 282  CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *obje
 #define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))  #define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))
 /* Change the valuestring of a cJSON_String object, only takes effect when type of object is cJSON_String */  /* Change the valuestring of a cJSON_String object, only takes effect when type of object is cJSON_String */
 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring);  CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring);
   
   /* If the object is not a boolean type this does nothing and returns cJSON_Invalid else it returns the new type*/
   #define cJSON_SetBoolValue(object, boolValue) ( \
       (object != NULL && ((object)->type & (cJSON_False|cJSON_True))) ? \
       (object)->type=((object)->type &(~(cJSON_False|cJSON_True)))|((boolValue)?cJSON_True:cJSON_False) : \
       cJSON_Invalid\
   )
   
 /* Macro for iterating over an array or object */  /* Macro for iterating over an array or object */
 #define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)  #define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>