summaryrefslogtreecommitdiff
path: root/src/data_config.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-10-10 23:52:07 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-02-24 11:15:32 -0500
commit0c6409655555b8b1cecac0f3fe4814e62e68fe35 (patch)
tree2bfb4d8bcc3bca62a4cb1938e2482a1f155c0658 /src/data_config.c
parente01f995ce3dc554cfe5840a89c98fe8161994366 (diff)
downloadlighttpd-git-0c6409655555b8b1cecac0f3fe4814e62e68fe35.tar.gz
[core] isolate data_config.c, vector.c
isolate data_config.c, vector.c to lighttpd executable, not modules
Diffstat (limited to 'src/data_config.c')
-rw-r--r--src/data_config.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/data_config.c b/src/data_config.c
index 5334c01d..e367acc1 100644
--- a/src/data_config.c
+++ b/src/data_config.c
@@ -1,6 +1,5 @@
#include "first.h"
-#include "base.h" /* (cond_cache_t) */
#include "array.h"
#include "configfile.h"
@@ -193,22 +192,3 @@ int data_config_pcre_compile(data_config *dc) {
return 0;
#endif
}
-
-int data_config_pcre_exec(data_config *dc, cond_cache_t *cache, buffer *b) {
-#ifdef HAVE_PCRE_H
- #ifndef elementsof
- #define elementsof(x) (sizeof(x) / sizeof(x[0]))
- #endif
- cache->patterncount =
- pcre_exec(dc->regex, dc->regex_study, CONST_BUF_LEN(b), 0, 0,
- cache->matches, elementsof(cache->matches));
- if (cache->patterncount > 0)
- cache->comp_value = b; /* holds pointer to b (!) for pattern subst */
- return cache->patterncount;
-#else
- UNUSED(dc);
- UNUSED(cache);
- UNUSED(b);
- return 0;
-#endif
-}