# HG changeset patch # User pkienzle # Date 1045782239 0 # Node ID 5942b14d6c22288c61ca90bebd0ff6dc6a9ce72b # Parent 2adef77b98d07793eeaaebba4b4a9faeeeef7f1b Use of "T x[n]" where n is not constant is a g++ extension so replace it with OCTAVE_LOCAL_BUFFER(T,x,n), and other things to keep the picky MipsPRO CC compiler happy. diff --git a/bwfill.cc b/bwfill.cc --- a/bwfill.cc +++ b/bwfill.cc @@ -12,10 +12,10 @@ #include -#define UP (-1) -#define DN (+1) -#define RT (+ioM) -#define LF (-ioM) +#define ptUP (-1) +#define ptDN (+1) +#define ptRT (+ioM) +#define ptLF (-ioM) /* * check if the point needs to be filled, if so @@ -102,7 +102,7 @@ * so that we can be more efficient in the main loop */ int ioM= imM+2; - unsigned char imo[ (imM+2) * (imN+2) ]; + OCTAVE_LOCAL_BUFFER(unsigned char, imo, (imM+2) * (imN+2)); for (int i=0; i(const double, const double); +template bool compare(const double, const double); template double selnth(double *, int, int); template Complex selnth(Complex *, int, int); template octave_value_list do_filtering(Matrix, int, boolMatrix, Matrix);