Revision: 42172
http://brlcad.svn.sourceforge.net/brlcad/?rev=42172&view=rev
Author: brlcad
Date: 2011-01-12 19:57:03 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
use BU_PTBL_LEN() instead of END() when you need a const rvalue.
Modified Paths:
--------------
brlcad/trunk/src/librt/prep.c
Modified: brlcad/trunk/src/librt/prep.c
===================================================================
--- brlcad/trunk/src/librt/prep.c 2011-01-12 19:55:08 UTC (rev 42171)
+++ brlcad/trunk/src/librt/prep.c 2011-01-12 19:57:03 UTC (rev 42172)
@@ -1600,7 +1600,7 @@
start = db_lookup(rtip->rti_dbip, objs->topobjs[i], 1);
if (start == DIR_NULL) {
- for (k=0; k<BU_PTBL_END(&objs->paths); k++) {
+ for (k=0; k<BU_PTBL_LEN(&objs->paths); k++) {
path = (struct db_full_path *)BU_PTBL_GET(&objs->paths, k);
db_free_full_path(path);
}
@@ -1610,7 +1610,7 @@
for (j=0; j<objs->nunprepped; j++) {
end = db_lookup(rtip->rti_dbip, objs->unprepped[j], 1);
if (end == DIR_NULL) {
- for (k=0; k<BU_PTBL_END(&objs->paths); k++) {
+ for (k=0; k<BU_PTBL_LEN(&objs->paths); k++) {
path = (struct db_full_path *)BU_PTBL_GET(&objs->paths, k);
db_free_full_path(path);
}
@@ -1652,7 +1652,7 @@
path = (struct db_full_path *)BU_PTBL_GET(&objs->paths, i);
if (db_follow_path(tree_state, &another_path, path, 1, 0)) {
bu_log("rt_unprep(): db_follow_path failed!!\n");
- for (k=0; k<BU_PTBL_END(&objs->paths); k++) {
+ for (k=0; k<BU_PTBL_LEN(&objs->paths); k++) {
if (objs->tsp[k]) {
db_free_db_tree_state(objs->tsp[k]);
bu_free((char *)objs->tsp[k], "tree_state");
@@ -1675,7 +1675,7 @@
unprep_reg_start, unprep_reg_end, unprep_leaf,
(genptr_t)objs)) {
bu_log("rt_unprep(): db_walk_tree failed!!!\n");
- for (k=0; k<BU_PTBL_END(&objs->paths); k++) {
+ for (k=0; k<BU_PTBL_LEN(&objs->paths); k++) {
if (objs->tsp[k]) {
db_free_db_tree_state(objs->tsp[k]);
bu_free((char *)objs->tsp[k], "tree_state");
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