Revision: 42325
http://brlcad.svn.sourceforge.net/brlcad/?rev=42325&view=rev
Author: brlcad
Date: 2011-01-16 17:59:53 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
minor rewording since the type of free matters. plus remove the warning since
it conflicts with the need to free the memory.
Modified Paths:
--------------
brlcad/trunk/include/bu.h
Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h 2011-01-16 17:51:41 UTC (rev 42324)
+++ brlcad/trunk/include/bu.h 2011-01-16 17:59:53 UTC (rev 42325)
@@ -3324,6 +3324,9 @@
* Given a filesystem pathname, return a pointer to a dynamic string
* which is the parent directory of that file/directory.
*
+ * It is the caller's responsibility to bu_free() the pointer returned
+ * from this routine. Examples of strings returned:
+ *
* /usr/dir/file /usr/dir
* @n /usr/dir/ /usr
* @n /usr/file /usr
@@ -3339,11 +3342,6 @@
*
* This routine will return "." if other valid results are not available
* but should never return NULL.
- *
- * Caller is responsible for freeing memory used by the return.
- *
- * Warning: don't rely on non-constness of bu_dirname().. will change
- * to const.
*/
BU_EXPORT BU_EXTERN(char *bu_dirname,
(const char *cp));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits