[exim-cvs] Local_scan: more guards in included files

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Exim Git Commits Mailing List
日付:  
To: exim-cvs
題目: [exim-cvs] Local_scan: more guards in included files
Gitweb: https://git.exim.org/exim.git/commitdiff/df92b047912b261858e0368cbbc435aa05c4c98d
Commit:     df92b047912b261858e0368cbbc435aa05c4c98d
Parent:     92562f63be6fae2526d68171d60bf87027551f88
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Feb 3 14:19:20 2020 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Feb 3 14:19:20 2020 +0000


    Local_scan: more guards in included files
---
 src/src/local_scan.h | 4 ++++
 src/src/mytypes.h    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)


diff --git a/src/src/local_scan.h b/src/src/local_scan.h
index 7243f6a..206a843 100644
--- a/src/src/local_scan.h
+++ b/src/src/local_scan.h
@@ -10,6 +10,10 @@ source for the local_scan.c() function. It contains definitions that are made
available for use in that function, and which are documented. That source
should first #define LOCAL_SCAN

+Not every definition that becomes available to the compiler by the inclusion
+of this file is part of the local_scan API.  The "Adding a local scan function
+to Exim" chapter in the documentation is definitive.
+
 This API is also used for functions called by the ${dlfunc expansion item.
 Source for those should first #define DLFUNC_IMPL and then include this file.
 Coders of dlfunc routines should read the notes on tainting at the start of
diff --git a/src/src/mytypes.h b/src/src/mytypes.h
index 6d2f169..a3496a2 100644
--- a/src/src/mytypes.h
+++ b/src/src/mytypes.h
@@ -124,7 +124,7 @@ functions that are called quite often; for other calls to external libraries
 #define Ustrtoul(s,t,b)    strtoul(CCS(s),CSS(t),b)
 #define Uunlink(s)         unlink(CCS(s))


-#ifdef EM_VERSION_C
+#if defined(EM_VERSION_C) || defined(LOCAL_SCAN) || defined(DLFUNC_IMPL)
 # define Ustrcat(s,t)       strcat(CS(s), CCS(t))
 # define Ustrcpy(s,t)       strcpy(CS(s), CCS(t))
 # define Ustrncat(s,t,n)    strncat(CS(s), CCS(t), n)