Mercurial > vim
comparison src/vim9compile.c @ 19597:1098989a90ee v8.2.0355
patch 8.2.0355: Vim9: str_val is confusing, it's a number
Commit: https://github.com/vim/vim/commit/a471eeae75cda982bb6ddffbb0cbb71d868b97bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 4 22:20:26 2020 +0100
patch 8.2.0355: Vim9: str_val is confusing, it's a number
Problem: Vim9: str_val is confusing, it's a number
Solution: Rename to stnr_val.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Mar 2020 22:30:04 +0100 |
parents | e61dc51ab9b4 |
children | 2fee087c94cb |
comparison
equal
deleted
inserted
replaced
19596:6062a2b5ecaf | 19597:1098989a90ee |
---|---|
771 isn_T *isn; | 771 isn_T *isn; |
772 | 772 |
773 RETURN_OK_IF_SKIP(cctx); | 773 RETURN_OK_IF_SKIP(cctx); |
774 if ((isn = generate_instr(cctx, ISN_STORENR)) == NULL) | 774 if ((isn = generate_instr(cctx, ISN_STORENR)) == NULL) |
775 return FAIL; | 775 return FAIL; |
776 isn->isn_arg.storenr.str_idx = idx; | 776 isn->isn_arg.storenr.stnr_idx = idx; |
777 isn->isn_arg.storenr.str_val = value; | 777 isn->isn_arg.storenr.stnr_val = value; |
778 | 778 |
779 return OK; | 779 return OK; |
780 } | 780 } |
781 | 781 |
782 /* | 782 /* |
3787 { | 3787 { |
3788 varnumber_T val = isn->isn_arg.number; | 3788 varnumber_T val = isn->isn_arg.number; |
3789 garray_T *stack = &cctx->ctx_type_stack; | 3789 garray_T *stack = &cctx->ctx_type_stack; |
3790 | 3790 |
3791 isn->isn_type = ISN_STORENR; | 3791 isn->isn_type = ISN_STORENR; |
3792 isn->isn_arg.storenr.str_idx = idx; | 3792 isn->isn_arg.storenr.stnr_idx = idx; |
3793 isn->isn_arg.storenr.str_val = val; | 3793 isn->isn_arg.storenr.stnr_val = val; |
3794 if (stack->ga_len > 0) | 3794 if (stack->ga_len > 0) |
3795 --stack->ga_len; | 3795 --stack->ga_len; |
3796 } | 3796 } |
3797 else | 3797 else |
3798 generate_STORE(cctx, ISN_STORE, idx, NULL); | 3798 generate_STORE(cctx, ISN_STORE, idx, NULL); |