From 7e75538e9b2d735ebe7a2832482353861ec4dff0 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 20 Jun 2014 13:40:24 +0100 Subject: Use enum for var_entry type --- src/src/expand.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/src/expand.c b/src/src/expand.c index b02ea30a2..9d73803a5 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -348,25 +348,9 @@ enum { }; -/* Type for main variable table */ - -typedef struct { - const char *name; - int type; - void *value; -} var_entry; - -/* Type for entries pointing to address/length pairs. Not currently -in use. */ - -typedef struct { - uschar **address; - int *length; -} alblock; - /* Types of table entry */ -enum { +enum vtypes { vtype_int, /* value is address of int */ vtype_filter_int, /* ditto, but recognized only when filtering */ vtype_ino, /* value is address of ino_t (not always an int) */ @@ -399,7 +383,23 @@ enum { #ifndef DISABLE_DKIM ,vtype_dkim /* Lookup of value in DKIM signature */ #endif - }; +}; + +/* Type for main variable table */ + +typedef struct { + const char *name; + enum vtypes type; + void *value; +} var_entry; + +/* Type for entries pointing to address/length pairs. Not currently +in use. */ + +typedef struct { + uschar **address; + int *length; +} alblock; static uschar * fn_recipients(void); -- cgit v1.2.3