ref.h: fix doc
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 4 Feb 2016 18:22:27 +0000 (13:22 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 20:15:48 +0000 (15:15 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ref.h

index 68f872cf926ab4ca49a8050ea30533412bc5a887..04fd8512ca2f6426140ea00220b63a5e3b0a280e 100644 (file)
@@ -36,9 +36,9 @@
  * to NULL after putting the object it points to. Since this is so
  * common, the BT_PUT() macro can be used to do just that.
  *
- * It is safe to call this function with a NULL object.
+ * It is safe to call this function with a variable containing NULL.
  *
- * @param obj Babeltrace object.
+ * @param obj Variable pointing to a Babeltrace object.
  */
 #define BT_PUT(_obj)           \
        do {                    \
@@ -56,7 +56,8 @@
  * Before assigning _src to _dst, it puts _dst. Therefore it is not safe to
  * call this function with an uninitialized value of _dst.
  *
- * @param obj Babeltrace object.
+ * @param _dst Destination variable pointing to a Babeltrace object.
+ * @param _src Source variable pointing to a Babeltrace object.
  */
 #define BT_MOVE(_dst, _src)    \
        do {                    \
@@ -87,7 +88,7 @@ void *bt_get(void *obj);
  * bt_put() to release the initial reference done at creation) have to be
  * performed to destroy a Babeltrace object.
  *
- * The object is feed when its reference count is decremented to 0 by a call to
+ * The object is freed when its reference count is decremented to 0 by a call to
  * bt_put().
  *
  * It is safe to call this function with a NULL object.
This page took 0.025589 seconds and 4 git commands to generate.