Skip to content

Commit

Permalink
Doc.
Browse files Browse the repository at this point in the history
(This used to be commit 5b6c22a)
  • Loading branch information
Martin Pool committed Dec 19, 2001
1 parent 4f74ff9 commit 55f6eef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source3/include/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions source3/lib/talloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. **/
Expand Down

0 comments on commit 55f6eef

Please sign in to comment.