comparison src/structs.h @ 31784:6377d791dcd1 v9.0.1224

patch 9.0.1224: cannot call a :def function with a number for float argument Commit: https://github.com/vim/vim/commit/47bba53bdb6d59057887149e2eeb2071803e547e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 20 18:49:46 2023 +0000 patch 9.0.1224: cannot call a :def function with a number for float argument Problem: Cannot call a :def function with a number for a float argument. Solution: Accept a number as well, convert it to a float.
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Jan 2023 21:01:46 +0100
parents 48431422f766
children ffa11e2757e7
comparison
equal deleted inserted replaced
31783:cdee4ac5eea0 31784:6377d791dcd1
1460 type_T *type_decl; // declared type or equal to type_current 1460 type_T *type_decl; // declared type or equal to type_current
1461 } type2_T; 1461 } type2_T;
1462 1462
1463 #define TTFLAG_VARARGS 0x01 // func args ends with "..." 1463 #define TTFLAG_VARARGS 0x01 // func args ends with "..."
1464 #define TTFLAG_BOOL_OK 0x02 // can be converted to bool 1464 #define TTFLAG_BOOL_OK 0x02 // can be converted to bool
1465 #define TTFLAG_NUMBER_OK 0x04 // tt_type is VAR_FLOAT, VAR_NUMBER is OK 1465 #define TTFLAG_FLOAT_OK 0x04 // number can be used/converted to float
1466 #define TTFLAG_STATIC 0x08 // one of the static types, e.g. t_any 1466 #define TTFLAG_NUMBER_OK 0x08 // number can be used for a float
1467 #define TTFLAG_CONST 0x10 // cannot be changed 1467 #define TTFLAG_STATIC 0x10 // one of the static types, e.g. t_any
1468 #define TTFLAG_SUPER 0x20 // object from "super". 1468 #define TTFLAG_CONST 0x20 // cannot be changed
1469 #define TTFLAG_SUPER 0x40 // object from "super".
1469 1470
1470 typedef enum { 1471 typedef enum {
1471 ACCESS_PRIVATE, // read/write only inside th class 1472 ACCESS_PRIVATE, // read/write only inside th class
1472 ACCESS_READ, // read everywhere, write only inside th class 1473 ACCESS_READ, // read everywhere, write only inside th class
1473 ACCESS_ALL // read/write everywhere 1474 ACCESS_ALL // read/write everywhere