changeset 1206:83b59118ab1a

[project @ 1995-04-04 02:09:11 by jwe]
author jwe
date Tue, 04 Apr 1995 02:10:31 +0000
parents 8302fab9fe24
children bc643da88524
files liboctave/Objective.h src/tc-inlines.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/Objective.h	Tue Apr 04 02:05:01 1995 +0000
+++ b/liboctave/Objective.h	Tue Apr 04 02:10:31 1995 +0000
@@ -32,8 +32,8 @@
 #define Vector ColumnVector
 #endif
 
-typedef double (*objective_fcn) (Vector&);
-typedef Vector (*gradient_fcn) (Vector&);
+typedef double (*objective_fcn) (const Vector&);
+typedef Vector (*gradient_fcn) (const Vector&);
 
 class Objective
 {
--- a/src/tc-inlines.h	Tue Apr 04 02:05:01 1995 +0000
+++ b/src/tc-inlines.h	Tue Apr 04 02:10:31 1995 +0000
@@ -141,7 +141,9 @@
 
 // How about a few macros?
 
+#ifndef TC_REP
 #define TC_REP tree_constant::tree_constant_rep
+#endif
 
 #ifndef MAX
 #define MAX(a,b) ((a) > (b) ? (a) : (b))