[brlcad-commits] SF.net SVN: brlcad:[54624] brlcad/trunk/include/raytrace.h
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-03-12 15:56:22
|
Revision: 54624 http://brlcad.svn.sourceforge.net/brlcad/?rev=54624&view=rev Author: brlcad Date: 2013-03-12 15:56:13 +0000 (Tue, 12 Mar 2013) Log Message: ----------- these are never released and do their own efficient thing, so call BU_ALLOC instead of BU_GET Modified Paths: -------------- brlcad/trunk/include/raytrace.h Modified: brlcad/trunk/include/raytrace.h =================================================================== --- brlcad/trunk/include/raytrace.h 2013-03-12 15:22:25 UTC (rev 54623) +++ brlcad/trunk/include/raytrace.h 2013-03-12 15:56:13 UTC (rev 54624) @@ -1220,7 +1220,7 @@ * magic number is set to RT_TREE_MAGIC and all other members are * zero-initialized. * - * This is a malloc-efficient replacement for BU_GET(tp, union tree). + * This is a malloc-efficient BU_ALLOC(tp, union tree) replacement. * Previously used tree nodes are stored in the provided resource * pointer (during RT_FREE_TREE) as a single-linked list using the * tb_left field. Requests for new nodes are pulled first from that @@ -1234,7 +1234,7 @@ (_tp)->tr_b.tb_left = TREE_NULL; \ (_res)->re_tree_get++; \ } else { \ - BU_GET(_tp, union tree); \ + BU_ALLOC(_tp, union tree); \ (_res)->re_tree_malloc++; \ } \ RT_TREE_INIT((_tp)); \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |