Show
Ignore:
Timestamp:
09/07/11 21:19:46 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1315430386 -0400
git-parent:

[fd806572060400af50d983bcef55dd90a6c39bde]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1315430386 -0400
Message:

provide overflow detection and recover for json_objects and leverage that in the lua stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/json-lib/json_object_private.h

    refa9375 rf632f7d  
    1717#endif 
    1818 
     19#include <stdint.h> 
     20 
    1921typedef void (json_object_delete_fn)(struct json_object *o); 
    2022typedef int (json_object_to_json_string_fn)(struct json_object *o, 
     
    2426{ 
    2527  enum json_type o_type; 
     28  enum json_int_overflow o_ioverflow; 
    2629  json_object_delete_fn *_delete; 
    2730  json_object_to_json_string_fn *_to_json_string; 
     
    3639    char *c_string; 
    3740  } o; 
     41  union { 
     42    u_int64_t c_uint64; 
     43    int64_t c_int64; 
     44  } overflow; 
    3845}; 
    3946