[exim-cvs] Use enum for var_entry type

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Exim Git Commits Mailing List
Fecha:  
A: exim-cvs
Asunto: [exim-cvs] Use enum for var_entry type
Gitweb: http://git.exim.org/exim.git/commitdiff/7e75538e9b2d735ebe7a2832482353861ec4dff0
Commit:     7e75538e9b2d735ebe7a2832482353861ec4dff0
Parent:     7864a644b38feedb3fe1ba1e27f636299d7b48a5
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Jun 20 13:40:24 2014 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Jun 20 13:40:24 2014 +0100


    Use enum for var_entry type
---
 src/src/expand.c |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index b02ea30..9d73803 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);