Mercurial > octave
diff liboctave/util/lo-regexp.cc @ 27101:097774bed4ed
move some static functions inside octave namespace
In most files that define static functions and use the octave
namespace, define the static fucntions inside the namespace.
Files affected: octave-qscintilla.cc, main-window.cc,
variable-editor-model.cc, variable-editor.cc, welcome-wizard.cc,
call-stack.cc, environment.cc, help.cc, input.cc, load-path.cc,
sysdep.cc, text-renderer.cc, url-handle-manager.cc, __ode15__.cc,
ov-typeinfo.cc, aepbalance.cc, chol.cc, gsvd.cc, file-ops.cc,
lo-array-errwarn.cc, lo-regexp.cc, oct-glob.cc, and oct-sparse.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 May 2019 19:50:59 +0000 |
parents | 00f796120a6d |
children | db687716fed6 |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.cc Tue May 21 17:39:13 2019 +0000 +++ b/liboctave/util/lo-regexp.cc Tue May 21 19:50:59 2019 +0000 @@ -45,20 +45,20 @@ #include "lo-regexp.h" #include "str-vec.h" -// Define the maximum number of retries for a pattern -// that possibly results in an infinite recursion. +namespace octave +{ + // Define the maximum number of retries for a pattern + // that possibly results in an infinite recursion. #define PCRE_MATCHLIMIT_MAX 10 -// FIXME: should this be configurable? + // FIXME: should this be configurable? #define MAXLOOKBEHIND 10 -static bool lookbehind_warned = false; + static bool lookbehind_warned = false; -// FIXME: don't bother collecting and composing return values -// the user doesn't want. + // FIXME: don't bother collecting and composing return values + // the user doesn't want. -namespace octave -{ void regexp::free (void) {