]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] enable ISC_BUFFER_USEINLINE to be overridden
authorEvan Hunt <each@isc.org>
Thu, 26 Oct 2017 04:42:56 +0000 (21:42 -0700)
committerEvan Hunt <each@isc.org>
Thu, 26 Oct 2017 04:42:56 +0000 (21:42 -0700)
OPTIONS
OPTIONS.md
lib/isc/include/isc/buffer.h

diff --git a/OPTIONS b/OPTIONS
index bf36debecb2abf29c7eb57221c44426b1b403858..21afbec59db35bf99c573dfb63105efdf516724f 100644 (file)
--- a/OPTIONS
+++ b/OPTIONS
@@ -22,4 +22,7 @@ Setting                   Description
                           Increase the maximum number of configurable
 -DNS_RPZ_MAX_ZONES=64     response policy zones from 32 to 64; this is the
                           highest possible setting
+                          Disable the use of inline functions to implement
+-DISC_BUFFER_USEINLINE=0  the isc_buffer API: this reduces performance but
+                          may be useful when debugging
 
index fabf1adf9dc811a6aa8d721d8bc4628da3881ca5..0dda7dea85f2aa6fdf4caf95c2f42c7259c1e467 100644 (file)
@@ -21,3 +21,4 @@ Some of these settings are:
 |`-DCHECK_LOCAL=0`|Don't check out-of-zone addresses in `named-checkzone`|
 |`-DNS_RUN_PID_DIR=0`|Create default PID files in `${localstatedir}/run` rather than `${localstatedir}/run/named/`|
 |`-DNS_RPZ_MAX_ZONES=64`|Increase the maximum number of configurable response policy zones from 32 to 64; this is the highest possible setting|
+|`-DISC_BUFFER_USEINLINE=0`|Disable the use of inline functions to implement the `isc_buffer` API: this reduces performance but may be useful when debugging |
index 5f8ad17819c6f26d784627df9916ad0dd1e4b301..a02e0955fb023204e3fd77fc92f8358ef1f01123 100644 (file)
 #include <isc/types.h>
 
 /*!
- * To make many functions be inline macros (via \#define) define this.
- * If it is undefined, a function will be used.
+ * To make many functions be inline macros (via \#define) define this to 1.
+ * To use continue to use them as functions define this to 0.
  */
+#ifndef ISC_BUFFER_USEINLINE
 #define ISC_BUFFER_USEINLINE 1
+#endif
 
 ISC_LANG_BEGINDECLS
 
@@ -1007,7 +1009,7 @@ ISC_LANG_ENDDECLS
                _cp[3] = (unsigned char)_val2; \
        } while (0)
 
-#if defined(ISC_BUFFER_USEINLINE)
+#if ISC_BUFFER_USEINLINE
 #define isc_buffer_init                        ISC__BUFFER_INIT
 #define isc_buffer_initnull            ISC__BUFFER_INITNULL
 #define isc_buffer_invalidate          ISC__BUFFER_INVALIDATE