pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/dialog Get rid of the 'extern __inline__' nonsens...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ea33c8ae4f4a
branches:  trunk
changeset: 461397:ea33c8ae4f4a
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Mon Sep 15 15:02:54 2003 +0000

description:
Get rid of the 'extern __inline__' nonsense, thus allowing this to
compile with non-gcc compilers.  Ok jlam@.

diffstat:

 misc/dialog/distinfo         |   4 +-
 misc/dialog/patches/patch-ac |  49 +++++++++++++++++++++++++++++++++++--------
 2 files changed, 42 insertions(+), 11 deletions(-)

diffs (79 lines):

diff -r 4edae61c199a -r ea33c8ae4f4a misc/dialog/distinfo
--- a/misc/dialog/distinfo      Mon Sep 15 14:49:44 2003 +0000
+++ b/misc/dialog/distinfo      Mon Sep 15 15:02:54 2003 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.3 2001/06/19 15:53:11 jlam Exp $
+$NetBSD: distinfo,v 1.4 2003/09/15 15:02:54 jschauma Exp $
 
 SHA1 (dialog-0.6z.tar.gz) = 3c9483554bbb63bb8838e1f7b31f2600a33198ad
 Size (dialog-0.6z.tar.gz) = 50901 bytes
 SHA1 (patch-aa) = 267ffec46c4c7ae070df8eb78ac7db77310a2bad
 SHA1 (patch-ab) = 39318c50019277ffa1cecdb33f16e16c11ad37af
-SHA1 (patch-ac) = 6179f418b01a778fedf16d0885e420a96dd604a4
+SHA1 (patch-ac) = 5862dd0163f2979b8071d8dbc6388c466a162042
 SHA1 (patch-ad) = 90a88a838923423cfe3bdbfc5d9de6d40bd10cee
 SHA1 (patch-ae) = c0aae5c99837a17919fea47734d90fb6006dd381
 SHA1 (patch-af) = 4b47fa64e73deca0bb69ad1bc83102e46eaa01fe
diff -r 4edae61c199a -r ea33c8ae4f4a misc/dialog/patches/patch-ac
--- a/misc/dialog/patches/patch-ac      Mon Sep 15 14:49:44 2003 +0000
+++ b/misc/dialog/patches/patch-ac      Mon Sep 15 15:02:54 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.7 2001/06/19 15:53:11 jlam Exp $
+$NetBSD: patch-ac,v 1.8 2003/09/15 15:02:55 jschauma Exp $
 
---- dialog.h.orig      Fri Aug 18 07:35:06 1995
-+++ dialog.h
+--- dialog.h.orig      1995-08-18 07:35:06.000000000 -0400
++++ dialog.h   2003-09-14 21:47:41.000000000 -0400
 @@ -28,7 +28,7 @@
  #ifdef ultrix
  #include <cursesX.h>
@@ -29,11 +29,42 @@
  int dialog_yesno (const char *title, const char *prompt, int height, int width);
  int dialog_msgbox (const char *title, const char *prompt, int height,
                int width, int pause);
-@@ -196,6 +200,7 @@
- extern __inline__ int
- mouse_wgetch (WINDOW * win)
- {
-+return 0;
- };
+@@ -171,33 +175,11 @@
+  */
+ #ifndef HAVE_LIBGPM
  
+-extern __inline__ void
+-mouse_open (void)
+-{
+-};
+-extern __inline__ void
+-mouse_close (void)
+-{
+-};
+-extern __inline__ void
+-mouse_mkregion (int y, int x, int height, int width,
+-              int code)
+-{
+-};
+-extern __inline__ void
+-mouse_mkbigregion (int y, int x, int height, int width,
+-                 int nitems, int th, int mode)
+-{
+-};
+-extern __inline__ void
+-mouse_setbase (int x, int y)
+-{
+-};
+-extern __inline__ int
+-mouse_wgetch (WINDOW * win)
+-{
+-};
+-
++#define mouse_open() {}
++#define mouse_close() {}
++#define mouse_mkregion(y, x, height, width, code) {}
++#define mouse_mkbigregion(y, x, height, width, nitems, th, mode) {}
++#define mouse_setbase(x, y) {}
  #define mouse_wgetch(w) wgetch(w)
+ 
+ #else



Home | Main Index | Thread Index | Old Index