[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] Tweaks for Sun Forte compiler
From: |
Mumit Khan |
Subject: |
[patch] Tweaks for Sun Forte compiler |
Date: |
Wed, 22 May 2002 17:47:27 -0500 (CDT) |
Some trivial changes I needed to get Octave to build under Sun Forte
version 6u1 compiler again. Sun C++ compiler has quite good diagnostics,
and it does spew out quite a few warnings, mostly anachronisms that
should be fixed at some point. I'll look at those when I get some time.
liboctave/ChangeLog:
2002-05-22 Mumit Khan <address@hidden>
* DASPK.cc (ddaspk_psol): Return value.
* oct-rl-edit.c: Use /* ... */ to comment.
src/ChangeLog:
2002-05-22 Mumit Khan <address@hidden>
* debug.cc: Include cstdlib instead of stdlib.h. Include cstring.
(dbtype): Use strchr instead of index.
* TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value):
Fix template specialization syntax.
Index: liboctave/DASPK.cc
===================================================================
RCS file: /cvs/octave/liboctave/DASPK.cc,v
retrieving revision 1.1
diff -u -3 -p -r1.1 DASPK.cc
--- liboctave/DASPK.cc 2002/04/28 03:12:27 1.1
+++ liboctave/DASPK.cc 2002/05/22 20:46:52
@@ -172,6 +172,7 @@ ddaspk_psol (const int& neq, const doubl
double *, int*)
{
abort ();
+ return 0;
}
int
Index: liboctave/oct-rl-edit.c
===================================================================
RCS file: /cvs/octave/liboctave/oct-rl-edit.c,v
retrieving revision 1.12
diff -u -3 -p -r1.12 oct-rl-edit.c
--- liboctave/oct-rl-edit.c 2002/05/15 03:21:00 1.12
+++ liboctave/oct-rl-edit.c 2002/05/22 20:46:52
@@ -68,15 +68,15 @@ octave_rl_enable_paren_matching (int val
rl_variable_bind ("blink-matching-paren", val ? "1" : "0");
}
-// It would be much simpler if we could just call _rl_clear_screen to
-// only clear the screen, but it is not a public function, and on some
-// systems, it is not exported from shared library versions of
-// readline, so we can't use it.
-//
-// Instead, temporarily redefine the redisplay function to do nothing.
-//
-// XXX FIXME XXX -- It would be safer to do this when protected from
-// interrupts...
+/* It would be much simpler if we could just call _rl_clear_screen to
+ only clear the screen, but it is not a public function, and on some
+ systems, it is not exported from shared library versions of
+ readline, so we can't use it.
+
+ Instead, temporarily redefine the redisplay function to do nothing.
+
+ XXX FIXME XXX -- It would be safer to do this when protected from
+ interrupts... */
static void
no_redisplay (void)
Index: src/debug.cc
===================================================================
RCS file: /cvs/octave/src/debug.cc,v
retrieving revision 1.2
diff -u -3 -p -r1.2 debug.cc
--- src/debug.cc 2002/04/10 19:18:39 1.2
+++ src/debug.cc 2002/05/22 20:46:52
@@ -28,7 +28,8 @@ Software Foundation, 59 Temple Place - S
#include <fstream>
#include <strstream>
#include <string>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
#include "defun.h"
#include "error.h"
@@ -405,7 +406,7 @@ List script file with line numbers.\n\
else
error("croaked\n");
- char *ind = index(str,':');
+ char *ind = strchr(str,':');
if (ind)
*ind = '\0';
@@ -448,7 +449,7 @@ List script file with line numbers.\n\
error("not enough memory\n");
- char *ind = index(str,':');
+ char *ind = strchr(str,':');
if (ind)
*ind = '\0';
Index: src/TEMPLATE-INST/Array-tc.cc
===================================================================
RCS file: /cvs/octave/src/TEMPLATE-INST/Array-tc.cc,v
retrieving revision 1.5
diff -u -3 -p -r1.5 Array-tc.cc
--- src/TEMPLATE-INST/Array-tc.cc 2002/05/03 19:56:02 1.5
+++ src/TEMPLATE-INST/Array-tc.cc 2002/05/22 20:46:52
@@ -39,6 +39,7 @@ Software Foundation, 59 Temple Place - S
template class Array<octave_value>;
+template<>
octave_value
Array<octave_value>::resize_fill_value (void)
{
Regards,
Mumit
- [patch] Tweaks for Sun Forte compiler,
Mumit Khan <=