mico.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. diff -Naur mico.orig/Makefile mico/Makefile
  2. --- mico.orig/Makefile Fri Feb 14 11:55:53 2003
  3. +++ mico/Makefile Fri Feb 14 14:15:35 2003
  4. @@ -72,7 +72,7 @@
  5. $(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
  6. $(IMANCMD) doc/doc.ps $(SHARED_INSTDIR)/doc/mico/manual.ps; \
  7. fi
  8. - -ldconfig
  9. +# -ldconfig
  10. install-cd:
  11. for i in $(INSTALLDIRS); do $(MAKE) -C $$i install-cd || exit 1; done
  12. diff -Naur mico.orig/include/mico/os-math.h mico/include/mico/os-math.h
  13. --- mico.orig/include/mico/os-math.h 2003-05-26 12:55:46.000000000 +0200
  14. +++ mico/include/mico/os-math.h 2003-07-01 12:00:36.000000000 +0200
  15. @@ -279,11 +279,7 @@
  16. #include <unistd.h>
  17. #include <signal.h>
  18. #include <sys/types.h>
  19. -
  20. -#if !defined(__GNUG__) || !defined(__sgi)
  21. -// conflict for initstate ()
  22. -#include <math.h>
  23. -#endif
  24. +#include <cmath>
  25. #ifdef HAVE_FLOAT_H
  26. #include <float.h>
  27. @@ -343,6 +339,7 @@
  28. static MICO_Boolean is_infinity (MICO_Double d)
  29. {
  30. + using namespace std;
  31. #if defined(HAVE_ISINF)
  32. return isinf (d);
  33. #elif defined(HAVE_FINITE) && defined(HAVE_ISNAN)
  34. @@ -354,6 +351,7 @@
  35. static MICO_Boolean is_nan (MICO_Double d)
  36. {
  37. + using namespace std;
  38. #if defined(HAVE_ISNAN)
  39. return isnan (d);
  40. #else
  41. @@ -402,6 +400,7 @@
  42. static MICO_Boolean is_infinityl (MICO_LongDouble d)
  43. {
  44. + using namespace std;
  45. #if defined(HAVE_ISINFL)
  46. return isinfl (d);
  47. #elif defined(HAVE_ISINF)
  48. @@ -413,6 +412,7 @@
  49. static MICO_Boolean is_nanl (MICO_LongDouble d)
  50. {
  51. + using namespace std;
  52. #if defined(HAVE_ISNANL)
  53. return isnanl (d);
  54. #elif defined(HAVE_ISNAN)
  55. diff -Naur mico.orig/auxdir/tclmico.cc mico/auxdir/tclmico.cc
  56. --- mico.orig/auxdir/tclmico.cc Fri Dec 11 14:24:55 1998
  57. +++ mico/auxdir/tclmico.cc Wed Jul 30 16:14:17 2003
  58. @@ -46,9 +46,9 @@
  59. TclDispatcher *disp = event->disp;
  60. CORBA::Long handle = event->handle;
  61. - set<FileEvent *, less<FileEvent *> > seen;
  62. + std::set<FileEvent *, std::less<FileEvent *> > seen;
  63. while (42) {
  64. - list<FileEvent *>::iterator i;
  65. + std::list<FileEvent *>::iterator i;
  66. for (i = disp->fevents.begin(); i != disp->fevents.end(); ++i) {
  67. if ((*i)->handle != handle)
  68. continue;
  69. @@ -80,7 +80,7 @@
  70. TimerEvent *event = (TimerEvent *)_event;
  71. TclDispatcher *disp = event->disp;
  72. - list<TimerEvent *>::iterator i;
  73. + std::list<TimerEvent *>::iterator i;
  74. for (i = disp->tevents.begin(); i != disp->tevents.end(); ++i) {
  75. if ((*i) == event) {
  76. disp->tevents.erase(i);
  77. @@ -97,13 +97,13 @@
  78. TclDispatcher::~TclDispatcher ()
  79. {
  80. - list<FileEvent *>::iterator i;
  81. + std::list<FileEvent *>::iterator i;
  82. for (i = fevents.begin(); i != fevents.end(); ++i) {
  83. (*i)->cb->callback (this, Remove);
  84. delete *i;
  85. }
  86. - list<TimerEvent *>::iterator j;
  87. + std::list<TimerEvent *>::iterator j;
  88. for (j = tevents.begin(); j != tevents.end(); ++j) {
  89. (*j)->cb->callback (this, Remove);
  90. delete *j;
  91. @@ -123,7 +123,7 @@
  92. ev = 0;
  93. int mask = 0;
  94. - list<FileEvent *>::iterator i;
  95. + std::list<FileEvent *>::iterator i;
  96. for (i = fevents.begin(); i != fevents.end(); ++i) {
  97. if ((*i)->handle != handle)
  98. continue;
  99. @@ -183,7 +183,7 @@
  100. TclDispatcher::remove (CORBA::DispatcherCallback *cb, Event e)
  101. {
  102. if (e == All || e == Timer) {
  103. - list<TimerEvent *>::iterator i, next;
  104. + std::list<TimerEvent *>::iterator i, next;
  105. for (i = tevents.begin(); i != tevents.end(); i = next) {
  106. next = i;
  107. ++next;
  108. @@ -195,7 +195,7 @@
  109. }
  110. }
  111. if (e == All || e == Read || e == Write || e == Except) {
  112. - list<FileEvent *>::iterator i, next;
  113. + std::list<FileEvent *>::iterator i, next;
  114. for (i = fevents.begin(); i != fevents.end(); i = next) {
  115. next = i;
  116. ++next;
  117. diff -Naur mico.orig/include/mico/tclmico.h mico/include/mico/tclmico.h
  118. --- mico.orig/include/mico/tclmico.h Mon May 26 12:55:46 2003
  119. +++ mico/include/mico/tclmico.h Wed Jul 30 16:13:57 2003
  120. @@ -57,8 +57,8 @@
  121. : disp (_disp), token (_token), cb (_cb)
  122. {}
  123. };
  124. - list<FileEvent *> fevents;
  125. - list<TimerEvent *> tevents;
  126. + std::list<FileEvent *> fevents;
  127. + std::list<TimerEvent *> tevents;
  128. static void input_callback (ClientData, int mask);
  129. static void timer_callback (ClientData);