changeset 2464:76078d0868e9

[project @ 1996-11-03 07:46:20 by jwe]
author jwe
date Sun, 03 Nov 1996 07:46:21 +0000
parents 4516c3b75851
children 7ee42ff6536a
files src/ChangeLog src/pt-exp-base.h src/syswait.h
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
 Sun Nov  3 00:45:30 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H
+	to decide whether to include sys/wait.h.
+
+	* pt-exp-base.h (tree_expression): Declare oper() here as a
+	virtual member function.
+
 	* pt-pr-code.cc (tree_print_code::visit_constant): Check for
 	string before checking for char_matrix.
 
--- a/src/pt-exp-base.h
+++ b/src/pt-exp-base.h
@@ -90,6 +90,8 @@
 
   virtual octave_value eval (bool print) = 0;
 
+  virtual char *oper (void) const { return "<unknown>"; }
+
 protected:
 
   // Nonzero if this expression appears inside parentheses.
--- a/src/syswait.h
+++ b/src/syswait.h
@@ -29,7 +29,7 @@
 #include <sys/types.h>
 #endif
 
-#if HAVE_SYS_WAIT_H
+#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif