Patch 9.0.1128
Problem:    Build failure.
Solution:   Add type cast.  Add missing error messages.
Files:      src/vim9class.c, src/errors.h


*** ../vim-9.0.1127/src/vim9class.c     2023-01-01 19:53:26.582445815 +0000
--- src/vim9class.c     2023-01-01 20:30:05.561542905 +0000
***************
*** 827,833 ****
      size_t len = name_end - name;
      typval_T tv;
      tv.v_type = VAR_UNKNOWN;
!     if (eval_variable(name, len, 0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
        return NULL;
      if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT)
        goto fail_after_eval;
--- 827,834 ----
      size_t len = name_end - name;
      typval_T tv;
      tv.v_type = VAR_UNKNOWN;
!     if (eval_variable(name, (int)len,
!                                   0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
        return NULL;
      if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT)
        goto fail_after_eval;
*** ../vim-9.0.1127/src/errors.h        2022-12-19 13:30:34.315772238 +0000
--- src/errors.h        2023-01-01 19:12:29.156416300 +0000
***************
*** 3401,3403 ****
--- 3401,3409 ----
  EXTERN char 
e_cannot_add_textprop_with_text_after_using_textprop_with_negative_id[]
        INIT(= N_("E1339: Cannot add a textprop with text after using a 
textprop with a negative id"));
  #endif
+ #ifdef FEAT_EVAL
+ EXTERN char e_argument_already_declared_in_class_str[]
+       INIT(= N_("E1340: Argument already declared in the class: %s"));
+ EXTERN char e_variable_already_declared_in_class_str[]
+       INIT(= N_("E1341: Variable already declared in the class: %s"));
+ #endif
*** ../vim-9.0.1127/src/version.c       2023-01-01 19:53:26.586445815 +0000
--- src/version.c       2023-01-01 20:30:55.285571517 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1128,
  /**/

-- 
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
                    WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
                    BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
                    EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
                    LAUNCELOT
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230101203159.782161C0AA3%40moolenaar.net.

Raspunde prin e-mail lui