summaryrefslogtreecommitdiff
path: root/libavutil/tree.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-09 23:02:20 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-09 23:02:20 +0000
commit7a79e51cd6e33f34f09bf63771f62d54edb9848a (patch)
tree5037eae43df297bf1889547fc1a8edb681de0f6a /libavutil/tree.h
parent9c5a4ea28c70d040ded329480ae93e94b389515c (diff)
Add @code/@endcode commands to markup C code in av_tree_insert() doxy.
Originally committed as revision 18776 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/tree.h')
-rw-r--r--libavutil/tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/tree.h b/libavutil/tree.h
index b26dd9b000..e96d1fa12e 100644
--- a/libavutil/tree.h
+++ b/libavutil/tree.h
@@ -61,6 +61,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke
* This allows the use of flat arrays, which have
* lower overhead compared to many malloced elements.
* You might want to define a function like:
+ * @code
* void *tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), AVTreeNode **next){
* if(!*next) *next= av_mallocz(av_tree_node_size);
* return av_tree_insert(rootp, key, cmp, next);
@@ -69,7 +70,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke
* if(*next) av_freep(next);
* return av_tree_insert(rootp, key, cmp, next);
* }
- *
+ * @endcode
* @return If no insertion happened, the found element; if an insertion or
* removal happened, then either key or NULL will be returned.
* Which one it is depends on the tree state and the implementation. You