summaryrefslogtreecommitdiffstats
path: root/src/vim9.h
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-04-15 19:19:52 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-15 19:19:52 +0200
commitbce51d9005dd1c5bc002acbac2e12b649abcb013 (patch)
tree046a2767183c0fd9eff9249fd44ed676db906de3 /src/vim9.h
parenta59e031aa0bdc5cc3d1f4ed719126bf1a1b858ce (diff)
patch 9.1.0335: String interpolation fails for List typev9.1.0335
Problem: String interpolation fails for List type Solution: use implicit string(list) for string interpolation and :put = (Yegappan Lakshmanan) related: #14529 closes: #14556 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vim9.h b/src/vim9.h
index dd5ad734c7..65de618207 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -460,7 +460,7 @@ typedef struct {
// arguments to ISN_2STRING and ISN_2STRING_ANY
typedef struct {
int offset;
- int tolerant;
+ int flags;
} tostring_T;
// arguments to ISN_2BOOL
@@ -880,3 +880,10 @@ typedef enum {
// flags for call_def_function()
#define DEF_USE_PT_ARGV 1 // use the partial arguments
+
+// Flag used for conversion to string by may_generate_2STRING()
+#define TOSTRING_NONE 0x0
+// Convert a List to series of values separated by newline
+#define TOSTRING_INTERPOLATE 0x1
+// Convert a List to a textual representation of the list "[...]"
+#define TOSTRING_TOLERANT 0x2