On Sun, Jul 15, 2018 at 4:00 PM,  <minf...@apache.org> wrote:
>
> ==============================================================================
> --- apr/apr/trunk/include/apr_json.h (original)
> +++ apr/apr/trunk/include/apr_json.h Sun Jul 15 14:00:04 2018
> @@ -101,8 +101,8 @@ typedef enum apr_json_type_e {
>  typedef struct apr_json_string_t {
>      /** pointer to the string */
>      const char *p;
> -    /** string length */
> -    apr_size_t len;
> +    /** string length, or APR_JSON_VALUE_STRING to compute length 
> automatically */
> +    apr_ssize_t len;
>  } apr_json_string_t;

Can an apr_json_string_t have APR_JSON_VALUE_STRING in its 'len' field?
I suppose apr_json_string_create() can take APR_JSON_VALUE_STRING to
compute the length by itself, but finally each constructed or parsed
apr_json_string_t should have the real 'len' right?

Regards,
Yann.

Reply via email to