comparison src/vim9execute.c @ 19342:8ff84bc1c89b v8.2.0229

patch 8.2.0229: compare instructions not tested Commit: https://github.com/vim/vim/commit/f2460a3aec89e70d4bab8d2369ee3f78cc43f09a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 7 22:09:54 2020 +0100 patch 8.2.0229: compare instructions not tested Problem: Compare instructions not tested. Solution: Add test cases. Fix disassemble with line continuation.
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Feb 2020 22:15:03 +0100
parents 61646c189622
children e4b326c9424a
comparison
equal deleted inserted replaced
19341:c8b2ecaca20e 19342:8ff84bc1c89b
1620 dfunc = ((dfunc_T *)def_functions.ga_data) + ufunc->uf_dfunc_idx; 1620 dfunc = ((dfunc_T *)def_functions.ga_data) + ufunc->uf_dfunc_idx;
1621 instr = dfunc->df_instr; 1621 instr = dfunc->df_instr;
1622 for (current = 0; current < dfunc->df_instr_count; ++current) 1622 for (current = 0; current < dfunc->df_instr_count; ++current)
1623 { 1623 {
1624 isn_T *iptr = &instr[current]; 1624 isn_T *iptr = &instr[current];
1625 char *line;
1625 1626
1626 while (line_idx < iptr->isn_lnum && line_idx < ufunc->uf_lines.ga_len) 1627 while (line_idx < iptr->isn_lnum && line_idx < ufunc->uf_lines.ga_len)
1627 { 1628 {
1628 if (current > prev_current) 1629 if (current > prev_current)
1629 { 1630 {
1630 msg_puts("\n\n"); 1631 msg_puts("\n\n");
1631 prev_current = current; 1632 prev_current = current;
1632 } 1633 }
1633 msg(((char **)ufunc->uf_lines.ga_data)[line_idx++]); 1634 line = ((char **)ufunc->uf_lines.ga_data)[line_idx++];
1635 if (line != NULL)
1636 msg(line);
1634 } 1637 }
1635 1638
1636 switch (iptr->isn_type) 1639 switch (iptr->isn_type)
1637 { 1640 {
1638 case ISN_EXEC: 1641 case ISN_EXEC: