Revision: 45883
http://brlcad.svn.sourceforge.net/brlcad/?rev=45883&view=rev
Author: brlcad
Date: 2011-08-10 05:36:24 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
more uint32_t magic number fallout
Modified Paths:
--------------
brlcad/trunk/include/raytrace.h
brlcad/trunk/src/librt/primitives/sketch/sketch.c
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2011-08-10 05:35:39 UTC (rev 45882)
+++ brlcad/trunk/include/raytrace.h 2011-08-10 05:36:24 UTC (rev 45883)
@@ -3647,7 +3647,7 @@
const struct rt_sketch_internal *skt,
int noisy);
-RT_EXPORT extern void rt_curve_reverse_segment(unsigned long *lng);
+RT_EXPORT extern void rt_curve_reverse_segment(uint32_t *lng);
RT_EXPORT extern void rt_curve_order_segments(struct rt_curve *crv);
RT_EXPORT extern void rt_copy_curve(struct rt_curve *crv_out,
Modified: brlcad/trunk/src/librt/primitives/sketch/sketch.c
===================================================================
--- brlcad/trunk/src/librt/primitives/sketch/sketch.c 2011-08-10 05:35:39 UTC
(rev 45882)
+++ brlcad/trunk/src/librt/primitives/sketch/sketch.c 2011-08-10 05:36:24 UTC
(rev 45883)
@@ -66,9 +66,9 @@
const struct carc_seg *csg;
const struct nurb_seg *nsg;
const struct bezier_seg *bsg;
- const unsigned long *lng;
+ const uint32_t *lng;
- lng = (unsigned long *)crv->segment[i];
+ lng = (uint32_t *)crv->segment[i];
switch (*lng) {
case CURVE_LSEG_MAGIC:
@@ -277,7 +277,7 @@
fastf_t nseg;
int i, hits;
- unsigned long *lng;
+ uint32_t *lng;
struct line_seg *lsg;
struct carc_seg *csg;
@@ -289,7 +289,7 @@
isec[Y] = pt[Y];
for (i=0; i<nseg; i++) {
- lng = (unsigned long *)sk->curve.segment[i];
+ lng = (uint32_t *)sk->curve.segment[i];
switch (*lng) {
case CURVE_LSEG_MAGIC:
@@ -379,7 +379,7 @@
fastf_t nseg, radius;
int i, j;
- unsigned long *lng;
+ uint32_t *lng;
struct line_seg *lsg;
struct carc_seg *csg;
struct nurb_seg *nsg;
@@ -390,7 +390,7 @@
bounds[1] = bounds[3] = -FLT_MAX;
for (i=0; i<nseg; i++) {
- lng = (unsigned long *)sk->curve.segment[i];
+ lng = (uint32_t *)sk->curve.segment[i];
switch (*lng) {
case CURVE_LSEG_MAGIC:
@@ -450,7 +450,7 @@
rt_sketch_degree(struct rt_sketch_internal *sk)
{
- unsigned long *lng;
+ uint32_t *lng;
struct nurb_seg *nsg;
struct bezier_seg *bsg;
int nseg;
@@ -461,7 +461,7 @@
nseg = sk->curve.count;
for (i=0; i<nseg; i++) {
- lng = (unsigned long *)sk->curve.segment[i];
+ lng = (uint32_t *)sk->curve.segment[i];
switch (*lng) {
case CURVE_LSEG_MAGIC:
@@ -492,7 +492,7 @@
{
int ret=0;
int i;
- unsigned long *lng;
+ uint32_t *lng;
struct line_seg *lsg;
struct carc_seg *csg;
struct nurb_seg *nsg;
@@ -510,7 +510,7 @@
VSETALL(semi_b, 0);
VSETALL(center, 0);
- lng = (unsigned long *)seg;
+ lng = (uint32_t *)seg;
switch (*lng) {
case CURVE_LSEG_MAGIC:
lsg = (struct line_seg *)lng;
@@ -1142,11 +1142,11 @@
nbytes += sketch_ip->vert_count*(8*2); /* vertex list */
for (seg_no=0; seg_no < sketch_ip->curve.count; seg_no++) {
- unsigned long *lng;
+ uint32_t *lng;
struct nurb_seg *nseg;
struct bezier_seg *bseg;
- lng = (unsigned long *)sketch_ip->curve.segment[seg_no];
+ lng = (uint32_t *)sketch_ip->curve.segment[seg_no];
switch (*lng) {
case CURVE_LSEG_MAGIC:
nbytes += 12;
@@ -1208,11 +1208,11 @@
struct carc_seg *cseg;
struct nurb_seg *nseg;
struct bezier_seg *bseg;
- unsigned long *lng;
+ uint32_t *lng;
fastf_t tmp_fastf;
/* write segment type ID, and segement parameters */
- lng = (unsigned long *)sketch_ip->curve.segment[seg_no];
+ lng = (uint32_t *)sketch_ip->curve.segment[seg_no];
switch (*lng) {
case CURVE_LSEG_MAGIC:
lseg = (struct line_seg *)lng;
@@ -1484,11 +1484,11 @@
+ sketch_ip->curve.count * SIZEOF_NETWORK_LONG; /* reverse flags */
for (seg_no=0; seg_no < sketch_ip->curve.count; seg_no++) {
- unsigned long *lng;
+ uint32_t *lng;
struct nurb_seg *nseg;
struct bezier_seg *bseg;
- lng = (unsigned long *)sketch_ip->curve.segment[seg_no];
+ lng = (uint32_t *)sketch_ip->curve.segment[seg_no];
switch (*lng) {
case CURVE_LSEG_MAGIC:
/* magic + start + end */
@@ -1556,11 +1556,11 @@
struct carc_seg *cseg;
struct nurb_seg *nseg;
struct bezier_seg *bseg;
- unsigned long *lng;
+ uint32_t *lng;
fastf_t tmp_fastf;
/* write segment type ID, and segement parameters */
- lng = (unsigned long *)sketch_ip->curve.segment[seg_no];
+ lng = (uint32_t *)sketch_ip->curve.segment[seg_no];
switch (*lng) {
case CURVE_LSEG_MAGIC:
lseg = (struct line_seg *)lng;
@@ -1850,11 +1850,11 @@
if (crv->count)
bu_free((char *)crv->reverse, "crv->reverse");
for (i=0; i<crv->count; i++) {
- unsigned long *lng;
+ uint32_t *lng;
struct nurb_seg *nsg;
struct bezier_seg *bsg;
- lng = (unsigned long *)crv->segment[i];
+ lng = (uint32_t *)crv->segment[i];
switch (*lng) {
case CURVE_NURB_MAGIC:
nsg = (struct nurb_seg *)lng;
@@ -1940,14 +1940,14 @@
}
for (j=0; j<crv_out->count; j++) {
- unsigned long *lng;
+ uint32_t *lng;
struct line_seg *lsg_out, *lsg_in;
struct carc_seg *csg_out, *csg_in;
struct nurb_seg *nsg_out, *nsg_in;
struct bezier_seg *bsg_out, *bsg_in;
crv_out->reverse[j] = crv_in->reverse[j];
- lng = (unsigned long *)crv_in->segment[j];
+ lng = (uint32_t *)crv_in->segment[j];
switch (*lng) {
case CURVE_LSEG_MAGIC:
lsg_in = (struct line_seg *)lng;
@@ -2040,7 +2040,7 @@
bu_vls_printf(vls, " SL {");
for (j=0; j<crv->count; j++) {
- switch ((*(unsigned long *)crv->segment[j])) {
+ switch ((*(uint32_t *)crv->segment[j])) {
case CURVE_LSEG_MAGIC:
{
struct line_seg *lsg = (struct line_seg *)crv->segment[j];
@@ -2463,7 +2463,7 @@
void
-rt_curve_reverse_segment(unsigned long *lng)
+rt_curve_reverse_segment(uint32_t *lng)
{
struct line_seg *lsg;
struct carc_seg *csg;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits