]> granicus.if.org Git - vim/commitdiff
patch 9.0.1151: build failure v9.0.1151
authorBram Moolenaar <Bram@vim.org>
Thu, 5 Jan 2023 20:14:43 +0000 (20:14 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 5 Jan 2023 20:14:43 +0000 (20:14 +0000)
Problem:    Build failure.
Solution:   Add missing part of :interface change.

src/structs.h
src/version.c

index 5b3f566dcb9667920bf36763aa640bb69420f3de..bcf9d03d2fca6709db9eb75a6c970d5fe0851e49 100644 (file)
@@ -1440,7 +1440,7 @@ typedef enum
     VAR_JOB,           // "v_job" is used
     VAR_CHANNEL,       // "v_channel" is used
     VAR_INSTR,         // "v_instr" is used
-    VAR_CLASS,         // "v_class" is used
+    VAR_CLASS,         // "v_class" is used (also used for interface)
     VAR_OBJECT,                // "v_object" is used
 } vartype_T;
 
@@ -1482,10 +1482,15 @@ typedef struct {
     char_u     *ocm_init;   // allocated
 } ocmember_T;
 
+#define CLASS_INTERFACE 1
+
 // "class_T": used for v_class of typval of VAR_CLASS
+// Also used for an interface (class_flags has CLASS_INTERFACE).
 struct class_S
 {
     char_u     *class_name;            // allocated
+    int                class_flags;            // CLASS_ flags
+
     int                class_refcount;
     int                class_copyID;           // used by garbage collection
 
index 8177cabf1b77b081f52b9fc7333b007bac56acfe..78fad97ce04e5c10f9989cf773352d22f92e24b7 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1151,
 /**/
     1150,
 /**/