summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-05-07 11:30:06 +0200
committerAndreas Schneider <asn@samba.org>2012-05-07 19:20:29 +0200
commit79efc9d6e2c57c6acd8216be4b3387180032addd (patch)
tree01ef363b1f3c6c274364e24d76a556ec6d172aef /lib/talloc
parent7d5565e22d0ad8994225da18ef025bfdfa56c245 (diff)
downloadsamba-79efc9d6e2c57c6acd8216be4b3387180032addd.tar.gz
samba-79efc9d6e2c57c6acd8216be4b3387180032addd.tar.bz2
samba-79efc9d6e2c57c6acd8216be4b3387180032addd.zip
doc: Fixes for the talloc destructor tutorial.
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/doc/tutorial_destructors.dox9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/talloc/doc/tutorial_destructors.dox b/lib/talloc/doc/tutorial_destructors.dox
index 178f4cc4a8..ed063876a3 100644
--- a/lib/talloc/doc/tutorial_destructors.dox
+++ b/lib/talloc/doc/tutorial_destructors.dox
@@ -1,5 +1,6 @@
/**
@page libtalloc_destructors Chapter 4: Using destructors
+
@section destructors Using destructors
Destructors are well known methods in the world of object oriented programming.
@@ -10,7 +11,7 @@ deallocating memory).
With talloc we can take the advantage of destructors even in C. We can easily
attach our own destructor to a talloc context. When the context is freed, the
-destructor is run automatically.
+destructor will run automatically.
To attach/detach a destructor to a talloc context use: talloc_set_destructor().
@@ -34,8 +35,8 @@ int list_remove(void *ctx)
}
@endcode
-GCC3+ can check for the types during the compilation. So if it is
-our major compiler, we can use a little bit nicer destructor:
+GCC version 3 and newer can check for the types during the compilation. So if
+it is our major compiler, we can use a more advanced destructor:
@code
int list_remove(struct list_el *el)
@@ -78,4 +79,4 @@ struct list_el* list_insert_free(TALLOC_CTX *mem_ctx,
}
@endcode
-*/ \ No newline at end of file
+*/