patch 8.2.1492: build failures
Problem: Build failures.
Solution: Move typedef out of #ifdef. Adjust argument types. Discover
America.
diff --git a/src/structs.h b/src/structs.h
index d854511..38ebcf5 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1533,6 +1533,13 @@
typedef int (*cfunc_T)(int argcount, typval_T *argvars, typval_T *rettv, void *state);
typedef void (*cfunc_free_T)(void *state);
+// type of getline() last argument
+typedef enum {
+ GETLINE_NONE, // do not concatenate any lines
+ GETLINE_CONCAT_CONT, // concatenate continuation lines
+ GETLINE_CONCAT_ALL // concatenate continuation and Vim9 # comment lines
+} getline_opt_T;
+
#if defined(FEAT_EVAL) || defined(PROTO)
typedef struct funccall_S funccall_T;
@@ -1761,13 +1768,6 @@
# endif
} scriptitem_T;
-// type of getline() last argument
-typedef enum {
- GETLINE_NONE, // do not concatenate any lines
- GETLINE_CONCAT_CONT, // concatenate continuation lines
- GETLINE_CONCAT_ALL // concatenate continuation and Vim9 # comment lines
-} getline_opt_T;
-
// Struct passed through eval() functions.
// See EVALARG_EVALUATE for a fixed value with eval_flags set to EVAL_EVALUATE.
typedef struct {