Mercurial > vim
comparison src/structs.h @ 32005:ef644af2c330 v9.0.1334
patch 9.0.1334: using tt_member for the class leads to mistakes
Commit: https://github.com/vim/vim/commit/b1e32ac0c998808705cfbd59e4b8510931875078
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 21 12:38:51 2023 +0000
patch 9.0.1334: using tt_member for the class leads to mistakes
Problem: Using tt_member for the class leads to mistakes.
Solution: Add a separate tt_class field.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Feb 2023 13:45:07 +0100 |
parents | ca6bc7c04163 |
children | ec05de98b0f7 |
comparison
equal
deleted
inserted
replaced
32004:a9b5ffbc0428 | 32005:ef644af2c330 |
---|---|
1449 vartype_T tt_type; | 1449 vartype_T tt_type; |
1450 int8_T tt_argcount; // for func, incl. vararg, -1 for unknown | 1450 int8_T tt_argcount; // for func, incl. vararg, -1 for unknown |
1451 int8_T tt_min_argcount; // number of non-optional arguments | 1451 int8_T tt_min_argcount; // number of non-optional arguments |
1452 char_u tt_flags; // TTFLAG_ values | 1452 char_u tt_flags; // TTFLAG_ values |
1453 type_T *tt_member; // for list, dict, func return type | 1453 type_T *tt_member; // for list, dict, func return type |
1454 // for class: class_T | 1454 class_T *tt_class; // for class and object |
1455 type_T **tt_args; // func argument types, allocated | 1455 type_T **tt_args; // func argument types, allocated |
1456 }; | 1456 }; |
1457 | 1457 |
1458 typedef struct { | 1458 typedef struct { |
1459 type_T *type_curr; // current type, value type | 1459 type_T *type_curr; // current type, value type |