comparison src/libvterm/src/parser.c @ 11761:7846efd291d7 v8.0.0763

patch 8.0.0763: libvterm can be improved commit https://github.com/vim/vim/commit/9cc5f75932b10f611d8b3f444d025053f9dbcab1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 23 22:07:27 2017 +0200 patch 8.0.0763: libvterm can be improved Problem: Libvterm can be improved. Solution: Various small improvements, more comments.
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Jul 2017 22:15:05 +0200
parents b8299e742f41
children 9f857e6310b6
comparison
equal deleted inserted replaced
11760:0899182defdb 11761:7846efd291d7
188 } 188 }
189 189
190 size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len) 190 size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len)
191 { 191 {
192 size_t pos = 0; 192 size_t pos = 0;
193 const char *string_start; 193 const char *string_start = NULL; /* init to avoid gcc warning */
194 194
195 switch(vt->parser_state) { 195 switch(vt->parser_state) {
196 case NORMAL: 196 case NORMAL:
197 string_start = NULL; 197 string_start = NULL;
198 break; 198 break;