From owner-svn-ports-head@freebsd.org Mon Dec 11 12:19:45 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 304EBE9070E; Mon, 11 Dec 2017 12:19:45 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F0ABC391D; Mon, 11 Dec 2017 12:19:44 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBBCJiho025716; Mon, 11 Dec 2017 12:19:44 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBBCJhVl025714; Mon, 11 Dec 2017 12:19:43 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201712111219.vBBCJhVl025714@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 11 Dec 2017 12:19:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456025 - head/games/enigma/files X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/games/enigma/files X-SVN-Commit-Revision: 456025 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 12:19:45 -0000 Author: amdmi3 Date: Mon Dec 11 12:19:43 2017 New Revision: 456025 URL: https://svnweb.freebsd.org/changeset/ports/456025 Log: - Fix c++11 compatibility PR: 222403 Submitted by: rleigh@codelibre.net Added: head/games/enigma/files/patch-src_Value.cc (contents, props changed) head/games/enigma/files/patch-src_lev_Proxy.cc (contents, props changed) Added: head/games/enigma/files/patch-src_Value.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/enigma/files/patch-src_Value.cc Mon Dec 11 12:19:43 2017 (r456025) @@ -0,0 +1,15 @@ +--- src/Value.cc.orig 2017-09-03 15:39:37 UTC ++++ src/Value.cc +@@ -146,10 +146,10 @@ namespace enigma { + val.str[0] = 0; + break; + case BOOL : +- val.dval[0] = false; ++ val.dval[0] = 0; + break; + case OBJECT : +- val.dval[0] = (double) NULL; ++ val.dval[0] = 0; + break; + case NAMEDOBJECT: + ASSERT(false, XLevelRuntime, "Value: illegal type usage"); Added: head/games/enigma/files/patch-src_lev_Proxy.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/enigma/files/patch-src_lev_Proxy.cc Mon Dec 11 12:19:43 2017 (r456025) @@ -0,0 +1,11 @@ +--- src/lev/Proxy.cc.orig 2017-09-03 15:54:50 UTC ++++ src/lev/Proxy.cc +@@ -933,7 +933,7 @@ namespace enigma { namespace lev { + } else if (haveLocalCopy) { + // plain file + basic_ifstream ifs(absExtPath.c_str(), ios::binary | ios::in); +- if (ifs != NULL) ++ if (ifs) + Readfile(ifs, extCode); + else + haveLocalCopy = false;