Gitweb:
http://git.exim.org/exim.git/commitdiff/3fb3c68d8b8efb6569dedc2711307826f8cd6973
Commit: 3fb3c68d8b8efb6569dedc2711307826f8cd6973
Parent: 79fe97d8ea163ff9a3b229998c5434890f03b18f
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Apr 29 00:22:35 2012 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sun Apr 29 00:22:35 2012 +0100
Include string_interpret_escape() in COMPILE_UTILITY cases.
Eximon needs it, via util-spool_in.o
It needed a private hex_digits[] to avoid bringing in all of globals.c to COMPILE_UTILITY.
---
src/src/string.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/src/string.c b/src/src/string.c
index ab51565..0a321ee 100644
--- a/src/src/string.c
+++ b/src/src/string.c
@@ -210,7 +210,6 @@ return yield;
-#ifndef COMPILE_UTILITY
/*************************************************
* Interpret escape sequence *
*************************************************/
@@ -227,6 +226,9 @@ Returns: the value of the character escape
int
string_interpret_escape(uschar **pp)
{
+#ifdef COMPILE_UTILITY
+const uschar *hex_digits= CUS"0123456789abcdef";
+#endif
int ch;
uschar *p = *pp;
ch = *(++p);
@@ -262,7 +264,6 @@ else switch(ch)
*pp = p;
return ch;
}
-#endif /* COMPILE_UTILITY */
@@ -334,9 +335,6 @@ return ss;
}
#endif /* COMPILE_UTILITY */
-
-
-
/*************************************************
* Undo printing escapes in string *
*************************************************/