# HG changeset patch # User jwe # Date 1032795485 0 # Node ID 86e4baa8141088aa4f41e89b085eeaa1eeb58b1e # Parent 6e86256e9c54d3efea9382a690019518f3987c39 [project @ 2002-09-23 15:38:05 by jwe] diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-09-23 John W. Eaton + + * configure.in: Fix typedefs used in AH_BOTTOM. + 2002-09-19 John W. Eaton * configure.in (AH_BOTTOM): If using g++, define diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -22,7 +22,7 @@ ### 02111-1307, USA. AC_INIT -AC_REVISION($Revision: 1.365 $) +AC_REVISION($Revision: 1.366 $) AC_PREREQ(2.52) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -1246,19 +1246,19 @@ #endif #if !defined(HAVE_DEV_T) -typedef dev_t short +typedef short dev_t #endif #if !defined(HAVE_INO_T) -typedef ino_t unsigned long +typedef unsigned long ino_t #endif #if !defined(HAVE_NLINK_T) -typedef nlink_t short +typedef short nlink_t #endif #if !defined(HAVE_SIGSET_T) -typedef sigset_t int +typedef int sigset_t #endif ]) diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,17 @@ +2002-09-23 John W. Eaton + + * cmd-edit.cc (do_decode_prompt_string): Cope with possibility + that geteuid doesn't exist. + + * LP.h: Rename LP class to octave_LP. + LPsolve.h: Change all uses. + + * file-ops.cc, oct-passwd.cc oct-syscalls.cc oct-group.cc: Remove + incorrect token-pasting op. + + * statdefs.h [! S_ISLNK]: undef HAVE_LSTAT instead of trying to + define lstat. + 2002-09-19 John W. Eaton * Array.cc, Array.h, Array2.cc, Array2.h, Array3.cc, Array3.h, diff --git a/liboctave/LP.h b/liboctave/LP.h --- a/liboctave/LP.h +++ b/liboctave/LP.h @@ -29,29 +29,29 @@ #include "base-min.h" class -LP : public base_minimizer +octave_LP : public base_minimizer { public: - LP (void) + octave_LP (void) : base_minimizer (), c (), bnds (), lc () { } - LP (const ColumnVector& c_arg) + octave_LP (const ColumnVector& c_arg) : base_minimizer (), c (c_arg), bnds (), lc () { } - LP (const ColumnVector& c_arg, const Bounds& b) + octave_LP (const ColumnVector& c_arg, const Bounds& b) : base_minimizer (), c (c_arg), bnds (b), lc () { } - LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) + octave_LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) : base_minimizer (), c (c_arg), bnds (b), lc (l) { } - LP (const ColumnVector& c_arg, const LinConst& l) + octave_LP (const ColumnVector& c_arg, const LinConst& l) : base_minimizer (), c (c_arg), bnds (), lc (l) { } - LP (const LP& a) + octave_LP (const octave_LP& a) : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } - LP& operator = (const LP& a) + octave_LP& operator = (const octave_LP& a) { if (this != &a) { @@ -64,7 +64,7 @@ return *this; } - ~LP (void) { } + ~octave_LP (void) { } ColumnVector linear_obj_coeff (void) const { return c; } diff --git a/liboctave/LPsolve.h b/liboctave/LPsolve.h --- a/liboctave/LPsolve.h +++ b/liboctave/LPsolve.h @@ -32,32 +32,32 @@ #include "LP.h" class -LPsolve : public LP +LPsolve : public octave_LP { public: LPsolve (void) - : LP () { } + : octave_LP () { } LPsolve (const ColumnVector& c) - : LP (c) { } + : octave_LP (c) { } LPsolve (const ColumnVector& c, const Bounds& b) - : LP (c, b) { } + : octave_LP (c, b) { } LPsolve (const ColumnVector& c, const Bounds& b, const LinConst& lc) - : LP (c, b, lc) { } + : octave_LP (c, b, lc) { } LPsolve (const ColumnVector& c, const LinConst& lc) - : LP (c, lc) { } + : octave_LP (c, lc) { } LPsolve (const LPsolve& a) - : LP (a) { } + : octave_LP (a) { } LPsolve& operator = (const LPsolve& a) { if (this != &a) - LP::operator = (a); + octave_LP::operator = (a); return *this; } diff --git a/liboctave/cmd-edit.cc b/liboctave/cmd-edit.cc --- a/liboctave/cmd-edit.cc +++ b/liboctave/cmd-edit.cc @@ -928,7 +928,11 @@ case '$': { +#if defined (HAVE_GETEUID) temp = (::geteuid () == 0 ? "#" : "$"); +#else + temp = "$"; +#endif goto add_string; } diff --git a/liboctave/file-ops.cc b/liboctave/file-ops.cc --- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -47,7 +47,7 @@ #include "str-vec.h" #define NOT_SUPPORTED(nm) \ - nm ## ": not supported on this system" + nm ": not supported on this system" // We provide a replacement for mkdir(). diff --git a/liboctave/lo-specfun.cc b/liboctave/lo-specfun.cc --- a/liboctave/lo-specfun.cc +++ b/liboctave/lo-specfun.cc @@ -38,33 +38,33 @@ extern "C" { int F77_FUNC (zbesj, ZBESJ) (const double&, const double&, - const double&, const int&, const int&, - double*, double*, int&, int&); + const double&, const int&, const int&, + double*, double*, int&, int&); int F77_FUNC (zbesy, ZBESY) (const double&, const double&, - const double&, const int&, const int&, - double*, double*, int&, - double*, double*, int&); + const double&, const int&, const int&, + double*, double*, int&, + double*, double*, int&); int F77_FUNC (zbesi, ZBESI) (const double&, const double&, - const double&, const int&, const int&, - double*, double*, int&, int&); + const double&, const int&, const int&, + double*, double*, int&, int&); int F77_FUNC (zbesk, ZBESK) (const double&, const double&, - const double&, const int&, const int&, - double*, double*, int&, int&); + const double&, const int&, const int&, + double*, double*, int&, int&); int F77_FUNC (zbesh, ZBESH) (const double&, const double&, - const double&, const int&, const int&, - const int&, double*, double*, int&, int&); + const double&, const int&, const int&, + const int&, double*, double*, int&, int&); int F77_FUNC (zairy, ZAIRY) (const double&, const double&, - const int&, const int&, - double&, double&, int&, int&); + const int&, const int&, + double&, double&, int&, int&); int F77_FUNC (zbiry, ZBIRY) (const double&, const double&, - const int&, const int&, - double&, double&, int&); + const int&, const int&, + double&, double&, int&); int F77_FUNC (xdacosh, XDACOSH) (const double&, double&); @@ -77,7 +77,7 @@ int F77_FUNC (xderfc, XDERFC) (const double&, double&); int F77_FUNC (xdbetai, XDBETAI) (const double&, const double&, - const double&, double&); + const double&, double&); int F77_FUNC (xdgamma, XDGAMMA) (const double&, double&); diff --git a/liboctave/oct-group.cc b/liboctave/oct-group.cc --- a/liboctave/oct-group.cc +++ b/liboctave/oct-group.cc @@ -37,7 +37,7 @@ #include "str-vec.h" #define NOT_SUPPORTED(nm) \ - nm ## ": not supported on this system" + nm ": not supported on this system" std::string octave_group::name (void) const diff --git a/liboctave/oct-passwd.cc b/liboctave/oct-passwd.cc --- a/liboctave/oct-passwd.cc +++ b/liboctave/oct-passwd.cc @@ -36,7 +36,7 @@ #include "oct-passwd.h" #define NOT_SUPPORTED(nm) \ - nm ## ": not supported on this system" + nm ": not supported on this system" std::string octave_passwd::name (void) const diff --git a/liboctave/oct-syscalls.cc b/liboctave/oct-syscalls.cc --- a/liboctave/oct-syscalls.cc +++ b/liboctave/oct-syscalls.cc @@ -45,7 +45,7 @@ #include "syswait.h" #define NOT_SUPPORTED(nm) \ - nm ## ": not supported on this system" + nm ": not supported on this system" int octave_syscalls::dup2 (int old_fd, int new_fd) diff --git a/liboctave/statdefs.h b/liboctave/statdefs.h --- a/liboctave/statdefs.h +++ b/liboctave/statdefs.h @@ -66,7 +66,7 @@ #endif #ifndef S_ISLNK -#define lstat stat +#undef HAVE_LSTAT #endif #endif