Revision: 42406
http://brlcad.svn.sourceforge.net/brlcad/?rev=42406&view=rev
Author: tbrowder2
Date: 2011-01-18 10:37:59 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
modify and rename attr sort comp function for extern use
Modified Paths:
--------------
brlcad/trunk/src/libged/attr.c
Modified: brlcad/trunk/src/libged/attr.c
===================================================================
--- brlcad/trunk/src/libged/attr.c 2011-01-17 21:12:16 UTC (rev 42405)
+++ brlcad/trunk/src/libged/attr.c 2011-01-18 10:37:59 UTC (rev 42406)
@@ -28,8 +28,8 @@
#include "ged.h"
/* comparison function for the avs->name qsort below -- based on example in
libc: man qsort */
-static int
-cmpstringp(const void *p1, const void *p2)
+int
+_attr_cmpstringp(const void *p1, const void *p2)
{
return strcmp((char * const)((struct bu_attribute_value_pair *)p1)->name,
(char * const)((struct bu_attribute_value_pair *)p2)->name);
@@ -81,7 +81,7 @@
}
/* sort attribute-value set array by attribute name */
- qsort(&avs.avp[0], avs.count, sizeof(struct bu_attribute_value_pair),
cmpstringp);
+ qsort(&avs.avp[0], avs.count, sizeof(struct bu_attribute_value_pair),
_attr_cmpstringp);
if (BU_STR_EQUAL(argv[1], "get")) {
if (argc == 3) {
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