Mercurial > vim
comparison src/json.c @ 8304:097886a3379b v7.4.1444
commit https://github.com/vim/vim/commit/0f526f5652e0a5432493b3f2a1cb34ab99a9da0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 22:59:41 2016 +0100
patch 7.4.1444
Problem: Can't build with JSON but without multi-byte.
Solution: Fix pointer name.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 23:00:04 +0100 |
parents | 18fd94bd4eb8 |
children | 7fcf3f6020c1 |
comparison
equal
deleted
inserted
replaced
8303:88207f4b861a | 8304:097886a3379b |
---|---|
99 int c; | 99 int c; |
100 #ifdef FEAT_MBYTE | 100 #ifdef FEAT_MBYTE |
101 /* always use utf-8 encoding, ignore 'encoding' */ | 101 /* always use utf-8 encoding, ignore 'encoding' */ |
102 c = utf_ptr2char(res); | 102 c = utf_ptr2char(res); |
103 #else | 103 #else |
104 c = (int)*(p); | 104 c = *res; |
105 #endif | 105 #endif |
106 | 106 |
107 switch (c) | 107 switch (c) |
108 { | 108 { |
109 case 0x08: | 109 case 0x08: |
140 } | 140 } |
141 } | 141 } |
142 #ifdef FEAT_MBYTE | 142 #ifdef FEAT_MBYTE |
143 res += utf_ptr2len(res); | 143 res += utf_ptr2len(res); |
144 #else | 144 #else |
145 ++p; | 145 ++res; |
146 #endif | 146 #endif |
147 } | 147 } |
148 ga_append(gap, '"'); | 148 ga_append(gap, '"'); |
149 #if defined(FEAT_MBYTE) && defined(USE_ICONV) | 149 #if defined(FEAT_MBYTE) && defined(USE_ICONV) |
150 vim_free(converted); | 150 vim_free(converted); |