comparison src/vim9execute.c @ 19964:6765a88e72a5 v8.2.0538

patch 8.2.0538: Vim9: VAR_PARTIAL is not used during compilation Commit: https://github.com/vim/vim/commit/9c8bb7c0e251be2cca409055bd415266f57f013a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 9 21:08:09 2020 +0200 patch 8.2.0538: Vim9: VAR_PARTIAL is not used during compilation Problem: Vim9: VAR_PARTIAL is not used during compilation. Solution: Remove VAR_PARTIAL.
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Apr 2020 21:15:03 +0200
parents 1f42c49c3d29
children 4e8e0ce576af
comparison
equal deleted inserted replaced
19963:15a32e680c2b 19964:6765a88e72a5
856 case ISN_PUSHSPEC: 856 case ISN_PUSHSPEC:
857 case ISN_PUSHF: 857 case ISN_PUSHF:
858 case ISN_PUSHS: 858 case ISN_PUSHS:
859 case ISN_PUSHBLOB: 859 case ISN_PUSHBLOB:
860 case ISN_PUSHFUNC: 860 case ISN_PUSHFUNC:
861 case ISN_PUSHPARTIAL:
862 case ISN_PUSHCHANNEL: 861 case ISN_PUSHCHANNEL:
863 case ISN_PUSHJOB: 862 case ISN_PUSHJOB:
864 if (ga_grow(&ectx.ec_stack, 1) == FAIL) 863 if (ga_grow(&ectx.ec_stack, 1) == FAIL)
865 goto failed; 864 goto failed;
866 tv = STACK_TV_BOT(0); 865 tv = STACK_TV_BOT(0);
894 tv->vval.v_string = NULL; 893 tv->vval.v_string = NULL;
895 else 894 else
896 tv->vval.v_string = 895 tv->vval.v_string =
897 vim_strsave(iptr->isn_arg.string); 896 vim_strsave(iptr->isn_arg.string);
898 break; 897 break;
899 case ISN_PUSHPARTIAL:
900 tv->v_type = VAR_PARTIAL;
901 tv->vval.v_partial = iptr->isn_arg.partial;
902 if (tv->vval.v_partial != NULL)
903 ++tv->vval.v_partial->pt_refcount;
904 break;
905 case ISN_PUSHCHANNEL: 898 case ISN_PUSHCHANNEL:
906 #ifdef FEAT_JOB_CHANNEL 899 #ifdef FEAT_JOB_CHANNEL
907 tv->v_type = VAR_CHANNEL; 900 tv->v_type = VAR_CHANNEL;
908 tv->vval.v_channel = iptr->isn_arg.channel; 901 tv->vval.v_channel = iptr->isn_arg.channel;
909 if (tv->vval.v_channel != NULL) 902 if (tv->vval.v_channel != NULL)
1410 1403
1411 // TODO: handle separately 1404 // TODO: handle separately
1412 case ISN_COMPARESTRING: 1405 case ISN_COMPARESTRING:
1413 case ISN_COMPAREDICT: 1406 case ISN_COMPAREDICT:
1414 case ISN_COMPAREFUNC: 1407 case ISN_COMPAREFUNC:
1415 case ISN_COMPAREPARTIAL:
1416 case ISN_COMPAREANY: 1408 case ISN_COMPAREANY:
1417 { 1409 {
1418 typval_T *tv1 = STACK_TV_BOT(-2); 1410 typval_T *tv1 = STACK_TV_BOT(-2);
1419 typval_T *tv2 = STACK_TV_BOT(-1); 1411 typval_T *tv2 = STACK_TV_BOT(-1);
1420 exptype_T exptype = iptr->isn_arg.op.op_type; 1412 exptype_T exptype = iptr->isn_arg.op.op_type;
1930 1922
1931 smsg("%4d PUSHFUNC \"%s\"", current, 1923 smsg("%4d PUSHFUNC \"%s\"", current,
1932 name == NULL ? "[none]" : name); 1924 name == NULL ? "[none]" : name);
1933 } 1925 }
1934 break; 1926 break;
1935 case ISN_PUSHPARTIAL:
1936 {
1937 partial_T *part = iptr->isn_arg.partial;
1938
1939 smsg("%4d PUSHPARTIAL \"%s\"", current,
1940 part == NULL ? "[none]" : (char *)partial_name(part));
1941 }
1942 break;
1943 case ISN_PUSHCHANNEL: 1927 case ISN_PUSHCHANNEL:
1944 #ifdef FEAT_JOB_CHANNEL 1928 #ifdef FEAT_JOB_CHANNEL
1945 { 1929 {
1946 channel_T *channel = iptr->isn_arg.channel; 1930 channel_T *channel = iptr->isn_arg.channel;
1947 1931
2115 case ISN_COMPARESTRING: 2099 case ISN_COMPARESTRING:
2116 case ISN_COMPAREBLOB: 2100 case ISN_COMPAREBLOB:
2117 case ISN_COMPARELIST: 2101 case ISN_COMPARELIST:
2118 case ISN_COMPAREDICT: 2102 case ISN_COMPAREDICT:
2119 case ISN_COMPAREFUNC: 2103 case ISN_COMPAREFUNC:
2120 case ISN_COMPAREPARTIAL:
2121 case ISN_COMPAREANY: 2104 case ISN_COMPAREANY:
2122 { 2105 {
2123 char *p; 2106 char *p;
2124 char buf[10]; 2107 char buf[10];
2125 char *type; 2108 char *type;
2152 type = "COMPARESTRING"; break; 2135 type = "COMPARESTRING"; break;
2153 case ISN_COMPAREBLOB: type = "COMPAREBLOB"; break; 2136 case ISN_COMPAREBLOB: type = "COMPAREBLOB"; break;
2154 case ISN_COMPARELIST: type = "COMPARELIST"; break; 2137 case ISN_COMPARELIST: type = "COMPARELIST"; break;
2155 case ISN_COMPAREDICT: type = "COMPAREDICT"; break; 2138 case ISN_COMPAREDICT: type = "COMPAREDICT"; break;
2156 case ISN_COMPAREFUNC: type = "COMPAREFUNC"; break; 2139 case ISN_COMPAREFUNC: type = "COMPAREFUNC"; break;
2157 case ISN_COMPAREPARTIAL:
2158 type = "COMPAREPARTIAL"; break;
2159 case ISN_COMPAREANY: type = "COMPAREANY"; break; 2140 case ISN_COMPAREANY: type = "COMPAREANY"; break;
2160 default: type = "???"; break; 2141 default: type = "???"; break;
2161 } 2142 }
2162 2143
2163 smsg("%4d %s %s", current, type, buf); 2144 smsg("%4d %s %s", current, type, buf);