Date: Wed, 26 Feb 2014 21:56:40 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346232 - head/games/seahaven/files Message-ID: <201402262156.s1QLueDr024528@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Feb 26 21:56:40 2014 New Revision: 346232 URL: http://svnweb.freebsd.org/changeset/ports/346232 QAT: https://qat.redports.org/buildarchive/r346232/ Log: Tighten up C++ to work with clang. Added: head/games/seahaven/files/patch-auto-C (contents, props changed) head/games/seahaven/files/patch-main-C (contents, props changed) head/games/seahaven/files/patch-seahaven-h (contents, props changed) Added: head/games/seahaven/files/patch-auto-C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/seahaven/files/patch-auto-C Wed Feb 26 21:56:40 2014 (r346232) @@ -0,0 +1,18 @@ +diff -ru work/seahaven-1.60/auto.C work.new/seahaven-1.60/auto.C +--- auto.C 2011-07-10 00:23:59.000000000 -0600 ++++ auto.C 2014-02-25 15:10:30.000000000 -0700 +@@ -486,12 +486,10 @@ + + class MoveCard : public Move { + Card& from; +- MoveCardToMemberFunction mcmf; + public: +- MoveCard(Card& f, Dest& d, MoveCardToMemberFunction mf) +- : Move(d), from(f), mcmf(mf) { } ++ MoveCard(Card& f, Dest& d) ++ : Move(d), from(f) { } + void DoIt() { dest.MoveTo(from); } +-// void DoIt() { dest.*mcmf(from); } + }; + + class MoveCardRange : public Move { Added: head/games/seahaven/files/patch-main-C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/seahaven/files/patch-main-C Wed Feb 26 21:56:40 2014 (r346232) @@ -0,0 +1,11 @@ +diff -ru work/seahaven-1.60/main.C work.new/seahaven-1.60/main.C +--- main.C 2011-07-10 19:35:12.000000000 -0600 ++++ main.C 2014-02-25 15:07:08.000000000 -0700 +@@ -31,6 +31,7 @@ + exit(0); + } + ++int + main(int argc, char **argv) { + const char *displayname = NULL; + const char *name = NULL; Added: head/games/seahaven/files/patch-seahaven-h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/seahaven/files/patch-seahaven-h Wed Feb 26 21:56:40 2014 (r346232) @@ -0,0 +1,12 @@ +diff -ru work/seahaven-1.60/seahaven.h work.new/seahaven-1.60/seahaven.h +--- seahaven.h 2011-07-10 18:42:44.000000000 -0600 ++++ seahaven.h 2014-02-25 15:07:22.000000000 -0700 +@@ -117,7 +117,7 @@ + const char *message; + }; + +-typedef struct ScoreRec *Score; ++typedef class ScoreRec *Score; + + class UndoListRec { + public:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402262156.s1QLueDr024528>