Mercurial > vim
comparison src/structs.h @ 7712:bce3b5ddb393 v7.4.1154
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 23 19:46:28 2016 +0100
patch 7.4.1154
Problem: No support for JSON.
Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true,
v:null and v:none.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jan 2016 20:00:04 +0100 |
parents | 61354fabf8a2 |
children | 1a5d34492798 |
comparison
equal
deleted
inserted
replaced
7711:5fe266fb2a6e | 7712:bce3b5ddb393 |
---|---|
1136 #define VAR_STRING 2 /* "v_string" is used */ | 1136 #define VAR_STRING 2 /* "v_string" is used */ |
1137 #define VAR_FUNC 3 /* "v_string" is function name */ | 1137 #define VAR_FUNC 3 /* "v_string" is function name */ |
1138 #define VAR_LIST 4 /* "v_list" is used */ | 1138 #define VAR_LIST 4 /* "v_list" is used */ |
1139 #define VAR_DICT 5 /* "v_dict" is used */ | 1139 #define VAR_DICT 5 /* "v_dict" is used */ |
1140 #define VAR_FLOAT 6 /* "v_float" is used */ | 1140 #define VAR_FLOAT 6 /* "v_float" is used */ |
1141 #define VAR_SPECIAL 7 /* "v_number" is used */ | |
1141 | 1142 |
1142 /* Values for "dv_scope". */ | 1143 /* Values for "dv_scope". */ |
1143 #define VAR_SCOPE 1 /* a:, v:, s:, etc. scope dictionaries */ | 1144 #define VAR_SCOPE 1 /* a:, v:, s:, etc. scope dictionaries */ |
1144 #define VAR_DEF_SCOPE 2 /* l:, g: scope dictionaries: here funcrefs are not | 1145 #define VAR_DEF_SCOPE 2 /* l:, g: scope dictionaries: here funcrefs are not |
1145 allowed to mask existing functions */ | 1146 allowed to mask existing functions */ |
2680 typedef struct { | 2681 typedef struct { |
2681 UINT32_T total[2]; | 2682 UINT32_T total[2]; |
2682 UINT32_T state[8]; | 2683 UINT32_T state[8]; |
2683 char_u buffer[64]; | 2684 char_u buffer[64]; |
2684 } context_sha256_T; | 2685 } context_sha256_T; |
2686 | |
2687 /* | |
2688 * Structure used for reading in json_decode(). | |
2689 */ | |
2690 typedef struct | |
2691 { | |
2692 char_u *js_buf; /* text to be decoded */ | |
2693 char_u *js_end; /* NUL in js_buf when js_eof is FALSE */ | |
2694 int js_used; /* bytes used from js_buf */ | |
2695 int js_eof; /* when TRUE js_buf is all there is */ | |
2696 FILE *js_fd; /* file descriptor to read more from */ | |
2697 } js_read_T; |