# HG changeset patch # User John W. Eaton # Date 1561578423 14400 # Node ID 823b4bcf79fc6493694d4a744b4930f3723e8145 # Parent 274766cae7221b9b27b0ead7eb7942e67f656bab unless necessary for formatting or code, use ' instead of ` Files affected: doc/interpreter/TODO, etc/HACKING.md, examples/code/oregonator.cc, examples/code/oregonator.m, libgui/graphics/ObjectFactory.cc, libinterp/corefcn/defun-dld.h, libinterp/corefcn/defun.h, libinterp/corefcn/graphics.cc, libinterp/corefcn/ls-hdf5.cc, libinterp/corefcn/oct-stream.cc, libinterp/octave-value/cdef-class.cc, libinterp/octave-value/cdef-manager.cc, libinterp/octave-value/cdef-method.cc, libinterp/octave-value/cdef-object.cc, libinterp/octave-value/cdef-package.cc, libinterp/octave-value/cdef-property.cc, libinterp/octave-value/cdef-utils.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-java.cc, libinterp/octave-value/ov.h, libinterp/parse-tree/oct-parse.yy, liboctave/array/Array.h, liboctave/numeric/bsxfun.h, liboctave/util/oct-rl-hist.c, scripts/help/__unimplemented__.m, scripts/image/imformats.m, scripts/image/imwrite.m, scripts/image/private/__imread__.m, scripts/image/private/__imwrite__.m, scripts/java/org/octave/Matrix.java, scripts/linear-algebra/condeig.m, scripts/miscellaneous/inputParser.m, scripts/miscellaneous/publish.m, scripts/pkg/private/configure_make.m, scripts/special-matrix/gallery.m, scripts/web/weboptions.m, test/classdef/classdef.tst. diff -r 274766cae722 -r 823b4bcf79fc CITATION --- a/CITATION Wed Jun 26 12:09:37 2019 -0400 +++ b/CITATION Wed Jun 26 15:47:03 2019 -0400 @@ -15,5 +15,5 @@ } We have invested a lot of time and effort in creating GNU Octave, please -cite it when using it. See also `citation pkgname' for citing Octave +cite it when using it. See also 'citation pkgname' for citing Octave packages. diff -r 274766cae722 -r 823b4bcf79fc doc/interpreter/TODO --- a/doc/interpreter/TODO Wed Jun 26 12:09:37 2019 -0400 +++ b/doc/interpreter/TODO Wed Jun 26 15:47:03 2019 -0400 @@ -29,7 +29,7 @@ (???) * If Octave crashes, it now attempts to save all user-defined - variables in a file named `octave-core' in the current directory + variables in a file named 'octave-core' in the current directory before exiting. (???) @@ -39,7 +39,7 @@ that are not yet available in the public release of Info. (install) - * If it is present, Octave will now use an `ls-R' database file to + * If it is present, Octave will now use an 'ls-R' database file to speed up recursive path searching. Octave looks for a file called ls-R in the directory specified by the environment variable OCTAVE_DB_DIR. If that is not set but the environment variable diff -r 274766cae722 -r 823b4bcf79fc etc/HACKING.md --- a/etc/HACKING.md Wed Jun 26 12:09:37 2019 -0400 +++ b/etc/HACKING.md Wed Jun 26 15:47:03 2019 -0400 @@ -343,7 +343,7 @@ The rules for updating these version numbers are: - * Start with version information of ‘0:0:0’ for each libtool library. + * Start with version information of `0:0:0` for each libtool library. * Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, @@ -351,7 +351,7 @@ faster. * If the library source code has changed at all since the last update, - then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). + then increment revision (`c:r:a` becomes `c:r+1:a`). * If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. diff -r 274766cae722 -r 823b4bcf79fc examples/code/oregonator.cc --- a/examples/code/oregonator.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/examples/code/oregonator.cc Wed Jun 26 15:47:03 2019 -0400 @@ -1,7 +1,7 @@ #include DEFUN_DLD (oregonator, args, , - "The `oregonator'.\n\ + "The 'oregonator'.\n\ \n\ Reference:\n\ \n\ diff -r 274766cae722 -r 823b4bcf79fc examples/code/oregonator.m --- a/examples/code/oregonator.m Wed Jun 26 12:09:37 2019 -0400 +++ b/examples/code/oregonator.m Wed Jun 26 15:47:03 2019 -0400 @@ -1,4 +1,4 @@ -## The `oregonator'. +## The 'oregonator'. ## ## Reference: ## diff -r 274766cae722 -r 823b4bcf79fc libgui/graphics/ObjectFactory.cc --- a/libgui/graphics/ObjectFactory.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libgui/graphics/ObjectFactory.cc Wed Jun 26 15:47:03 2019 -0400 @@ -138,7 +138,7 @@ else if (go.isa ("uitoggletool")) obj = ToggleTool::create (go); else - qWarning ("ObjectFactory::createObject: unsupported type `%s'", + qWarning ("ObjectFactory::createObject: unsupported type '%s'", go.type ().c_str ()); if (obj) diff -r 274766cae722 -r 823b4bcf79fc libinterp/corefcn/defun-dld.h --- a/libinterp/corefcn/defun-dld.h Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/corefcn/defun-dld.h Wed Jun 26 15:47:03 2019 -0400 @@ -36,13 +36,13 @@ //! For detailed information, see \ref Macros. //! //! @param name The **unqouted** name of the function that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the function name is prepended by an -//! `F`. +//! 'F'. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this function. If this value is //! omitted, the function cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this function is expected to //! produce from the caller. If this value is //! omitted, the function cannot access this number. @@ -70,17 +70,17 @@ //! For detailed information, see \ref Macros. //! //! @param name The **unqouted** name of the method that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the method name is prepended by an -//! `F`. -//! @param interp_name The name of the `octave::interpreter` reference that can +//! 'F'. +//! @param interp_name The name of the 'octave::interpreter' reference that can //! be used by this method. If this value is omitted, //! there is no access to the interpreter and one should //! use #DEFUN to define a function instead. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this method. If this value is //! omitted, the method cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this method is expected to //! produce from the caller. If this value is //! omitted, the method cannot access this number. diff -r 274766cae722 -r 823b4bcf79fc libinterp/corefcn/defun.h --- a/libinterp/corefcn/defun.h Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/corefcn/defun.h Wed Jun 26 15:47:03 2019 -0400 @@ -36,13 +36,13 @@ //! For detailed information, see \ref Macros. //! //! @param name The **unqouted** name of the function that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the function name is prepended by an -//! `F`. +//! 'F'. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this function. If this value is //! omitted, the function cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this function is expected to //! produce from the caller. If this value is //! omitted, the function cannot access this number. @@ -67,11 +67,11 @@ //! @param name The **qouted** name of the function that should be callable //! by the interpreter. //! @param fname The internal **unqouted** name of the function. This internal -//! name is by convention prepended by an `F`. +//! name is by convention prepended by an 'F'. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this function. If this value is //! omitted, the function cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this function is expected to //! produce from the caller. If this value is //! omitted, the function cannot access this number. @@ -88,17 +88,17 @@ //! //! For detailed information, see \ref Macros. //! -//! The function gets installed to the `octave::symbol_table` in a way, such +//! The function gets installed to the 'octave::symbol_table' in a way, such //! that no variable is allowed to hide this function name. //! //! @param name The **unqouted** name of the function that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the function name is prepended by an -//! `F`. +//! 'F'. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this function. If this value is //! omitted, the function cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this function is expected to //! produce from the caller. If this value is //! omitted, the function cannot access this number. @@ -114,17 +114,17 @@ //! For detailed information, see \ref Macros. //! //! @param name The **unqouted** name of the method that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the method name is prepended by an -//! `F`. -//! @param interp_name The name of the `octave::interpreter` reference that can +//! 'F'. +//! @param interp_name The name of the 'octave::interpreter' reference that can //! be used by this method. If this value is omitted, //! there is no access to the interpreter and one should //! use #DEFUN to define a function instead. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this method. If this value is //! omitted, the method cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this method is expected to //! produce from the caller. If this value is //! omitted, the method cannot access this number. @@ -149,15 +149,15 @@ //! @param name The **qouted** name of the method that should be callable //! by the interpreter. //! @param fname The internal **unqouted** name of the method. This internal -//! name is by convention prepended by an `F`. -//! @param interp_name The name of the `octave::interpreter` reference that can +//! name is by convention prepended by an 'F'. +//! @param interp_name The name of the 'octave::interpreter' reference that can //! be used by this method. If this value is omitted, //! there is no access to the interpreter and one should //! use #DEFUNX to define a function instead. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this method. If this value is //! omitted, the method cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this method is expected to //! produce from the caller. If this value is //! omitted, the method cannot access this number. @@ -174,21 +174,21 @@ //! //! For detailed information, see \ref Macros. //! -//! The method gets installed to the `octave::symbol_table` in a way, such +//! The method gets installed to the 'octave::symbol_table' in a way, such //! that no variable is allowed to hide this method name. //! //! @param name The **unqouted** name of the method that should be installed -//! on the `octave::symbol_table` and can be called by the +//! on the 'octave::symbol_table' and can be called by the //! interpreter. Internally, the method name is prepended by an -//! `F`. -//! @param interp_name The name of the `octave::interpreter` reference that can +//! 'F'. +//! @param interp_name The name of the 'octave::interpreter' reference that can //! be used by this method. If this value is omitted, //! there is no access to the interpreter and one should //! use #DEFCONSTFUN to define a function instead. //! @param args_name The name of the octave_value_list variable used to pass //! the argument list to this method. If this value is //! omitted, the method cannot access the argument list. -//! @param nargout_name The name of the `int` variable used to pass the number +//! @param nargout_name The name of the 'int' variable used to pass the number //! of output arguments this method is expected to //! produce from the caller. If this value is //! omitted, the method cannot access this number. diff -r 274766cae722 -r 823b4bcf79fc libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/corefcn/graphics.cc Wed Jun 26 15:47:03 2019 -0400 @@ -5073,7 +5073,7 @@ void axes::properties::sync_positions (void) { - // First part is equivalent to `update_tightinset ()' + // First part is equivalent to 'update_tightinset ()' if (activepositionproperty.is ("position")) update_position (); else diff -r 274766cae722 -r 823b4bcf79fc libinterp/corefcn/ls-hdf5.cc --- a/libinterp/corefcn/ls-hdf5.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/corefcn/ls-hdf5.cc Wed Jun 26 15:47:03 2019 -0400 @@ -726,7 +726,7 @@ } else // Otherwise, just ignore it with a warning. { - warning ("load: can't read `%s' (unknown datatype)", name); + warning ("load: can't read '%s' (unknown datatype)", name); retval = 0; // unknown datatype; skip return retval; } diff -r 274766cae722 -r 823b4bcf79fc libinterp/corefcn/oct-stream.cc --- a/libinterp/corefcn/oct-stream.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/corefcn/oct-stream.cc Wed Jun 26 15:47:03 2019 -0400 @@ -1641,11 +1641,11 @@ // or 64. For floating point values, bitwidth may be 32 or 64. int bitwidth; - // The class of characters in a `[' or `^' format. + // The class of characters in a '[' or '^' format. std::string char_class; // Type of conversion - // -- `d', `u', `f', `n', `s', `q', `c', `%', `C', `D', `[' or `^'. + // -- 'd', 'u', 'f', 'n', 's', 'q', 'c', '%', 'C', 'D', '[' or '^'. char type; // TRUE if we are not storing the result of this conversion. @@ -2425,8 +2425,8 @@ std::cerr << elt->type << "\n"; std::cerr - << "char_class: `" << undo_string_escapes (elt->char_class) << "'\n" - << "text: `" << undo_string_escapes (elt->text) << "'\n\n"; + << "char_class: '" << undo_string_escapes (elt->char_class) << "'\n" + << "text: '" << undo_string_escapes (elt->text) << "'\n\n"; } } diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-class.cc --- a/libinterp/octave-value/cdef-class.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-class.cc Wed Jun 26 15:47:03 2019 -0400 @@ -593,7 +593,7 @@ if (meth.ok ()) { if (! meth.is_static ()) - error ("method `%s' is not static", nm.c_str ()); + error ("method '%s' is not static", nm.c_str ()); octave_value_list args; @@ -612,10 +612,10 @@ cdef_property prop = find_property (nm); if (! prop.ok ()) - error ("no such method or property `%s'", nm.c_str ()); + error ("no such method or property '%s'", nm.c_str ()); if (! prop.is_constant ()) - error ("property `%s' is not constant", nm.c_str ()); + error ("property '%s' is not constant", nm.c_str ()); retval(0) = prop.get_value (true, "meta.class"); } @@ -733,7 +733,7 @@ cdef_class::cdef_class_rep::construct_object (const octave_value_list& args) { if (is_abstract ()) - error ("cannot instantiate object for abstract class `%s'", + error ("cannot instantiate object for abstract class '%s'", get_name ().c_str ()); cdef_object obj; @@ -889,7 +889,7 @@ cdef_class sclass = lookup_class (sclass_name); if (sclass.get ("Sealed").bool_value ()) - error ("`%s' cannot inherit from `%s', because it is sealed", + error ("'%s' cannot inherit from '%s', because it is sealed", full_class_name.c_str (), sclass_name.c_str ()); slist.push_back (sclass); diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-manager.cc --- a/libinterp/octave-value/cdef-manager.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-manager.cc Wed Jun 26 15:47:03 2019 -0400 @@ -139,7 +139,7 @@ error ("fevalStatic: method not found: %s", meth_name.c_str ()); if (! meth.is_static ()) - error ("fevalStatic: method `%s' is not static", meth_name.c_str ()); + error ("fevalStatic: method '%s' is not static", meth_name.c_str ()); return meth.execute (args.splice (0, 2), nargout, true, "fevalStatic"); } @@ -164,7 +164,7 @@ prop_name.c_str ()); if (! prop.is_constant ()) - error ("getConstant: property `%s' is not constant", + error ("getConstant: property '%s' is not constant", prop_name.c_str ()); retval(0) = prop.get_value (true, "getConstant"); @@ -214,7 +214,7 @@ if (! retval(0).is_defined ()) error_with_id ("Octave:class:NoDefaultDefined", - "no default value for property `%s'", + "no default value for property '%s'", prop.get_name ().c_str ()); } @@ -712,7 +712,7 @@ retval = it->second; if (! retval.ok ()) - error ("invalid package `%s'", name.c_str ()); + error ("invalid package '%s'", name.c_str ()); } else { @@ -732,7 +732,7 @@ } } else if (error_if_not_found) - error ("unknown package `%s'", name.c_str ()); + error ("unknown package '%s'", name.c_str ()); } return retval; diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-method.cc --- a/libinterp/octave-value/cdef-method.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-method.cc Wed Jun 26 15:47:03 2019 -0400 @@ -60,7 +60,7 @@ else acc_s = "class-restricted"; - error ("%s: method `%s' has %s access and cannot be run in this context", + error ("%s: method '%s' has %s access and cannot be run in this context", from.c_str (), meth.get_name ().c_str (), acc_s.c_str ()); } @@ -110,7 +110,7 @@ } if (is_dummy_method (function)) - error ("no definition found for method `%s' of class `%s'", + error ("no definition found for method '%s' of class '%s'", get_name ().c_str (), dispatch_type.c_str ()); } } diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-object.cc --- a/libinterp/octave-value/cdef-object.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-object.cc Wed Jun 26 15:47:03 2019 -0400 @@ -619,7 +619,7 @@ break; default: - error ("object cannot be indexed with `%c'", type[0]); + error ("object cannot be indexed with '%c'", type[0]); break; } @@ -700,7 +700,7 @@ break; default: - error ("subsasgn: object cannot be index with `%c'", type[0]); + error ("subsasgn: object cannot be index with '%c'", type[0]); break; } diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-package.cc --- a/libinterp/octave-value/cdef-package.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-package.cc Wed Jun 26 15:47:03 2019 -0400 @@ -140,7 +140,7 @@ octave_value o = find (nm); if (! o.is_defined ()) - error ("member `%s' in package `%s' does not exist", + error ("member '%s' in package '%s' does not exist", nm.c_str (), get_name ().c_str ()); if (o.is_function ()) diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-property.cc --- a/libinterp/octave-value/cdef-property.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-property.cc Wed Jun 26 15:47:03 2019 -0400 @@ -113,7 +113,7 @@ cdef_class cls (to_cdef (get ("DefiningClass"))); if (! obj.is_partially_constructed_for (cls)) - error ("cannot reference properties of class `%s' for non-constructed object", + error ("cannot reference properties of class '%s' for non-constructed object", cls.get_name ().c_str ()); } @@ -167,10 +167,10 @@ acc_s = "class-restricted"; if (is_set) - error ("%s: property `%s' has %s access and cannot be set in this context", + error ("%s: property '%s' has %s access and cannot be set in this context", from.c_str (), get_name ().c_str (), acc_s.c_str ()); else - error ("%s: property `%s' has %s access and cannot be obtained in this context", + error ("%s: property '%s' has %s access and cannot be obtained in this context", from.c_str (), get_name ().c_str (), acc_s.c_str ()); } @@ -188,7 +188,7 @@ cdef_class cls (to_cdef (get ("DefiningClass"))); if (! obj.is_partially_constructed_for (cls)) - error ("cannot reference properties of class `%s' for non-constructed object", + error ("cannot reference properties of class '%s' for non-constructed object", cls.get_name ().c_str ()); } @@ -214,7 +214,7 @@ obj = new_obj; } else - ::warning ("set-method of property `%s' returned a non-classdef object", + ::warning ("set-method of property '%s' returned a non-classdef object", get_name ().c_str ()); } } diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/cdef-utils.cc --- a/libinterp/octave-value/cdef-utils.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/cdef-utils.cc Wed Jun 26 15:47:03 2019 -0400 @@ -140,7 +140,7 @@ to_cdef (const octave_value& val) { if (val.type_name () != "object") - error ("cannot convert `%s' into `object'", val.type_name().c_str ()); + error ("cannot convert '%s' into 'object'", val.type_name().c_str ()); return dynamic_cast (val.internal_rep ())->get_object (); } @@ -149,7 +149,7 @@ to_cdef_ref (const octave_value& val) { if (val.type_name () != "object") - error ("cannot convert `%s' into `object'", val.type_name().c_str ()); + error ("cannot convert '%s' into 'object'", val.type_name().c_str ()); return dynamic_cast (val.internal_rep ())->get_object_ref (); } @@ -391,7 +391,7 @@ } } else - error ("invalid property/method access in class `%s'", + error ("invalid property/method access in class '%s'", cls.get_name ().c_str ()); return false; diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/ov-classdef.cc --- a/libinterp/octave-value/ov-classdef.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/ov-classdef.cc Wed Jun 26 15:47:03 2019 -0400 @@ -172,7 +172,7 @@ retlist = meth.execute (args, 1, true, "subsasgn"); if (retlist.empty ()) - error ("overloaded method `subsasgn' did not return any value"); + error ("overloaded method 'subsasgn' did not return any value"); retval = retlist(0); } @@ -406,11 +406,11 @@ if (in_constructor) { if (! is_direct_superclass (cls, ctx)) - error ("`%s' is not a direct superclass of `%s'", + error ("'%s' is not a direct superclass of '%s'", cname.c_str (), ctx.get_name ().c_str ()); if (! is_constructed_object (tw, mname)) - error ("cannot call superclass constructor with variable `%s'", + error ("cannot call superclass constructor with variable '%s'", mname.c_str ()); octave_value sym = tw.varval (mname); @@ -454,11 +454,11 @@ } if (mname != meth_name) - error ("method name mismatch (`%s' != `%s')", + error ("method name mismatch ('%s' != '%s')", mname.c_str (), meth_name.c_str ()); if (! is_strict_superclass (cls, ctx)) - error ("`%s' is not a superclass of `%s'", + error ("'%s' is not a superclass of '%s'", cname.c_str (), ctx.get_name ().c_str ()); // I see 2 possible implementations here: @@ -475,7 +475,7 @@ octave::cdef_method meth = cls.find_method (meth_name, false); if (! meth.ok ()) - error ("no method `%s' found in superclass `%s'", + error ("no method '%s' found in superclass '%s'", meth_name.c_str (), cname.c_str ()); retval = (obj.ok () diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/ov-java.cc --- a/libinterp/octave-value/ov-java.cc Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/ov-java.cc Wed Jun 26 15:47:03 2019 -0400 @@ -365,7 +365,7 @@ //! //! @returns A string consisting of the lines of @c filepath which are neither //! comments nor empty without trailing whitespace separated by -//! `octave::directory_path::path_sep_str()`. The returned string also +//! 'octave::directory_path::path_sep_str()'. The returned string also //! starts with that path separator. static std::string @@ -611,10 +611,10 @@ //! it by setting #jvm_attached. Otherwise, create a #jvm with some hard- //! coded options: //! -//! - `-Djava.class.path=classpath`, where @c classpath is given by +//! - '-Djava.class.path=classpath', where @c classpath is given by //! #initial_class_path(). -//! - `-Djava.system.class.loader=org.octave.OctClassLoader`. -//! - `-Xrs` +//! - '-Djava.system.class.loader=org.octave.OctClassLoader'. +//! - '-Xrs' //! //! Further options are read from the file @c java.opts in the directory given //! by #java_init_dir(). diff -r 274766cae722 -r 823b4bcf79fc libinterp/octave-value/ov.h --- a/libinterp/octave-value/ov.h Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/octave-value/ov.h Wed Jun 26 15:47:03 2019 -0400 @@ -1410,9 +1410,9 @@ octave_value map (octave_base_value::unary_mapper_t umap) const { return rep->map (umap); } - //! Extract the n-th element, aka `val(n)`. + //! Extract the n-th element, aka 'val(n)'. //! - //! @return Result is undefined if `val` is not an array type + //! @return Result is undefined if 'val' is not an array type //! or @p n is out of range. //! //! @warning Function calls should never error. @@ -1421,9 +1421,9 @@ fast_elem_extract (octave_idx_type n) const { return rep->fast_elem_extract (n); } - //! Assign the n-th element, aka `val(n) = x`. + //! Assign the n-th element, aka 'val(n) = x'. //! - //! @returns false if `val` is not an array type, + //! @returns false if 'val' is not an array type, //! @p x is not a matching scalar type, //! or @p n is out of range. //! diff -r 274766cae722 -r 823b4bcf79fc libinterp/parse-tree/oct-parse.yy --- a/libinterp/parse-tree/oct-parse.yy Wed Jun 26 12:09:37 2019 -0400 +++ b/libinterp/parse-tree/oct-parse.yy Wed Jun 26 15:47:03 2019 -0400 @@ -3787,7 +3787,7 @@ // Methods that cannot be declared outside the classdef file: // - methods with '.' character (e.g. property accessors) // - class constructor - // - `delete' + // - 'delete' if (mname.find_first_of (".") == std::string::npos && mname != "delete" @@ -3807,7 +3807,7 @@ } else bison_error ("invalid external method declaration, an external " - "method cannot be the class constructor, `delete' " + "method cannot be the class constructor, 'delete' " "or have a dot (.) character in its name"); } else diff -r 274766cae722 -r 823b4bcf79fc liboctave/array/Array.h --- a/liboctave/array/Array.h Wed Jun 26 12:09:37 2019 -0400 +++ b/liboctave/array/Array.h Wed Jun 26 15:47:03 2019 -0400 @@ -103,8 +103,8 @@ //! //! ### size_type //! -//! Array::size_type is `octave_idx_type` which is a typedef for `int` -//! or `long int`, depending whether Octave was configured for 64-bit +//! Array::size_type is 'octave_idx_type' which is a typedef for 'int' +//! or 'long int', depending whether Octave was configured for 64-bit //! indexing. //! //! This is a signed integer which may cause problems when mixed with @@ -398,7 +398,7 @@ //! Dimensions beyond the Array number of dimensions return 1 as //! those are implicit singleton dimensions. //! - //! Equivalent to Octave's `size (A, DIM)` + //! Equivalent to Octave's 'size (A, DIM)' size_type size (const size_type d) const { diff -r 274766cae722 -r 823b4bcf79fc liboctave/numeric/bsxfun.h --- a/liboctave/numeric/bsxfun.h Wed Jun 26 12:09:37 2019 -0400 +++ b/liboctave/numeric/bsxfun.h Wed Jun 26 15:47:03 2019 -0400 @@ -48,7 +48,7 @@ } (*current_liboctave_warning_with_id_handler) - ("Octave:language-extension", "performing `%s' automatic broadcasting", + ("Octave:language-extension", "performing '%s' automatic broadcasting", name.c_str ()); return true; @@ -78,7 +78,7 @@ } (*current_liboctave_warning_with_id_handler) - ("Octave:language-extension", "performing `%s' automatic broadcasting", + ("Octave:language-extension", "performing '%s' automatic broadcasting", name.c_str ()); return true; diff -r 274766cae722 -r 823b4bcf79fc liboctave/util/oct-rl-hist.c --- a/liboctave/util/oct-rl-hist.c Wed Jun 26 12:09:37 2019 -0400 +++ b/liboctave/util/oct-rl-hist.c Wed Jun 26 15:47:03 2019 -0400 @@ -70,7 +70,7 @@ } /* Remove all entries matching LINE from the history list. Triggered when - HISTCONTROL includes `erasedups'. */ + HISTCONTROL includes 'erasedups'. */ static void hc_erasedups (const char *line) diff -r 274766cae722 -r 823b4bcf79fc scripts/help/__unimplemented__.m --- a/scripts/help/__unimplemented__.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/help/__unimplemented__.m Wed Jun 26 15:47:03 2019 -0400 @@ -557,7 +557,7 @@ txt = sprintf ("%s but has not yet been implemented.", txt); case "not loaded", txt = sprintf (["%s which you have installed but not loaded. To ", ... - "load the package, run `pkg load %s' from the ", ... + "load the package, run 'pkg load %s' from the ", ... "Octave prompt."], txt, name); otherwise ## this includes "not installed" and anything else if pkg changes diff -r 274766cae722 -r 823b4bcf79fc scripts/image/imformats.m --- a/scripts/image/imformats.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/image/imformats.m Wed Jun 26 15:47:03 2019 -0400 @@ -106,7 +106,7 @@ ## whole format, or just that extension from the format? match = find_ext_idx (formats, arg2); if (! any (match)) - error ("imformats: no EXT `%s' found.", arg2); + error ("imformats: no EXT '%s' found.", arg2); endif if (strcmpi (arg1, "remove")) formats(match) = []; @@ -155,7 +155,7 @@ ## It will still fail if we test only the ones marked as readable and ## writable because some RW coders are not of image formats (NULL, 8BIM, ## or EXIF for example). - ## So we'd need a blacklist (unacceptable because a `bad' coder may be + ## So we'd need a blacklist (unacceptable because a 'bad' coder may be ## added later) or a whitelist. A whitelist means that even with a ## super-fancy recent build of GraphicsMagick, some formats won't be listed ## by imformats but in truth, we will still be able to read and write them @@ -268,7 +268,7 @@ min_fields = {"ext", "read", "isa", "write", "info", "alpha", "description"}; fields_mask = isfield (format, min_fields); if (! all (fields_mask)) - error ("imformats: structure has missing field `%s'.", min_fields(! fields_mask){1}); + error ("imformats: structure has missing field '%s'.", min_fields(! fields_mask){1}); endif endfunction diff -r 274766cae722 -r 823b4bcf79fc scripts/image/imwrite.m --- a/scripts/image/imwrite.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/image/imwrite.m Wed Jun 26 15:47:03 2019 -0400 @@ -106,7 +106,7 @@ fmt = imformats (ext); ## When there is no match, fmt will be a 1x1 structure with - ## no fields, so we can't just use `isempty (fmt)'. + ## no fields, so we can't just use 'isempty (fmt)'. if (numfields (fmt) == 0) if (isempty (ext)) error ("imwrite: no extension found for %s to identify the image format", diff -r 274766cae722 -r 823b4bcf79fc scripts/image/private/__imread__.m --- a/scripts/image/private/__imread__.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/image/private/__imread__.m Wed Jun 26 15:47:03 2019 -0400 @@ -68,7 +68,7 @@ endif val = varargin{shift (idx, 1)}; if (! is_valid_index_option (val) && ! strcmpi (val, "all")) - error ("imread: %s must be a vector or the string `all'", varargin{idx}); + error ("imread: %s must be a vector or the string 'all'", varargin{idx}); endif options.index = val; endif @@ -123,7 +123,7 @@ ## we allow to load multiple pages with one command. otherwise - error ("imread: invalid PARAMETER `%s'", varargin{idx}); + error ("imread: invalid PARAMETER '%s'", varargin{idx}); endswitch endfor diff -r 274766cae722 -r 823b4bcf79fc scripts/image/private/__imwrite__.m --- a/scripts/image/private/__imwrite__.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/image/private/__imwrite__.m Wed Jun 26 15:47:03 2019 -0400 @@ -78,7 +78,7 @@ if (! any (strcmp (options.compression, {"none", "bzip", "fax3", ... "fax4", "jpeg", "lzw", ... "rle", "deflate"}))) - error ("imwrite: invalid compression `%s'", options.compression); + error ("imwrite: invalid compression '%s'", options.compression); endif case "delaytime" @@ -169,7 +169,7 @@ options.writemode = tolower (options.writemode); otherwise - error ("imwrite: invalid PARAMETER `%s'", param_list{idx}); + error ("imwrite: invalid PARAMETER '%s'", param_list{idx}); endswitch endfor diff -r 274766cae722 -r 823b4bcf79fc scripts/java/org/octave/Matrix.java --- a/scripts/java/org/octave/Matrix.java Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/java/org/octave/Matrix.java Wed Jun 26 15:47:03 2019 -0400 @@ -96,7 +96,7 @@ if (data instanceof DoubleBuffer) return ((DoubleBuffer)data).array (); else - throw new ClassCastException ("matrix is not of type `double'"); + throw new ClassCastException ("matrix is not of type 'double'"); } public byte[] toByte () @@ -104,7 +104,7 @@ if (data instanceof ByteBuffer) return ((ByteBuffer)data).array (); else - throw new ClassCastException ("matrix is not of type `byte'"); + throw new ClassCastException ("matrix is not of type 'byte'"); } public int[] toInt () @@ -112,7 +112,7 @@ if (data instanceof IntBuffer) return ((IntBuffer)data).array (); else - throw new ClassCastException ("matrix is not of type `integer'"); + throw new ClassCastException ("matrix is not of type 'integer'"); } public int getNDims () @@ -330,7 +330,7 @@ val = buf[i]; } else - System.out.println ("Warning: cannot compute min value for array of type `" + getClassName () + "'"); + System.out.println ("Warning: cannot compute min value for array of type '" + getClassName () + "'"); return val; } @@ -354,7 +354,7 @@ val = buf[i]; } else - System.out.println ("Warning: cannot compute max value for array of type `" + getClassName () + "'"); + System.out.println ("Warning: cannot compute max value for array of type '" + getClassName () + "'"); return val; } diff -r 274766cae722 -r 823b4bcf79fc scripts/linear-algebra/condeig.m --- a/scripts/linear-algebra/condeig.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/linear-algebra/condeig.m Wed Jun 26 15:47:03 2019 -0400 @@ -101,7 +101,7 @@ ## Condition numbers ## Definition: cos (angle) = (norm (v1) * norm (v2)) / dot (v1, v2) - ## Eigenvectors have been normalized so `norm (v1) * norm (v2)' = 1 + ## Eigenvectors have been normalized so 'norm (v1) * norm (v2)' = 1 c = abs (1 ./ dot (vl, v)'); endif diff -r 274766cae722 -r 823b4bcf79fc scripts/miscellaneous/inputParser.m --- a/scripts/miscellaneous/inputParser.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/miscellaneous/inputParser.m Wed Jun 26 15:47:03 2019 -0400 @@ -123,7 +123,7 @@ ## check ("mech", "~/dev", [0 1 0 0], "verbose", "tolerance", "high"); ## ## ## following returns an error since not all optional arguments, -## ## `path' and `mat', were given before the named argument `type'. +## ## 'path' and 'mat', were given before the named argument 'type'. ## check ("mech", "~/dev", "type", "linear"); ## @end group ## @end example diff -r 274766cae722 -r 823b4bcf79fc scripts/miscellaneous/publish.m --- a/scripts/miscellaneous/publish.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/miscellaneous/publish.m Wed Jun 26 15:47:03 2019 -0400 @@ -819,7 +819,7 @@ ## Helper to clarify the following regular expressions. It is suitable for ## inline formatting, that is delimited literally at start and end by - ## `delim`. `term` is an indicating character for the end delimiter. + ## 'delim'. 'term' is an indicating character for the end delimiter. ## ## Best explained by example ('^' start and '$' end of input): ## @@ -1104,7 +1104,7 @@ endfunction -## Note: Functional BIST tests are located in the `test/publish` directory. +## Note: Functional BIST tests are located in the 'test/publish' directory. ## Test input validation %!error publish () diff -r 274766cae722 -r 823b4bcf79fc scripts/pkg/private/configure_make.m --- a/scripts/pkg/private/configure_make.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/pkg/private/configure_make.m Wed Jun 26 15:47:03 2019 -0400 @@ -96,7 +96,7 @@ if (status != 0) rmdir (desc.dir, "s"); disp (output); - error ("pkg: error running `make' for the %s package.", desc.name); + error ("pkg: error running 'make' for the %s package.", desc.name); endif endif endif @@ -129,7 +129,7 @@ endif endif ## if verbose, we want to display the output in real time. To do this, we - ## must call system with 1 output argument. But then the variable `output' + ## must call system with 1 output argument. But then the variable 'output' ## won't exist. So we initialize it empty. If an error does occur, and we ## are verbose we will return an empty string but it's all fine since ## the error message has already been displayed. diff -r 274766cae722 -r 823b4bcf79fc scripts/special-matrix/gallery.m --- a/scripts/special-matrix/gallery.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/special-matrix/gallery.m Wed Jun 26 15:47:03 2019 -0400 @@ -69,7 +69,7 @@ ## @deftypefn {} {@var{a} =} gallery ("condex", @var{n}) ## @deftypefnx {} {@var{a} =} gallery ("condex", @var{n}, @var{k}) ## @deftypefnx {} {@var{a} =} gallery ("condex", @var{n}, @var{k}, @var{theta}) -## Create a `counterexample' matrix to a condition estimator. +## Create a 'counterexample' matrix to a condition estimator. ## ## @end deftypefn ## @@ -335,7 +335,7 @@ ## ## @deftypefn {} {@var{a} =} gallery ("smoke", @var{n}) ## @deftypefnx {} {@var{a} =} gallery ("smoke", @var{n}, @var{k}) -## Create a complex matrix, with a `smoke ring' pseudospectrum. +## Create a complex matrix, with a 'smoke ring' pseudospectrum. ## ## @end deftypefn ## @@ -563,7 +563,7 @@ ## CHEBSPEC Chebyshev spectral differentiation matrix. ## C = CHEBSPEC(N, K) is a Chebyshev spectral differentiation ## matrix of order N. K = 0 (the default) or 1. - ## For K = 0 (`no boundary conditions'), C is nilpotent, with + ## For K = 0 ('no boundary conditions'), C is nilpotent, with ## C^N = 0 and it has the null vector ONES(N,1). ## C is similar to a Jordan block of size N with eigenvalue zero. ## For K = 1, C is nonsingular and well-conditioned, and its eigenvalues @@ -711,7 +711,7 @@ ## (A circulant matrix has the property that each row is obtained ## from the previous one by cyclically permuting the entries one step ## forward; it is a special Toeplitz matrix in which the diagonals - ## `wrap round'.) + ## 'wrap round'.) ## Special case: if V is a scalar then C = CIRCUL(1:V). ## The eigensystem of C (N-by-N) is known explicitly. If t is an Nth ## root of unity, then the inner product of V with W = [1 t t^2 ... t^N] @@ -814,7 +814,7 @@ if (k == 0) ## This code uses less temporary storage than - ## the `high level' definition above. + ## the 'high level' definition above. C = -abs (A); for j = 1:p C(j,j) = abs (A(j,j)); @@ -840,10 +840,10 @@ endfunction function A = condex (n, k = 4, theta = 100) - ## CONDEX `Counterexamples' to matrix condition number estimators. - ## CONDEX(N, K, THETA) is a `counterexample' matrix to a condition + ## CONDEX 'Counterexamples' to matrix condition number estimators. + ## CONDEX(N, K, THETA) is a 'counterexample' matrix to a condition ## estimator. It has order N and scalar parameter THETA (default 100). - ## If N is not equal to the `natural' size of the matrix then + ## If N is not equal to the 'natural' size of the matrix then ## the matrix is padded out with an identity matrix to order N. ## The matrix, its natural size, and the estimator to which it applies ## are specified by K (default K = 4) as follows: @@ -2291,7 +2291,7 @@ ## a new proof of the prime number theorem. ## The Riemann hypothesis is true if and only if ## DET(A) = O( N^(1/2+epsilon) ) for every epsilon > 0 - ## (`!' denotes factorial). + ## ('!' denotes factorial). ## See also RIEMANN. ## ## Reference: @@ -2315,7 +2315,7 @@ ## A = RIEMANN(N) is an N-by-N matrix for which the ## Riemann hypothesis is true if and only if ## DET(A) = O( N! N^(-1/2+epsilon) ) for every epsilon > 0 - ## (`!' denotes factorial). + ## ('!' denotes factorial). ## A = B(2:N+1, 2:N+1), where ## B(i,j) = i-1 if i divides j and -1 otherwise. ## Properties include, with M = N+1: @@ -2366,7 +2366,7 @@ endfunction function A = smoke (n, k = 0) - ## SMOKE Smoke matrix - complex, with a `smoke ring' pseudospectrum. + ## SMOKE Smoke matrix - complex, with a 'smoke ring' pseudospectrum. ## SMOKE(N) is an N-by-N matrix with 1s on the ## superdiagonal, 1 in the (N,1) position, and powers of ## roots of unity along the diagonal. @@ -2446,9 +2446,9 @@ ## the line segment 2*cos(2*t) + 20*i*sin(t). ## ## Interesting plots are - ## PS(FULL(TOEPPEN(32,0,1,0,0,1/4))) - `triangle' - ## PS(FULL(TOEPPEN(32,0,1/2,0,0,1))) - `propeller' - ## PS(FULL(TOEPPEN(32,0,1/2,1,1,1))) - `fish' + ## PS(FULL(TOEPPEN(32,0,1,0,0,1/4))) - 'triangle' + ## PS(FULL(TOEPPEN(32,0,1/2,0,0,1))) - 'propeller' + ## PS(FULL(TOEPPEN(32,0,1/2,1,1,1))) - 'fish' ## ## References: ## R.M. Beam and R.F. Warming, The asymptotic spectra of @@ -2810,7 +2810,7 @@ ## If KU is omitted it defaults to KL. ## ## Called by RANDSVD. - ## This is a `standard' reduction. Cf. reduction to bidiagonal form + ## This is a 'standard' reduction. Cf. reduction to bidiagonal form ## prior to computing the SVD. This code is a little wasteful in that ## it computes certain elements which are immediately set to zero! ## diff -r 274766cae722 -r 823b4bcf79fc scripts/web/weboptions.m --- a/scripts/web/weboptions.m Wed Jun 26 12:09:37 2019 -0400 +++ b/scripts/web/weboptions.m Wed Jun 26 15:47:03 2019 -0400 @@ -63,8 +63,9 @@ ## ## Default is NULL@. It must be a string or character vector. ## Programming Note: If you display a @code{weboption} object with the Password -## property set, the value is displayed as a string containing ‘*’. However, -## the object stores the value of the Password property as plain text. +## property set, the value is displayed as a string containing +## @qcode{\"*\"}. However, the object stores the value of the Password +## property as plain text. ## ## @item ## @samp{KeyName} --- Specify the name of an additional key to be added to diff -r 274766cae722 -r 823b4bcf79fc test/classdef/classdef.tst --- a/test/classdef/classdef.tst Wed Jun 26 12:09:37 2019 -0400 +++ b/test/classdef/classdef.tst Wed Jun 26 15:47:03 2019 -0400 @@ -53,15 +53,15 @@ %!xtest <*55858> %! assert (methods (p), {'amount'; 'foo_value_class'}); %!assert (isempty (foo_value_class().rate)) -%!error foo_value_class.rate +%!error foo_value_class.rate %!shared # clear all shared variables for remainder of tests %% Static method and Constant Property %!assert (foo_static_method_constant_property.radians_per_cycle == 2*pi) %!assert (foo_static_method_constant_property().radians_per_cycle == 2*pi) %!assert (foo_static_method_constant_property().pie == pi) -%!error foo_static_method_constant_property.frequency -%!error foo_static_method_constant_property.cosine +%!error foo_static_method_constant_property.frequency +%!error foo_static_method_constant_property.cosine %!test %! obj = foo_static_method_constant_property; %! obj.frequency = 10;