diff libinterp/corefcn/lsode.cc @ 29996:c4bc77a90fb5

move lsode functions to octave namespace and make local functions static There is no public header file for the functions defined in lsode.cc so making all local functions in that file static should not affect users. * lsode.cc: Move all functions inside octave namespace. Declare all local functions static.
author John W. Eaton <jwe@octave.org>
date Wed, 18 Aug 2021 01:08:52 -0400
parents 7d6709900da7
children 796f54d4ddbf
line wrap: on
line diff
--- a/libinterp/corefcn/lsode.cc	Wed Aug 18 01:06:35 2021 -0400
+++ b/libinterp/corefcn/lsode.cc	Wed Aug 18 01:08:52 2021 -0400
@@ -49,6 +49,8 @@
 
 #include "LSODE-opts.cc"
 
+OCTAVE_NAMESPACE_BEGIN
+
 // Global pointer for user defined function required by lsode.
 static octave_value lsode_fcn;
 
@@ -62,7 +64,7 @@
 // Is this a recursive call?
 static int call_depth = 0;
 
-ColumnVector
+static ColumnVector
 lsode_user_function (const ColumnVector& x, double t)
 {
   ColumnVector retval;
@@ -102,7 +104,7 @@
   return retval;
 }
 
-Matrix
+static Matrix
 lsode_user_jacobian (const ColumnVector& x, double t)
 {
   Matrix retval;
@@ -142,8 +144,6 @@
   return retval;
 }
 
-OCTAVE_NAMESPACE_BEGIN
-
 DEFMETHOD (lsode, interp, args, nargout,
            doc: /* -*- texinfo -*-
 @deftypefn  {} {[@var{x}, @var{istate}, @var{msg}] =} lsode (@var{fcn}, @var{x_0}, @var{t})