Diff for /libelwix/inc/elwix/ajson.h between versions 1.9.2.2 and 1.11

version 1.9.2.2, 2025/08/25 12:44:59 version 1.11, 2026/03/31 15:29:12
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2025Copyright 2004 - 2026
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 132  unsigned int json_parse(json_t * __restrict json, cons Line 132  unsigned int json_parse(json_t * __restrict json, cons
  */   */
 ait_val_t *json_token2val(const char *jstr, jtok_t * __restrict tok);  ait_val_t *json_token2val(const char *jstr, jtok_t * __restrict tok);
 /*  /*
    * json_token2rstr() - Return token to raw string
    *
    * @jstr = JSON string
    * @tok = Token for convert
    * @return =NULL error or !=NULL allocated str, after use should be json_freestr()|e_free()
    */
   char *json_token2rstr(const char *jstr, jtok_t * __restrict tok);
   /*
  * json_token2str() - Return token to string   * json_token2str() - Return token to string
  *   *
  * @jstr = JSON string   * @jstr = JSON string
Line 183  array_t *json_token2vars(const char *jstr, jtok_t * __ Line 191  array_t *json_token2vars(const char *jstr, jtok_t * __
  *              after use should be json_freearray()   *              after use should be json_freearray()
  */   */
 array_t *json_token2array(const char *jstr, jtok_t * __restrict tok);  array_t *json_token2array(const char *jstr, jtok_t * __restrict tok);
#define json_freearray(x)      do { \/*
                                        assert((x)); \ * json_freearray() - Free & destroy allocated array from json_token2array function
                                        array_Free(*(x)); \ *
                                        array_Destroy((x)); \ * @parr = Array
                                } while(0) * return -1 error or 0 ok
  */
 int json_freearray(array_t **parr);
   
   
 /*  /*

Removed from v.1.9.2.2  
changed lines
  Added in v.1.11


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