changeset 2558:c097977bca6f

[project @ 1996-12-02 02:56:01 by jwe]
author jwe
date Mon, 02 Dec 1996 02:56:43 +0000
parents 4423962a2cb5
children 112fd175d9f5
files ChangeLog PROJECTS configure.in info/ChangeLog info/configure.in scripts/ChangeLog scripts/strings/str2num.m
diffstat 7 files changed, 62 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Sun Nov 24 21:40:25 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* configure.in: Set GCC_IEEE_FP_FLAG to -mieee-fp on all x86
+	systems, not just those running Linux.
+
+Fri Nov 22 15:10:34 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* emacs/octave.el: Update from Kurt Hornik to with fixes for
+	fill-paragraph.
+
 Wed Nov 20 00:33:03 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* Version 1.93.
--- a/PROJECTS
+++ b/PROJECTS
@@ -606,8 +606,6 @@
     strftime().  A C version is apparently in recent releases of the
     Linux C library.
 
-  * Merge OS/2 changes.
-
 ------
 Always:
 ------
--- a/configure.in
+++ b/configure.in
@@ -21,7 +21,7 @@
 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 ### 02111-1307, USA. 
 
-AC_REVISION($Revision: 1.235 $)
+AC_REVISION($Revision: 1.236 $)
 AC_PREREQ(2.9)
 AC_INIT(src/octave.cc)
 AC_CONFIG_HEADER(config.h)
@@ -296,15 +296,15 @@
 fi
 AC_SUBST(CC_VERSION)
 
-### On Linux systems we need to compile with -mieee-fp to get full
-### support for IEEE floating point.
+### On Intel systems with gcc, we need to compile with -mieee-fp to
+### get full support for IEEE floating point.
 ###
 ### On Alpha/OSF systems, wee need -mieee-with-inexact, but that also
 ### requires gcc 2.8.x or later.
 
 case "$canonical_host_type" in
 changequote(,)dnl
-  i[3456789]86-*-linux*)
+  i[3456789]86-*-*)
 changequote([,])dnl
     GCC_IEEE_FP_FLAG="-mieee-fp"
     AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
--- a/info/ChangeLog
+++ b/info/ChangeLog
@@ -1,3 +1,7 @@
+Sun Nov 24 21:24:39 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* configure.in (TERMLIBS): Look for ncurses too.
+
 Tue Nov 12 14:44:00 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* Makefile.in (VPATH): Don't include $(common).
--- a/info/configure.in
+++ b/info/configure.in
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.6 1996-11-13 03:41:38 jwe Exp $
+dnl $Id: configure.in,v 1.7 1996-12-02 02:56:43 jwe Exp $
 AC_INIT(info.c)
 
 dnl Checks for programs.
@@ -15,7 +15,7 @@
 AC_CHECK_LIB(bsd, sigblock)
 
 TERMLIBS=
-for termlib in curses termcap terminfo termlib ; do
+for termlib in ncurses curses termcap terminfo termlib ; do
    AC_CHECK_LIB(${termlib}, tputs,
      [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
 done
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+Sun Dec  1 20:55:34 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* strings/str2num.m: New file.
+
 Wed Nov 20 01:00:24 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* Version 1.93.
new file mode 100644
--- /dev/null
+++ b/scripts/strings/str2num.m
@@ -0,0 +1,38 @@
+## Copyright (C) 1996 Kurt Hornik
+##
+## This file is part of Octave.
+##
+## Octave is free software; you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+##
+## Octave is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with Octave; see the file COPYING.  If not, write to the Free
+## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+## usage:  m = str2num (s)
+##
+## Convert the string S to a number.
+
+## Author: jwe
+
+function m = str2num (s)
+
+  if (nargin == 1 && isstr (s))
+    [nr, nc] = size (s);
+    sep = ";";
+    sep = sep (ones (nr, 1), 1);
+    s = sprintf ("m = [%s];", reshape ([s, sep]', 1, nr * (nc + 1)));
+    eval (s, "m = [];");
+  else
+    usage ("str2num (s)");
+  endif
+
+endfunction