diff liboctave/util/str-vec.cc @ 29937:da7210e30f3e

move some utility functions inside octave namespace * lo-utils.h, lo-utils.cc (is_one_or_zero): Rename from xis_one_or_zero and move inside octave namespace. Change all uses. (is_zero): Rename from xis_zero and move inside octave namespace. Change all uses. (is_int_or_inf_or_nan): Rename from xis_int_or_inf_or_nan and move inside octave namespace. Change all uses. (too_large_for_float): Rename from xtoo_large_for_float and move inside octave namespace. Change all uses. (too_large_for_float): Rename from xtoo_large_for_float and move inside octave namespace. Change all uses. (is_int_or_inf_or_nan): Rename from xis_int_or_inf_or_nan and move inside octave namespace. Change all uses. (fgets): Rename from octave_fgets and move inside octave namespace. Change all uses. (fgetl): Rename from octave_fgetl and move inside octave namespace. Change all uses. (any_all_test, strsave): Move inside octave namespace. Tag uses with octave:: prefix as needed. * lo-utils.h: Provide deprecated templates and inline functions to preserve old names in global namespace.
author John W. Eaton <jwe@octave.org>
date Tue, 03 Aug 2021 12:34:52 -0400
parents 0a5b15007766
children 796f54d4ddbf
line wrap: on
line diff
--- a/liboctave/util/str-vec.cc	Thu Mar 17 10:50:22 2016 +0530
+++ b/liboctave/util/str-vec.cc	Tue Aug 03 12:34:52 2021 -0400
@@ -163,7 +163,7 @@
   retval[len] = nullptr;
 
   for (octave_idx_type i = 0; i < len; i++)
-    retval[i] = strsave (elem (i).c_str ());
+    retval[i] = octave::strsave (elem (i).c_str ());
 
   return retval;
 }