summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-19 04:55:58 +0000
committerMartin Pool <mbp@samba.org>2001-12-19 04:55:58 +0000
commit5b6c22a209a26cb9adbf6d7733d396038c729633 (patch)
treef09d6a3ef1e1e8dcd9215ee82cae0030b4919183
parent25b97a743573b8c5e0ac886e4bfab581c11b3714 (diff)
downloadsamba-5b6c22a209a26cb9adbf6d7733d396038c729633.tar.gz
samba-5b6c22a209a26cb9adbf6d7733d396038c729633.tar.xz
samba-5b6c22a209a26cb9adbf6d7733d396038c729633.zip
Doc.
-rw-r--r--source/include/includes.h4
-rw-r--r--source/lib/talloc.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index ec4628e51f6..3b2b1db8772 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -54,8 +54,10 @@
#endif
#endif
-/* use gcc attribute to check printf fns */
#ifdef __GNUC__
+/** Use gcc attribute to check printf fns. a1 is the 1-based index of
+ * the parameter containing the format, and a2 the index of the first
+ * argument. **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)
diff --git a/source/lib/talloc.c b/source/lib/talloc.c
index 13393c1a69d..ff1bdd00007 100644
--- a/source/lib/talloc.c
+++ b/source/lib/talloc.c
@@ -34,6 +34,12 @@
TALLOC_ALIGN alignment
*/
+/* TODO: We could allocate both the talloc_chunk structure, and the
+ * memory it contains all in one allocation, which might be a bit
+ * faster and perhaps use less memory overhead.
+ *
+ * That smells like a premature optimization, though. -- mbp */
+
#include "includes.h"
/** Create a new talloc context. **/