Revision: 42438
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42438&view=rev
Author:   brlcad
Date:     2011-01-19 08:40:57 +0000 (Wed, 19 Jan 2011)

Log Message:
-----------
rename rt_get_set() similarly to rt_alloc_seg_block() since it doesn't actually 
get andthing or have an equivalent put/set.  it's purpose is to allocate a 
block of segs so just say that.

Modified Paths:
--------------
    brlcad/trunk/doc/deprecation.txt
    brlcad/trunk/include/raytrace.h
    brlcad/trunk/src/librt/storage.c

Modified: brlcad/trunk/doc/deprecation.txt
===================================================================
--- brlcad/trunk/doc/deprecation.txt    2011-01-19 08:34:51 UTC (rev 42437)
+++ brlcad/trunk/doc/deprecation.txt    2011-01-19 08:40:57 UTC (rev 42438)
@@ -324,6 +324,8 @@
 have been identified in reverse chronological order.  As expressions
 are not extensively tested, use with caution.
 
+s/rt_get_seg(/rt_alloc_sed_block(/g
+        rt_get_seg() renamed to rt_alloc_seg_block() [7.18]
 s/db_get_directory(/db_alloc_directory_block(/g
         db_get_directory() renamed to db_alloc_directory_block() [7.18]
 s/db_get_directory_size(/db_directory_size(/g

Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h     2011-01-19 08:34:51 UTC (rev 42437)
+++ brlcad/trunk/include/raytrace.h     2011-01-19 08:40:57 UTC (rev 42438)
@@ -409,7 +409,7 @@
 
 #define RT_GET_SEG(p, res) { \
        while (!BU_LIST_WHILE((p), seg, &((res)->re_seg)) || !(p)) \
-               rt_get_seg(res); \
+               rt_alloc_seg_block(res); \
        BU_LIST_DEQUEUE(&((p)->l)); \
        (p)->l.forw = (p)->l.back = BU_LIST_NULL; \
        (p)->seg_in.hit_magic = (p)->seg_out.hit_magic = RT_HIT_MAGIC; \
@@ -2509,7 +2509,7 @@
  * declarations moved to db.h */
 
 /* storage obtainers */
-RT_EXPORT BU_EXTERN(void rt_get_seg,
+RT_EXPORT BU_EXTERN(void rt_alloc_seg_block,
                    (struct resource *res));
 RT_EXPORT BU_EXTERN(void rt_cut_it,
                    (struct rt_i *rtip,

Modified: brlcad/trunk/src/librt/storage.c
===================================================================
--- brlcad/trunk/src/librt/storage.c    2011-01-19 08:34:51 UTC (rev 42437)
+++ brlcad/trunk/src/librt/storage.c    2011-01-19 08:40:57 UTC (rev 42438)
@@ -38,7 +38,7 @@
 
 
 /**
- * R T _ G E T _ S E G
+ * R T _ A L L O C _ S E G _ B L O C K
  *
  * This routine is called by the GET_SEG macro when the freelist is
  * exhausted.  Rather than simply getting one additional structure, we
@@ -47,7 +47,7 @@
  * in bu_malloc.
  */
 void
-rt_get_seg(register struct resource *res)
+rt_alloc_seg_block(register struct resource *res)
 {
     register struct seg *sp;
     size_t bytes;
@@ -59,7 +59,7 @@
        bu_ptbl_init(&res->re_seg_blocks, 64, "re_seg_blocks ptbl");
     }
     bytes = bu_malloc_len_roundup(64*sizeof(struct seg));
-    sp = (struct seg *)bu_malloc(bytes, "rt_get_seg()");
+    sp = (struct seg *)bu_malloc(bytes, "rt_alloc_seg_block()");
     bu_ptbl_ins(&res->re_seg_blocks, (long *)sp);
     while (bytes >= sizeof(struct seg)) {
        sp->l.magic = RT_SEG_MAGIC;


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

Reply via email to