Mailing List Archive

[master] 7d27ba046 Add a list of methods to type definitions
commit 7d27ba046853884820e0630fb03848ce2cb2191b
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Thu Nov 28 18:35:24 2019 +0100

Add a list of methods to type definitions

For now, this is a copy of struct vcc_methods used in expression parsing
and the list includes type properties as well.

diff --git a/lib/libvcc/vcc_compile.h b/lib/libvcc/vcc_compile.h
index 7ba6cbb62..dfd3a45e1 100644
--- a/lib/libvcc/vcc_compile.h
+++ b/lib/libvcc/vcc_compile.h
@@ -97,13 +97,23 @@ struct token {
};

/*---------------------------------------------------------------------*/
+
typedef const struct type *vcc_type_t;

+struct vcc_method {
+ vcc_type_t type;
+ const char *name;
+ const char *impl;
+ int func;
+};
+
struct type {
unsigned magic;
#define TYPE_MAGIC 0xfae932d9

const char *name;
+ const struct vcc_method *methods;
+
const char *tostring;
vcc_type_t multype;
int stringform;
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit