comparison src/json.c @ 17474:f8c197962c1e v8.1.1735

patch 8.1.1735: can't build with tiny features commit https://github.com/vim/vim/commit/c61a48d25995e5ee2a3813f64c531b91bb23e9b9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 22 23:16:33 2019 +0200 patch 8.1.1735: can't build with tiny features Problem: Can't build with tiny features. Solution: Add missing #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Jul 2019 23:30:05 +0200
parents dfd87ef822aa
children 0f7ae8010787
comparison
equal deleted inserted replaced
17473:466973ba4e87 17474:f8c197962c1e
1124 json_skip_white(reader); 1124 json_skip_white(reader);
1125 ret = json_decode_item(reader, NULL, options); 1125 ret = json_decode_item(reader, NULL, options);
1126 reader->js_used = used_save; 1126 reader->js_used = used_save;
1127 return ret; 1127 return ret;
1128 } 1128 }
1129 #endif
1130 1129
1131 /* 1130 /*
1132 * "js_decode()" function 1131 * "js_decode()" function
1133 */ 1132 */
1134 void 1133 void
1174 f_json_encode(typval_T *argvars, typval_T *rettv) 1173 f_json_encode(typval_T *argvars, typval_T *rettv)
1175 { 1174 {
1176 rettv->v_type = VAR_STRING; 1175 rettv->v_type = VAR_STRING;
1177 rettv->vval.v_string = json_encode(&argvars[0], 0); 1176 rettv->vval.v_string = json_encode(&argvars[0], 0);
1178 } 1177 }
1178 #endif