[94306] trunk/dports/science/opendx/files/main.diff

jmr at macports.org jmr at macports.org
Thu Jun 14 09:26:15 PDT 2012


Revision: 94306
          https://trac.macports.org/changeset/94306
Author:   jmr at macports.org
Date:     2012-06-14 09:26:13 -0700 (Thu, 14 Jun 2012)
Log Message:
-----------
opendx: fix pointer types

Modified Paths:
--------------
    trunk/dports/science/opendx/files/main.diff

Modified: trunk/dports/science/opendx/files/main.diff
===================================================================
--- trunk/dports/science/opendx/files/main.diff	2012-06-14 16:13:07 UTC (rev 94305)
+++ trunk/dports/science/opendx/files/main.diff	2012-06-14 16:26:13 UTC (rev 94306)
@@ -1,5 +1,5 @@
 --- src/uipp/base/Application.h.orig	2005-11-10 05:26:29.000000000 +1100
-+++ src/uipp/base/Application.h	2012-06-15 01:20:01.000000000 +1000
++++ src/uipp/base/Application.h	2012-06-15 02:19:19.000000000 +1000
 @@ -49,7 +49,7 @@ class Application : public UIComponent, 
      //
      // The main program needs to access protected member functions.
@@ -10,8 +10,8 @@
  
  
 --- src/uipp/dxui/Main.C.orig	2005-12-08 04:50:53.000000000 +1100
-+++ src/uipp/dxui/Main.C	2012-06-15 01:23:08.000000000 +1000
-@@ -48,7 +48,7 @@ extern unsigned long _etext;
++++ src/uipp/dxui/Main.C	2012-06-15 02:23:01.000000000 +1000
+@@ -48,9 +48,10 @@ extern unsigned long _etext;
  //
  const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
   
@@ -19,10 +19,22 @@
 +int main(int argc,
  	  char**       argv)
  {
++    unsigned int argc_unsigned = argc;
  #if defined(HAVE_HCLXMINIT)
+ // The following is not needed with the recent Exceed XDK. If you're
+ // using an XDK < 11.0 then uncomment the following command.
+@@ -104,7 +105,7 @@ int main(unsigned int argc,
+ 
+     // add *tearOffModel:: XmTEAR_OFF_ENABLED/XmTEAR_OFF_DISABLED
+     XmRepTypeInstallTearOffModelConverter();
+-    if (!theApplication->initialize(&argc, argv))
++    if (!theApplication->initialize(&argc_unsigned, argv))
+ 	exit(1);
+ 
+     theApplication->handleEvents();
 --- src/uipp/mb/Main.C.orig	2000-05-21 03:49:40.000000000 +1000
-+++ src/uipp/mb/Main.C	2012-06-15 01:24:36.000000000 +1000
-@@ -22,7 +22,7 @@ extern "C" void HCLXmInit();
++++ src/uipp/mb/Main.C	2012-06-15 02:22:27.000000000 +1000
+@@ -22,9 +22,10 @@ extern "C" void HCLXmInit();
  //
  const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
  
@@ -30,10 +42,22 @@
 +int main(int argc,
  	  char**       argv)
  {
++    unsigned int argc_unsigned = argc;
  #if defined(HAVE_HCLXMINIT)
+     HCLXmInit();
+ #endif
+@@ -39,7 +40,7 @@ int main(unsigned int argc,
+ 	theApplication = new MBApplication("MB");
+     }
+ 
+-    theApplication->initialize(&argc, argv);
++    theApplication->initialize(&argc_unsigned, argv);
+     theApplication->handleEvents();
+ 
+     delete theApplication;
 --- src/uipp/prompter/Main.C.orig	2000-05-17 04:52:59.000000000 +1000
-+++ src/uipp/prompter/Main.C	2012-06-15 01:26:01.000000000 +1000
-@@ -17,7 +17,7 @@ extern "C" void HCLXmInit();
++++ src/uipp/prompter/Main.C	2012-06-15 02:21:29.000000000 +1000
+@@ -17,9 +17,10 @@ extern "C" void HCLXmInit();
  #endif
  
  
@@ -41,10 +65,22 @@
 +int main(int argc,
  	  char**       argv)
  {
++    unsigned int argc_unsigned = argc;
  #if defined(HAVE_HCLXMINIT)
+      HCLXmInit();
+ #endif
+@@ -34,7 +35,7 @@ int main(unsigned int argc,
+ 	theApplication = new GARApplication("GAR");
+     }
+ 
+-    theApplication->initialize(&argc, argv);
++    theApplication->initialize(&argc_unsigned, argv);
+     theApplication->handleEvents();
+ 
+     delete theApplication;
 --- src/uipp/startup/Main.C.orig	2000-05-17 04:53:07.000000000 +1000
-+++ src/uipp/startup/Main.C	2012-06-15 01:26:42.000000000 +1000
-@@ -14,7 +14,7 @@
++++ src/uipp/startup/Main.C	2012-06-15 02:21:18.000000000 +1000
+@@ -14,9 +14,10 @@
  extern "C" void HCLXmInit();
  #endif
  
@@ -52,10 +88,22 @@
 +int main(int argc,
  	  char**       argv)
  {
++    unsigned int argc_unsigned = argc;
  #if defined(HAVE_HCLXMINIT)
+     HCLXmInit();
+ #endif
+@@ -31,7 +32,7 @@ int main(unsigned int argc,
+ 	theApplication = new StartupApplication("Startup");
+     }
+ 
+-    theApplication->initialize(&argc, argv);
++    theApplication->initialize(&argc_unsigned, argv);
+     theApplication->handleEvents();
+ 
+     delete theApplication;
 --- src/uipp/tutor/Main.C.orig	2000-05-17 04:53:15.000000000 +1000
-+++ src/uipp/tutor/Main.C	2012-06-15 01:27:42.000000000 +1000
-@@ -31,7 +31,7 @@ extern "C" void HCLXmInit();
++++ src/uipp/tutor/Main.C	2012-06-15 02:20:48.000000000 +1000
+@@ -31,9 +31,10 @@ extern "C" void HCLXmInit();
  //
  const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
   
@@ -63,4 +111,16 @@
 +int main(int argc,
  	  char**       argv)
  {
++    unsigned int argc_unsigned = argc;
  #if defined(HAVE_HCLXMINIT)
+     HCLXmInit();
+ #endif
+@@ -58,7 +59,7 @@ int main(unsigned int argc,
+ 	theApplication = new TutorApplication("DXTutor");
+     }
+ 
+-    if (!theApplication->initialize(&argc, argv))
++    if (!theApplication->initialize(&argc_unsigned, argv))
+ 	exit(1);
+ 
+     theApplication->handleEvents();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120614/14e80e23/attachment.html>


More information about the macports-changes mailing list