Mercurial > vim
comparison src/structs.h @ 24606:a4fda40e0bb9 v8.2.2842
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
Commit: https://github.com/vim/vim/commit/f18332fb9e2e4208a97d800f096b02c6681780e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 7 17:55:55 2021 +0200
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
Problem: Vim9: skip argument to searchpair() is not compiled.
Solution: Add VAR_INSTR.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 May 2021 18:00:04 +0200 |
parents | 3bfec39ce31c |
children | 3876d9629ebd |
comparison
equal
deleted
inserted
replaced
24605:f5484f767f70 | 24606:a4fda40e0bb9 |
---|---|
1369 typedef struct jsonq_S jsonq_T; | 1369 typedef struct jsonq_S jsonq_T; |
1370 typedef struct cbq_S cbq_T; | 1370 typedef struct cbq_S cbq_T; |
1371 typedef struct channel_S channel_T; | 1371 typedef struct channel_S channel_T; |
1372 typedef struct cctx_S cctx_T; | 1372 typedef struct cctx_S cctx_T; |
1373 typedef struct ectx_S ectx_T; | 1373 typedef struct ectx_S ectx_T; |
1374 typedef struct instr_S instr_T; | |
1374 | 1375 |
1375 typedef enum | 1376 typedef enum |
1376 { | 1377 { |
1377 VAR_UNKNOWN = 0, // not set, any type or "void" allowed | 1378 VAR_UNKNOWN = 0, // not set, any type or "void" allowed |
1378 VAR_ANY, // used for "any" type | 1379 VAR_ANY, // used for "any" type |
1387 VAR_PARTIAL, // "v_partial" is used | 1388 VAR_PARTIAL, // "v_partial" is used |
1388 VAR_LIST, // "v_list" is used | 1389 VAR_LIST, // "v_list" is used |
1389 VAR_DICT, // "v_dict" is used | 1390 VAR_DICT, // "v_dict" is used |
1390 VAR_JOB, // "v_job" is used | 1391 VAR_JOB, // "v_job" is used |
1391 VAR_CHANNEL, // "v_channel" is used | 1392 VAR_CHANNEL, // "v_channel" is used |
1393 VAR_INSTR, // "v_instr" is used | |
1392 } vartype_T; | 1394 } vartype_T; |
1393 | 1395 |
1394 // A type specification. | 1396 // A type specification. |
1395 typedef struct type_S type_T; | 1397 typedef struct type_S type_T; |
1396 struct type_S { | 1398 struct type_S { |
1427 #ifdef FEAT_JOB_CHANNEL | 1429 #ifdef FEAT_JOB_CHANNEL |
1428 job_T *v_job; // job value (can be NULL!) | 1430 job_T *v_job; // job value (can be NULL!) |
1429 channel_T *v_channel; // channel value (can be NULL!) | 1431 channel_T *v_channel; // channel value (can be NULL!) |
1430 #endif | 1432 #endif |
1431 blob_T *v_blob; // blob value (can be NULL!) | 1433 blob_T *v_blob; // blob value (can be NULL!) |
1434 instr_T *v_instr; // instructions to execute | |
1432 } vval; | 1435 } vval; |
1433 } typval_T; | 1436 } typval_T; |
1434 | 1437 |
1435 // Values for "dv_scope". | 1438 // Values for "dv_scope". |
1436 #define VAR_SCOPE 1 // a:, v:, s:, etc. scope dictionaries | 1439 #define VAR_SCOPE 1 // a:, v:, s:, etc. scope dictionaries |