pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/libdrg inline -> static inline to make sure ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b53aeacdf1f
branches:  trunk
changeset: 610494:3b53aeacdf1f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Oct 26 20:41:00 2012 +0000

description:
inline -> static inline to make sure it gets used.

diffstat:

 geography/libdrg/distinfo                  |   3 +-
 geography/libdrg/patches/patch-drg__tiff.c |  49 ++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r ec2f96ec8119 -r 3b53aeacdf1f geography/libdrg/distinfo
--- a/geography/libdrg/distinfo Fri Oct 26 20:39:57 2012 +0000
+++ b/geography/libdrg/distinfo Fri Oct 26 20:41:00 2012 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/08/11 02:53:02 gdt Exp $
+$NetBSD: distinfo,v 1.2 2012/10/26 20:41:00 joerg Exp $
 
 SHA1 (libdrg-0.0.81.tar.gz) = 48e45c91710adce23e6cf41a8c5d0368681db1a6
 RMD160 (libdrg-0.0.81.tar.gz) = 2fb8b5fee6464ec47c2ada9f474304003edfee6c
 Size (libdrg-0.0.81.tar.gz) = 320228 bytes
+SHA1 (patch-drg__tiff.c) = a8ea12efaef2b03c5754752f58c785fb049535b1
diff -r ec2f96ec8119 -r 3b53aeacdf1f geography/libdrg/patches/patch-drg__tiff.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/libdrg/patches/patch-drg__tiff.c        Fri Oct 26 20:41:00 2012 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-drg__tiff.c,v 1.1 2012/10/26 20:41:00 joerg Exp $
+
+--- drg_tiff.c.orig    2012-10-26 15:50:54.000000000 +0000
++++ drg_tiff.c
+@@ -206,7 +206,7 @@ drgp_ensure_valid(drg_t *drgp)
+  * per northing per map, or about 1k times for a full-screen display.
+  */
+ 
+-inline int
++static inline int
+ drg_tiff_valid_northing(drg_t *drgp, double northing)
+ {
+   return( drgp &&
+@@ -222,7 +222,7 @@ drg_tiff_valid_northing(drg_t *drgp, dou
+  * case (1:25000, 1:100000), it's better to use the next smaller scale
+  * map than to subsample by 4.
+  */
+-inline int
++static inline int
+ drg_scale_valid(drg_t *drgp, double scale)
+ {
+   int ok;
+@@ -563,7 +563,7 @@ drg_tiff_start_line()
+ /*
+  * Open file, else return 0
+  */
+-inline int
++static inline int
+ drg_tiff_ensure_open(drg_t *drgp)
+ {
+   int32_t length;
+@@ -610,7 +610,7 @@ drg_tiff_ensure_open(drg_t *drgp)
+ /*
+  * Allocate strip buffer, else return 0;
+  */
+-inline int
++static inline int
+ drg_tiff_ensure_scanline_buf(drg_t *drgp)
+ {
+   if ( ! drg_tiff_ensure_open(drgp) ) return 0;
+@@ -626,7 +626,7 @@ drg_tiff_ensure_scanline_buf(drg_t *drgp
+   return 1;
+ }
+ 
+-inline int
++static inline int
+ drg_tiff_ensure_scanline_number(drg_t *drgp, int scanline)
+ {
+   int i;



Home | Main Index | Thread Index | Old Index