pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/xbill Access static attributes through the class...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3ff492d2efda
branches:  trunk
changeset: 495581:3ff492d2efda
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Tue Jun 14 17:03:37 2005 +0000

description:
Access static attributes through the class itself, not through an instance.
Should fix build problem reported in PR pkg/29452 by A L Meyers.

diffstat:

 games/xbill/distinfo         |   3 ++-
 games/xbill/patches/patch-ad |  34 ++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletions(-)

diffs (52 lines):

diff -r 97a9912204d2 -r 3ff492d2efda games/xbill/distinfo
--- a/games/xbill/distinfo      Tue Jun 14 16:57:49 2005 +0000
+++ b/games/xbill/distinfo      Tue Jun 14 17:03:37 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2005/02/23 23:12:03 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/06/14 17:03:37 jmmv Exp $
 
 SHA1 (xbill-2.0.tgz) = 4ce4e37687801343af5f57c28498bd0b969c0537
 RMD160 (xbill-2.0.tgz) = 8f1551fb5f2bf7b620243ba4787c88c91d00d460
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = e4fad0653c5dae7d7cef3d85bd934a35c9f3d498
 SHA1 (patch-ab) = 245573e1ea2223ed1bde91c16db81a658bfcc8f6
 SHA1 (patch-ac) = c3dd487d0002f528f6726d268673bc11be0b24b6
+SHA1 (patch-ad) = 841d5ff9bbd984b62076a96e82b04e082d09a40c
diff -r 97a9912204d2 -r 3ff492d2efda games/xbill/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xbill/patches/patch-ad      Tue Jun 14 17:03:37 2005 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ad,v 1.1 2005/06/14 17:03:37 jmmv Exp $
+
+--- UI.cc.orig 1997-01-23 17:22:51.000000000 +0100
++++ UI.cc
+@@ -125,10 +125,10 @@ void UI::make_windows() {
+ void UI::popup_dialog (int dialog) {
+       Widget w;
+       switch (dialog) {
+-              case game.ENTERNAME: w = enternamebox; break;
+-              case game.HIGHSCORE: w = highscorebox; break;
+-              case game.SCORE: w = scorebox; break;
+-              case game.ENDGAME: w = endgamebox; break;
++              case Game::ENTERNAME: w = enternamebox; break;
++              case Game::HIGHSCORE: w = highscorebox; break;
++              case Game::SCORE: w = scorebox; break;
++              case Game::ENDGAME: w = endgamebox; break;
+       }
+       popup (NULL, &w, NULL);
+ }
+@@ -139,11 +139,11 @@ void UI::popup_dialog (int dialog) {
+ 
+ void UI::set_cursor(int cursor) {
+       switch (cursor) {
+-      case game.BUCKETC:
++      case Game::BUCKETC:
+               XDefineCursor(display, window, bucket.cursor.cursor); break;
+-      case game.DOWNC:
++      case Game::DOWNC:
+               XDefineCursor(display, window, downcursor.cursor); break;
+-      case game.DEFAULTC:
++      case Game::DEFAULTC:
+               XDefineCursor(display, window, defaultcursor.cursor); break;
+       default:
+               XDefineCursor(display, window, OS.cursor[cursor].cursor);



Home | Main Index | Thread Index | Old Index