From 3c34cec0895679c5f57f739a1a93dad39a3bd622 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 23 Jun 2012 20:50:01 +0200 Subject: [PATCH] src/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file. --- src/utils_vl_lookup.c | 4 ---- src/utils_vl_lookup.h | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c index 0f86bff2..2dada247 100644 --- a/src/utils_vl_lookup.c +++ b/src/utils_vl_lookup.c @@ -84,10 +84,6 @@ struct by_type_entry_s }; typedef struct by_type_entry_s by_type_entry_t; -#define LU_IS_ANY(str) (strcmp (str, "/any/") == 0) -#define LU_IS_ALL(str) (strcmp (str, "/all/") == 0) -#define LU_IS_WILDCARD(str) (LU_IS_ANY(str) || LU_IS_ALL(str)) - /* * Private functions */ diff --git a/src/utils_vl_lookup.h b/src/utils_vl_lookup.h index e115ec8d..c006fc7f 100644 --- a/src/utils_vl_lookup.h +++ b/src/utils_vl_lookup.h @@ -63,6 +63,13 @@ struct identifier_s }; typedef struct identifier_s identifier_t; +#define LU_ANY "/any/" +#define LU_ALL "/all/" + +#define LU_IS_ANY(str) (strcmp (str, LU_ANY) == 0) +#define LU_IS_ALL(str) (strcmp (str, LU_ALL) == 0) +#define LU_IS_WILDCARD(str) (LU_IS_ANY(str) || LU_IS_ALL(str)) + /* * Functions */ -- 2.30.2