git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7864a64
)
Use enum for var_entry type
author
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 20 Jun 2014 12:40:24 +0000
(13:40 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 20 Jun 2014 12:40:24 +0000
(13:40 +0100)
src/src/expand.c
patch
|
blob
|
history
diff --git
a/src/src/expand.c
b/src/src/expand.c
index b02ea30a29fb4b183128c6b6b2cddc8829af10d0..9d73803a52052018f7ed7b909b797aa5bb9e1616 100644
(file)
--- 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 */
/* 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) */
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
#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);
static uschar * fn_recipients(void);