Browse code

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

Stefano Sabatini authored on 2009/05/10 08:02:20
Showing 1 changed files
... ...
@@ -61,6 +61,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke
61 61
  *             This allows the use of flat arrays, which have
62 62
  *             lower overhead compared to many malloced elements.
63 63
  *             You might want to define a function like:
64
+ *             @code
64 65
  *             void *tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), AVTreeNode **next){
65 66
  *                 if(!*next) *next= av_mallocz(av_tree_node_size);
66 67
  *                 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
69 69
  *                 if(*next) av_freep(next);
70 70
  *                 return av_tree_insert(rootp, key, cmp, next);
71 71
  *             }
72
- *
72
+ *             @endcode
73 73
  * @return If no insertion happened, the found element; if an insertion or
74 74
  *         removal happened, then either key or NULL will be returned.
75 75
  *         Which one it is depends on the tree state and the implementation. You