comparison src/json.c @ 7791:6f81cf49da14 v7.4.1192

commit https://github.com/vim/vim/commit/fa06a517b5d5e37f40ab7c884bd334f089988fac Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 28 22:46:58 2016 +0100 patch 7.4.1192 Problem: Can't build with FEAT_EVAL but without FEAT_MBYTE. (John Marriott) Solution: Add #ifdef for FEAT_MBYTE.
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jan 2016 23:00:04 +0100
parents 3a99194bd187
children 6b0891de44a9
comparison
equal deleted inserted replaced
7790:ca19726d5e83 7791:6f81cf49da14
66 ga_append(gap, c); 66 ga_append(gap, c);
67 break; 67 break;
68 default: 68 default:
69 if (c >= 0x20) 69 if (c >= 0x20)
70 { 70 {
71 #ifdef FEAT_MBYTE
71 numbuf[mb_char2bytes(c, numbuf)] = NUL; 72 numbuf[mb_char2bytes(c, numbuf)] = NUL;
73 #else
74 numbuf[0] = c;
75 numbuf[1] = NUL;
76 #endif
72 ga_concat(gap, numbuf); 77 ga_concat(gap, numbuf);
73 } 78 }
74 else 79 else
75 { 80 {
76 vim_snprintf((char *)numbuf, NUMBUFLEN, 81 vim_snprintf((char *)numbuf, NUMBUFLEN,