opendx-4.4.4-gcc43.patch 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. diff -up dx-4.4.4/src/uipp/startup/StartupApplication.C.gcc43 dx-4.4.4/src/uipp/startup/StartupApplication.C
  2. --- dx-4.4.4/src/uipp/startup/StartupApplication.C.gcc43 2005-11-10 20:48:22.000000000 +0100
  3. +++ dx-4.4.4/src/uipp/startup/StartupApplication.C 2008-01-07 21:55:03.000000000 +0100
  4. @@ -117,7 +117,7 @@ InitializeSignals(void)
  5. #endif
  6. }
  7. -boolean StartupApplication::initialize(unsigned int* argcp,
  8. +boolean StartupApplication::initialize(int* argcp,
  9. char** argv)
  10. {
  11. ASSERT(argcp);
  12. diff -up dx-4.4.4/src/uipp/startup/StartupApplication.h.gcc43 dx-4.4.4/src/uipp/startup/StartupApplication.h
  13. --- dx-4.4.4/src/uipp/startup/StartupApplication.h.gcc43 2003-09-20 07:33:56.000000000 +0200
  14. +++ dx-4.4.4/src/uipp/startup/StartupApplication.h 2008-01-07 21:50:47.000000000 +0100
  15. @@ -84,7 +84,7 @@ class StartupApplication : public IBMApp
  16. // Overrides the Application class version:
  17. // Initializes Xt Intrinsics with option list (switches).
  18. //
  19. - virtual boolean initialize(unsigned int* argcp, char**argv);
  20. + virtual boolean initialize(int* argcp, char**argv);
  21. CommandScope *commandScope; // command scope
  22. diff -up dx-4.4.4/src/uipp/startup/Main.C.gcc43 dx-4.4.4/src/uipp/startup/Main.C
  23. --- dx-4.4.4/src/uipp/startup/Main.C.gcc43 2000-05-16 20:53:07.000000000 +0200
  24. +++ dx-4.4.4/src/uipp/startup/Main.C 2008-01-07 19:57:58.000000000 +0100
  25. @@ -14,7 +14,7 @@
  26. extern "C" void HCLXmInit();
  27. #endif
  28. -int main(unsigned int argc,
  29. +int main( int argc,
  30. char** argv)
  31. {
  32. #if defined(HAVE_HCLXMINIT)
  33. diff -up dx-4.4.4/src/uipp/base/Application.C.gcc43 dx-4.4.4/src/uipp/base/Application.C
  34. --- dx-4.4.4/src/uipp/base/Application.C.gcc43 2005-11-09 19:56:17.000000000 +0100
  35. +++ dx-4.4.4/src/uipp/base/Application.C 2008-01-07 22:39:15.000000000 +0100
  36. @@ -136,7 +136,7 @@ void Application::installDefaultResource
  37. //this->setDefaultResources(baseWidget, Application::DefaultResources);
  38. }
  39. -boolean Application::initializeWindowSystem(unsigned int *argcp, char **argv)
  40. +boolean Application::initializeWindowSystem(int *argcp, char **argv)
  41. {
  42. //
  43. @@ -149,7 +149,7 @@ boolean Application::initializeWindowSys
  44. NULL, // command line options table
  45. 0, // number of entries in options table
  46. #if XtSpecificationRelease > 4
  47. - (int*)argcp,
  48. + argcp,
  49. #else
  50. argcp,
  51. #endif
  52. @@ -235,7 +235,7 @@ boolean Application::initializeWindowSys
  53. return TRUE;
  54. }
  55. -void Application::parseCommand(unsigned int* argcp, char** argv,
  56. +void Application::parseCommand(int* argcp, char** argv,
  57. XrmOptionDescList optlist, int optlistsize)
  58. {
  59. char res_file[256];
  60. @@ -280,7 +280,7 @@ void Application::parseCommand(unsigned
  61. //
  62. }
  63. -boolean Application::initialize(unsigned int* argcp, char** argv)
  64. +boolean Application::initialize(int* argcp, char** argv)
  65. {
  66. //
  67. // Initialize the window system if not done already.
  68. diff -up dx-4.4.4/src/uipp/base/Application.h.gcc43 dx-4.4.4/src/uipp/base/Application.h
  69. --- dx-4.4.4/src/uipp/base/Application.h.gcc43 2005-11-09 19:26:29.000000000 +0100
  70. +++ dx-4.4.4/src/uipp/base/Application.h 2008-01-07 21:49:49.000000000 +0100
  71. @@ -49,7 +49,7 @@ class Application : public UIComponent,
  72. //
  73. // The main program needs to access protected member functions.
  74. //
  75. - friend int main(unsigned int argc,
  76. + friend int main( int argc,
  77. char** argv);
  78. @@ -71,9 +71,9 @@ class Application : public UIComponent,
  79. //
  80. // Initialize the window system.
  81. //
  82. - virtual boolean initializeWindowSystem(unsigned int *argcp, char **argv);
  83. + virtual boolean initializeWindowSystem(int *argcp, char **argv);
  84. - virtual void parseCommand(unsigned int* argcp, char** argv,
  85. + virtual void parseCommand(int* argcp, char** argv,
  86. XrmOptionDescList optlist, int optlistsize);
  87. //
  88. @@ -145,7 +145,7 @@ class Application : public UIComponent,
  89. // Initializes any Application specfic state. This routine should
  90. // be called by main() or subclasses only.
  91. //
  92. - virtual boolean initialize(unsigned int* argcp, char** argv);
  93. + virtual boolean initialize(int* argcp, char** argv);
  94. //
  95. // Allow others to access our event processing mechanism
  96. diff -up dx-4.4.4/src/uipp/base/IBMApplication.C.gcc43 dx-4.4.4/src/uipp/base/IBMApplication.C
  97. --- dx-4.4.4/src/uipp/base/IBMApplication.C.gcc43 2004-04-02 22:32:43.000000000 +0200
  98. +++ dx-4.4.4/src/uipp/base/IBMApplication.C 2008-01-07 21:53:29.000000000 +0100
  99. @@ -349,7 +349,7 @@ int status;
  100. }
  101. -boolean IBMApplication::initializeWindowSystem(unsigned int *argcp, char **argv)
  102. +boolean IBMApplication::initializeWindowSystem(int *argcp, char **argv)
  103. {
  104. if (!this->Application::initializeWindowSystem(argcp, argv))
  105. @@ -375,7 +375,7 @@ boolean IBMApplication::initializeWindow
  106. return TRUE;
  107. }
  108. -boolean IBMApplication::initialize(unsigned int* argcp,
  109. +boolean IBMApplication::initialize(int* argcp,
  110. char** argv)
  111. {
  112. if (!this->Application::initialize(argcp,argv))
  113. diff -up dx-4.4.4/src/uipp/base/IBMApplication.h.gcc43 dx-4.4.4/src/uipp/base/IBMApplication.h
  114. --- dx-4.4.4/src/uipp/base/IBMApplication.h.gcc43 2003-09-20 07:35:22.000000000 +0200
  115. +++ dx-4.4.4/src/uipp/base/IBMApplication.h 2008-01-07 21:50:19.000000000 +0100
  116. @@ -77,7 +77,7 @@ class IBMApplication : public Applicatio
  117. //
  118. // Initialize the window system.
  119. //
  120. - virtual boolean initializeWindowSystem(unsigned int *argcp, char **argv);
  121. + virtual boolean initializeWindowSystem(int *argcp, char **argv);
  122. //
  123. // Protected member data:
  124. @@ -88,7 +88,7 @@ class IBMApplication : public Applicatio
  125. HelpWin *helpWindow;
  126. - boolean initialize(unsigned int* argcp, char** argv);
  127. + boolean initialize(int* argcp, char** argv);
  128. //
  129. // Load application specific action routines
  130. diff -up dx-4.4.4/src/uipp/tutor/TutorApplication.h.gcc43 dx-4.4.4/src/uipp/tutor/TutorApplication.h
  131. --- dx-4.4.4/src/uipp/tutor/TutorApplication.h.gcc43 1999-05-10 17:46:30.000000000 +0200
  132. +++ dx-4.4.4/src/uipp/tutor/TutorApplication.h 2008-01-07 21:49:29.000000000 +0100
  133. @@ -69,7 +69,7 @@ class TutorApplication : public IBMAppli
  134. // Overrides the Application class version:
  135. // Initializes Xt Intrinsics with option list (switches).
  136. //
  137. - virtual boolean initialize(unsigned int* argcp,
  138. + virtual boolean initialize(int* argcp,
  139. char** argv);
  140. //
  141. diff -up dx-4.4.4/src/uipp/tutor/Main.C.gcc43 dx-4.4.4/src/uipp/tutor/Main.C
  142. --- dx-4.4.4/src/uipp/tutor/Main.C.gcc43 2000-05-16 20:53:15.000000000 +0200
  143. +++ dx-4.4.4/src/uipp/tutor/Main.C 2008-01-07 19:57:39.000000000 +0100
  144. @@ -31,7 +31,7 @@ extern "C" void HCLXmInit();
  145. //
  146. const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
  147. -int main(unsigned int argc,
  148. +int main( int argc,
  149. char** argv)
  150. {
  151. #if defined(HAVE_HCLXMINIT)
  152. diff -up dx-4.4.4/src/uipp/tutor/TutorApplication.C.gcc43 dx-4.4.4/src/uipp/tutor/TutorApplication.C
  153. --- dx-4.4.4/src/uipp/tutor/TutorApplication.C.gcc43 2006-05-08 18:20:14.000000000 +0200
  154. +++ dx-4.4.4/src/uipp/tutor/TutorApplication.C 2008-01-07 21:56:09.000000000 +0100
  155. @@ -196,7 +196,7 @@ InitializeSignals(void)
  156. #endif
  157. }
  158. -boolean TutorApplication::initialize(unsigned int* argcp,
  159. +boolean TutorApplication::initialize(int* argcp,
  160. char** argv)
  161. {
  162. ASSERT(argcp);
  163. diff -up dx-4.4.4/src/uipp/widgets/MultiText.h.gcc43 dx-4.4.4/src/uipp/widgets/MultiText.h
  164. --- dx-4.4.4/src/uipp/widgets/MultiText.h.gcc43 2006-01-03 01:12:34.000000000 +0100
  165. +++ dx-4.4.4/src/uipp/widgets/MultiText.h 2008-01-07 19:06:27.000000000 +0100
  166. @@ -91,7 +91,7 @@ typedef struct _XmMultiTextClassRec* XmM
  167. #define XmNsmoothScroll "smoothScroll"
  168. #define XmNwaitCursorCount "waitCursorCount"
  169. -#if !(defined(_Xm_h) || defined(XM_H))
  170. +#if !(defined(_Xm_h) || defined(XM_H) || defined(_XM_XM_H))
  171. #define XmNmarginHeight "marginHeight"
  172. #define XmNmarginWidth "marginWidth"
  173. #define XmNwordWrap "wordWrap"
  174. @@ -109,7 +109,7 @@ typedef struct _XmMultiTextClassRec* XmM
  175. #define XmCSmoothScroll "SmoothScroll"
  176. #define XmCWaitCursorCount "WaitCursorCount"
  177. -#if !(defined(_Xm_h) || defined(XM_H))
  178. +#if !(defined(_Xm_h) || defined(XM_H) || defined(_XM_XM_H))
  179. #define XmCMarginHeight "MarginHeight"
  180. #define XmCMarginWidth "MarginWidth"
  181. #define XmCWordWrap "WordWrap"
  182. diff -up dx-4.4.4/src/uipp/dxui/Main.C.gcc43 dx-4.4.4/src/uipp/dxui/Main.C
  183. --- dx-4.4.4/src/uipp/dxui/Main.C.gcc43 2005-12-07 18:50:53.000000000 +0100
  184. +++ dx-4.4.4/src/uipp/dxui/Main.C 2008-01-07 19:57:21.000000000 +0100
  185. @@ -48,7 +48,7 @@ extern unsigned long _etext;
  186. //
  187. const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
  188. -int main(unsigned int argc,
  189. +int main( int argc,
  190. char** argv)
  191. {
  192. #if defined(HAVE_HCLXMINIT)
  193. diff -up dx-4.4.4/src/uipp/prompter/GARApplication.h.gcc43 dx-4.4.4/src/uipp/prompter/GARApplication.h
  194. --- dx-4.4.4/src/uipp/prompter/GARApplication.h.gcc43 2003-09-20 07:33:21.000000000 +0200
  195. +++ dx-4.4.4/src/uipp/prompter/GARApplication.h 2008-01-07 21:49:05.000000000 +0100
  196. @@ -129,7 +129,7 @@ class GARApplication : public IBMApplica
  197. // Overrides the Application class version:
  198. // Initializes Xt Intrinsics with option list (switches).
  199. //
  200. - virtual boolean initialize(unsigned int* argcp,
  201. + virtual boolean initialize(int* argcp,
  202. char** argv);
  203. CommandScope *commandScope; // command scope
  204. diff -up dx-4.4.4/src/uipp/prompter/Main.C.gcc43 dx-4.4.4/src/uipp/prompter/Main.C
  205. --- dx-4.4.4/src/uipp/prompter/Main.C.gcc43 2000-05-16 20:52:59.000000000 +0200
  206. +++ dx-4.4.4/src/uipp/prompter/Main.C 2008-01-07 19:57:01.000000000 +0100
  207. @@ -17,7 +17,7 @@ extern "C" void HCLXmInit();
  208. #endif
  209. -int main(unsigned int argc,
  210. +int main( int argc,
  211. char** argv)
  212. {
  213. #if defined(HAVE_HCLXMINIT)
  214. diff -up dx-4.4.4/src/uipp/prompter/GARApplication.C.gcc43 dx-4.4.4/src/uipp/prompter/GARApplication.C
  215. --- dx-4.4.4/src/uipp/prompter/GARApplication.C.gcc43 2006-05-08 18:20:13.000000000 +0200
  216. +++ dx-4.4.4/src/uipp/prompter/GARApplication.C 2008-01-07 21:54:28.000000000 +0100
  217. @@ -198,7 +198,7 @@ InitializeSignals(void)
  218. }
  219. }
  220. -boolean GARApplication::initialize(unsigned int* argcp,
  221. +boolean GARApplication::initialize(int* argcp,
  222. char** argv)
  223. {
  224. ASSERT(argcp);
  225. diff -up dx-4.4.4/src/uipp/dxuilib/DXApplication.h.gcc43 dx-4.4.4/src/uipp/dxuilib/DXApplication.h
  226. --- dx-4.4.4/src/uipp/dxuilib/DXApplication.h.gcc43 2006-05-08 18:20:10.000000000 +0200
  227. +++ dx-4.4.4/src/uipp/dxuilib/DXApplication.h 2008-01-07 21:14:12.000000000 +0100
  228. @@ -372,7 +372,7 @@ class DXApplication : public IBMApplicat
  229. // Overrides the Application class version:
  230. // Initializes Xt Intrinsics with option list (switches).
  231. //
  232. - virtual boolean initialize(unsigned int* argcp,
  233. + virtual boolean initialize(int* argcp,
  234. char** argv);
  235. //
  236. diff -up dx-4.4.4/src/uipp/dxuilib/DXApplication.C.gcc43 dx-4.4.4/src/uipp/dxuilib/DXApplication.C
  237. --- dx-4.4.4/src/uipp/dxuilib/DXApplication.C.gcc43 2006-06-22 21:45:34.000000000 +0200
  238. +++ dx-4.4.4/src/uipp/dxuilib/DXApplication.C 2008-01-07 21:32:56.000000000 +0100
  239. @@ -2248,7 +2248,7 @@ void DXApplication::installDefaultResour
  240. this->setDefaultResources(baseWidget, _defaultDXResources);
  241. this->IBMApplication::installDefaultResources(baseWidget);
  242. }
  243. -boolean DXApplication::initialize(unsigned int* argcp,
  244. +boolean DXApplication::initialize(int* argcp,
  245. char** argv)
  246. {
  247. boolean wasSetBusy = FALSE;
  248. diff -up dx-4.4.4/src/uipp/mb/Main.C.gcc43 dx-4.4.4/src/uipp/mb/Main.C
  249. --- dx-4.4.4/src/uipp/mb/Main.C.gcc43 2000-05-20 19:49:40.000000000 +0200
  250. +++ dx-4.4.4/src/uipp/mb/Main.C 2008-01-07 19:56:41.000000000 +0100
  251. @@ -22,7 +22,7 @@ extern "C" void HCLXmInit();
  252. //
  253. const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n";
  254. -int main(unsigned int argc,
  255. +int main( int argc,
  256. char** argv)
  257. {
  258. #if defined(HAVE_HCLXMINIT)
  259. diff -up dx-4.4.4/src/uipp/mb/MBApplication.C.gcc43 dx-4.4.4/src/uipp/mb/MBApplication.C
  260. --- dx-4.4.4/src/uipp/mb/MBApplication.C.gcc43 2006-05-08 18:20:13.000000000 +0200
  261. +++ dx-4.4.4/src/uipp/mb/MBApplication.C 2008-01-07 21:51:15.000000000 +0100
  262. @@ -117,7 +117,7 @@ InitializeSignals(void)
  263. #endif
  264. }
  265. -boolean MBApplication::initialize(unsigned int* argcp,
  266. +boolean MBApplication::initialize(int* argcp,
  267. char** argv)
  268. {
  269. ASSERT(argcp);
  270. diff -up dx-4.4.4/src/uipp/mb/MBApplication.h.gcc43 dx-4.4.4/src/uipp/mb/MBApplication.h
  271. --- dx-4.4.4/src/uipp/mb/MBApplication.h.gcc43 1999-05-10 17:46:25.000000000 +0200
  272. +++ dx-4.4.4/src/uipp/mb/MBApplication.h 2008-01-07 21:48:38.000000000 +0100
  273. @@ -51,7 +51,7 @@ class MBApplication : public IBMApplicat
  274. // Overrides the Application class version:
  275. // Initializes Xt Intrinsics with option list (switches).
  276. //
  277. - virtual boolean initialize(unsigned int* argcp,
  278. + virtual boolean initialize(int* argcp,
  279. char** argv);
  280. static MBResource resource;