]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Add @code/@endcode commands to markup C code in av_tree_insert() doxy.
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 9 May 2009 23:02:20 +0000 (23:02 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 9 May 2009 23:02:20 +0000 (23:02 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18776 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/tree.h

index b26dd9b0000a7a0035875ee4b53c330f03c318ce..e96d1fa12e5ab7c49ab58656864db69d0e1e1f31 100644 (file)
@@ -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