# HG changeset patch # User jwe # Date 796961431 0 # Node ID 83b59118ab1a7de76601f059f73c7eb2c62c93d8 # Parent 8302fab9fe24eeb6bc6335af643643effd050e8e [project @ 1995-04-04 02:09:11 by jwe] diff --git a/liboctave/Objective.h b/liboctave/Objective.h --- a/liboctave/Objective.h +++ b/liboctave/Objective.h @@ -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 { diff --git a/src/tc-inlines.h b/src/tc-inlines.h --- a/src/tc-inlines.h +++ b/src/tc-inlines.h @@ -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))