Revision: 54541
http://brlcad.svn.sourceforge.net/brlcad/?rev=54541&view=rev
Author: brlcad
Date: 2013-03-06 22:02:27 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
call bu_calloc instead of BU_GET since we don't call the corresponding BU_PUT
Modified Paths:
--------------
brlcad/trunk/include/nurb.h
Modified: brlcad/trunk/include/nurb.h
===================================================================
--- brlcad/trunk/include/nurb.h 2013-03-06 21:47:20 UTC (rev 54540)
+++ brlcad/trunk/include/nurb.h 2013-03-06 22:02:27 UTC (rev 54541)
@@ -81,12 +81,19 @@
#define NMG_CK_CNURB(_p) BU_CKMAG(_p, NMG_EDGE_G_CNURB_MAGIC, "cnurb")
#define NMG_CK_SNURB(_p) BU_CKMAG(_p, NMG_FACE_G_SNURB_MAGIC, "snurb")
-#define GET_CNURB(p/*, m*/) {BU_GET(p, struct edge_g_cnurb); \
+/* DEPRECATED */
+#define GET_CNURB(p/*, m*/) { \
+ (p) = (struct edge_g_cnurb *)bu_calloc(1, sizeof(struct edge_g_cnurb),
"alloc cnurb"); \
/* NMG_INCR_INDEX(p, m); */ \
- BU_LIST_INIT( &(p)->l ); (p)->l.magic = NMG_EDGE_G_CNURB_MAGIC; }
-#define GET_SNURB(p/*, m*/) {BU_GET(p, struct face_g_snurb); \
+ BU_LIST_INIT( &(p)->l ); (p)->l.magic = NMG_EDGE_G_CNURB_MAGIC; \
+}
+
+/* DEPRECATED */
+#define GET_SNURB(p/*, m*/) { \
+ (p) = (struct face_g_snurb *)bu_calloc(1, sizeof(struct face_g_snurb),
"alloc snurb"); \
/* NMG_INCR_INDEX(p, m); */ \
- BU_LIST_INIT( &(p)->l ); (p)->l.magic = NMG_FACE_G_SNURB_MAGIC; }
+ BU_LIST_INIT( &(p)->l ); (p)->l.magic = NMG_FACE_G_SNURB_MAGIC; \
+}
/* ----- Internal structures ----- */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits