pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/vis5d+ Rename round() to roundnice() to avoi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/602b7fd262bc
branches:  trunk
changeset: 480418:602b7fd262bc
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Sep 08 16:10:08 2004 +0000

description:
Rename round() to roundnice() to avoid conflict with math.h round().
Should fix bulk build.

diffstat:

 geography/vis5d+/distinfo         |   5 ++++-
 geography/vis5d+/patches/patch-aa |  31 +++++++++++++++++++++++++++++++
 geography/vis5d+/patches/patch-ab |  13 +++++++++++++
 geography/vis5d+/patches/patch-ac |  13 +++++++++++++
 4 files changed, 61 insertions(+), 1 deletions(-)

diffs (81 lines):

diff -r 08a7ebfc289f -r 602b7fd262bc geography/vis5d+/distinfo
--- a/geography/vis5d+/distinfo Wed Sep 08 16:02:27 2004 +0000
+++ b/geography/vis5d+/distinfo Wed Sep 08 16:10:08 2004 +0000
@@ -1,4 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/10/05 16:43:08 jschauma Exp $
+$NetBSD: distinfo,v 1.2 2004/09/08 16:10:08 wiz Exp $
 
 SHA1 (vis5d+-1.2.1.tar.gz) = d99ec14fd8e6e482ab360abbd00adf36e7fd541b
 Size (vis5d+-1.2.1.tar.gz) = 2278840 bytes
+SHA1 (patch-aa) = 114ed11fbf8368554d1f57562a3423010cd155ba
+SHA1 (patch-ab) = 923d373d343ede9ec621e6514ff3ad6dcbce777b
+SHA1 (patch-ac) = 1389db298fe78372b048899a72f87bb7ffcf4e58
diff -r 08a7ebfc289f -r 602b7fd262bc geography/vis5d+/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/vis5d+/patches/patch-aa Wed Sep 08 16:10:08 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1 2004/09/08 16:10:08 wiz Exp $
+
+--- src/misc.c.orig    2001-11-07 12:53:12.000000000 +0100
++++ src/misc.c
+@@ -147,7 +147,7 @@ int installed( char *program )
+ /*** round ************************************************************
+    Round off x to a 'nice' value.
+ **********************************************************************/
+-float round( float x )
++float roundnice( float x )
+ {
+    float base, fudge;
+    int temp;
+@@ -273,7 +273,7 @@ void init_graphics_pos( Context ctx, int
+       ctx->Variable[var]->HSliceRequest->Interval = 0.0;
+    }
+    else {
+-      ctx->Variable[var]->HSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal)
++      ctx->Variable[var]->HSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal)
+                                         / 10.0 );
+    }
+ 
+@@ -309,7 +309,7 @@ void init_graphics_pos( Context ctx, int
+       ctx->Variable[var]->VSliceRequest->Interval = 0.0;
+    }
+    else {
+-      ctx->Variable[var]->VSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal)
++      ctx->Variable[var]->VSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal)
+                                         / 10.0 );
+    }
+ 
diff -r 08a7ebfc289f -r 602b7fd262bc geography/vis5d+/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/vis5d+/patches/patch-ab Wed Sep 08 16:10:08 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2004/09/08 16:10:08 wiz Exp $
+
+--- src/misc.h.orig    2001-11-07 12:53:12.000000000 +0100
++++ src/misc.h
+@@ -37,7 +37,7 @@
+ 
+ extern void die( char *msg );
+ 
+-extern float round( float x );
++extern float roundnice( float x );
+ 
+ extern int which( char *file, char *fullpath );
+ 
diff -r 08a7ebfc289f -r 602b7fd262bc geography/vis5d+/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/vis5d+/patches/patch-ac Wed Sep 08 16:10:08 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/09/08 16:10:08 wiz Exp $
+
+--- src/work.c.orig    2001-11-07 12:53:30.000000000 +0100
++++ src/work.c
+@@ -6791,7 +6791,7 @@ void set_hslice_pos(Context ctx, int var
+                 request->HighLimit = floor(request->HighLimit*factor)/(float) factor;
+               }
+        }
+-       request->Interval = round((request->HighLimit - request->LowLimit)/5.0);
++       request->Interval = roundnice((request->HighLimit - request->LowLimit)/5.0);
+        
+   }
+ }



Home | Main Index | Thread Index | Old Index