#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <lua.h>
#include <lauxlib.h>
#include "nvim/lua/executor.h"
#include "lua_cjson.h"
#include "strbuf.h"
#include "fpconv.h"
Data Structures | |
struct | json_config_t |
struct | json_options_t |
struct | json_parse_t |
struct | json_token_t |
Macros | |
#define | CJSON_MODNAME "cjson" |
#define | CJSON_VERSION "2.1.0.9" |
#define | DEFAULT_SPARSE_CONVERT 0 |
#define | DEFAULT_SPARSE_RATIO 2 |
#define | DEFAULT_SPARSE_SAFE 10 |
#define | DEFAULT_ENCODE_MAX_DEPTH 1000 |
#define | DEFAULT_DECODE_MAX_DEPTH 1000 |
#define | DEFAULT_ENCODE_INVALID_NUMBERS 0 |
#define | DEFAULT_DECODE_INVALID_NUMBERS 1 |
#define | DEFAULT_ENCODE_KEEP_BUFFER 1 |
#define | DEFAULT_ENCODE_NUMBER_PRECISION 14 |
#define | DEFAULT_ENCODE_EMPTY_TABLE_AS_OBJECT 0 |
#define | DEFAULT_DECODE_ARRAY_WITH_ARRAY_MT 0 |
#define | DEFAULT_ENCODE_ESCAPE_FORWARD_SLASH 1 |
#define | json_lightudata_mask(ludata) (ludata) |
#define | json_verify_invalid_number_setting(l, s) do { } while(0) |
Enumerations | |
enum | json_token_type_t { T_OBJ_BEGIN, T_OBJ_END, T_ARR_BEGIN, T_ARR_END, T_STRING, T_NUMBER, T_BOOLEAN, T_NULL, T_COLON, T_COMMA, T_END, T_WHITESPACE, T_ERROR, T_UNKNOWN } |
Functions | |
int | lua_cjson_new (lua_State *l) |
int | luaopen_cjson (lua_State *l) |
int | luaopen_cjson_safe (lua_State *l) |
#define CJSON_MODNAME "cjson" |
#define CJSON_VERSION "2.1.0.9" |
#define DEFAULT_DECODE_ARRAY_WITH_ARRAY_MT 0 |
#define DEFAULT_DECODE_INVALID_NUMBERS 1 |
#define DEFAULT_DECODE_MAX_DEPTH 1000 |
#define DEFAULT_ENCODE_EMPTY_TABLE_AS_OBJECT 0 |
#define DEFAULT_ENCODE_ESCAPE_FORWARD_SLASH 1 |
#define DEFAULT_ENCODE_INVALID_NUMBERS 0 |
#define DEFAULT_ENCODE_KEEP_BUFFER 1 |
#define DEFAULT_ENCODE_MAX_DEPTH 1000 |
#define DEFAULT_ENCODE_NUMBER_PRECISION 14 |
#define DEFAULT_SPARSE_CONVERT 0 |
#define DEFAULT_SPARSE_RATIO 2 |
#define DEFAULT_SPARSE_SAFE 10 |
#define json_lightudata_mask | ( | ludata | ) | (ludata) |
enum json_token_type_t |
int lua_cjson_new | ( | lua_State * | l | ) |
int luaopen_cjson | ( | lua_State * | l | ) |
int luaopen_cjson_safe | ( | lua_State * | l | ) |