pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/flightgear



Module Name:    pkgsrc
Committed By:   joerg
Date:           Wed Feb  8 00:03:30 UTC 2017

Modified Files:
        pkgsrc/games/flightgear: distinfo
Added Files:
        pkgsrc/games/flightgear/patches: patch-src_FDM_JSBSim_FGFDMExec.cpp
            patch-src_FDM_JSBSim_input__output_FGScript.cpp
            patch-src_FDM_JSBSim_models_FGInput.cpp

Log Message:
Pointers and 0 are not ordered.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/games/flightgear/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_FGFDMExec.cpp \
    pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_input__output_FGScript.cpp \
    pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_models_FGInput.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/flightgear/distinfo
diff -u pkgsrc/games/flightgear/distinfo:1.7 pkgsrc/games/flightgear/distinfo:1.8
--- pkgsrc/games/flightgear/distinfo:1.7        Sat May  7 09:56:57 2016
+++ pkgsrc/games/flightgear/distinfo    Wed Feb  8 00:03:30 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2016/05/07 09:56:57 joerg Exp $
+$NetBSD: distinfo,v 1.8 2017/02/08 00:03:30 joerg Exp $
 
 SHA1 (flightgear-2.8.0.tar.bz2) = fee4b2f1f6aca8e163ea018ae9897b99971c20bd
 RMD160 (flightgear-2.8.0.tar.bz2) = 97d8f572aeb186bfed27eb5b06803a0fa5213a61
@@ -7,6 +7,9 @@ Size (flightgear-2.8.0.tar.bz2) = 231102
 SHA1 (patch-CMakeModules_FindPLIB_cmake) = c5761d425743761f5f0c711ef2ca384a06f6d524
 SHA1 (patch-src_Canvas_ShivaVG_src_shConfig_h) = bd70a1e41a59196e31789e38ec67e65cef546edf
 SHA1 (patch-src_Canvas_ShivaVG_src_shDefs.h) = a71c8f03ccf871cda5bcc4c80a34a2df55c38b37
+SHA1 (patch-src_FDM_JSBSim_FGFDMExec.cpp) = 251d84aa2cfdd854f5b3061bbb5cff4ad382f5a8
+SHA1 (patch-src_FDM_JSBSim_input__output_FGScript.cpp) = e683fecdc1d01df3029c1d23923c3d63145ce29b
+SHA1 (patch-src_FDM_JSBSim_models_FGInput.cpp) = fa044c54b02c39857b5df183f183c04fdc2e2b11
 SHA1 (patch-src_FDM_JSBSim_models_propulsion_FGEngine.cpp) = 9c066364096452868194f84d8c853131aec83f80
 SHA1 (patch-src_Main_locale_cxx) = 327f4103ff3aea60f2394a2ed192c5f6af36f60b
 SHA1 (patch-src_Network_ATC-Inputs_cxx) = 08644c682ddddcefea48aa84fa538b8fd20289c0

Added files:

Index: pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_FGFDMExec.cpp
diff -u /dev/null pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_FGFDMExec.cpp:1.1
--- /dev/null   Wed Feb  8 00:03:30 2017
+++ pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_FGFDMExec.cpp  Wed Feb  8 00:03:30 2017
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_FDM_JSBSim_FGFDMExec.cpp,v 1.1 2017/02/08 00:03:30 joerg Exp $
+
+--- src/FDM/JSBSim/FGFDMExec.cpp.orig  2017-01-09 15:19:01.104940701 +0000
++++ src/FDM/JSBSim/FGFDMExec.cpp
+@@ -188,7 +188,7 @@ FGFDMExec::~FGFDMExec()
+ 
+   PropertyCatalog.clear();
+ 
+-  if (FDMctr > 0) (*FDMctr)--;
++  if (FDMctr) (*FDMctr)--;
+ 
+   Debug(1);
+ }
Index: pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_input__output_FGScript.cpp
diff -u /dev/null pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_input__output_FGScript.cpp:1.1
--- /dev/null   Wed Feb  8 00:03:30 2017
+++ pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_input__output_FGScript.cpp     Wed Feb  8 00:03:30 2017
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_FDM_JSBSim_input__output_FGScript.cpp,v 1.1 2017/02/08 00:03:30 joerg Exp $
+
+--- src/FDM/JSBSim/input_output/FGScript.cpp.orig      2017-01-09 15:19:43.879132741 +0000
++++ src/FDM/JSBSim/input_output/FGScript.cpp
+@@ -185,12 +185,12 @@ bool FGScript::LoadScript(string script,
+   }
+ 
+   // Now, read input spec if given.
+-  if (input_element > 0) {
++  if (input_element) {
+     FDMExec->GetInput()->Load(input_element);
+   }
+ 
+   // Now, read output spec if given.
+-  if (output_element > 0) {
++  if (output_element) {
+     string output_file = output_element->GetAttributeValue("file");
+     if (output_file.empty()) {
+       cerr << "No logging directives file was specified." << endl;
Index: pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_models_FGInput.cpp
diff -u /dev/null pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_models_FGInput.cpp:1.1
--- /dev/null   Wed Feb  8 00:03:30 2017
+++ pkgsrc/games/flightgear/patches/patch-src_FDM_JSBSim_models_FGInput.cpp     Wed Feb  8 00:03:30 2017
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_FDM_JSBSim_models_FGInput.cpp,v 1.1 2017/02/08 00:03:30 joerg Exp $
+
+--- src/FDM/JSBSim/models/FGInput.cpp.orig     2017-01-09 15:20:24.952109589 +0000
++++ src/FDM/JSBSim/models/FGInput.cpp
+@@ -161,7 +161,7 @@ bool FGInput::Run(bool Holding)
+           } else {
+             socket->Reply("Must be in HOLD to search properties\n");
+           }
+-        } else if (node > 0) {
++        } else if (node) {
+           ostringstream buf;
+           buf << argument << " = " << setw(12) << setprecision(6) << node->getDoubleValue() << endl;
+           socket->Reply(buf.str());



Home | Main Index | Thread Index | Old Index