Skip to content
Snippets Groups Projects
Verified Commit cfbd3fd5 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Efficiency change. OCTAVE_VERSION is a builtin function in Octave.

(cherry picked from commit 59739c38)
parent 21b8a0d9
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ if ~exist('ndim','file') ...@@ -62,7 +62,7 @@ if ~exist('ndim','file')
p{end+1} = 'utilities/missing/ndim'; p{end+1} = 'utilities/missing/ndim';
end end
if ~exist('OCTAVE_VERSION') && isstandalone if ~exist('OCTAVE_VERSION', 'builtin') && isstandalone
p{end+1} = 'utilities/missing/dims'; p{end+1} = 'utilities/missing/dims';
end end
...@@ -74,7 +74,7 @@ if ~exist('get_file_extension','file') ...@@ -74,7 +74,7 @@ if ~exist('get_file_extension','file')
p{end+1} = 'utilities/missing/get_file_extension'; p{end+1} = 'utilities/missing/get_file_extension';
end end
if exist('OCTAVE_VERSION') && ~exist('user_has_octave_forge_package','file') if exist('OCTAVE_VERSION', 'builtin') && ~exist('user_has_octave_forge_package','file')
p{end+1} = 'utilities/missing/user_has_octave_forge_package'; p{end+1} = 'utilities/missing/user_has_octave_forge_package';
end end
...@@ -90,23 +90,23 @@ if ~exist('one_sided_hp_filter','file') ...@@ -90,23 +90,23 @@ if ~exist('one_sided_hp_filter','file')
p{end+1} = 'utilities/missing/one_sided_hp_filter'; p{end+1} = 'utilities/missing/one_sided_hp_filter';
end end
if ~exist('OCTAVE_VERSION') && ~exist('ismatrix','builtin') if ~exist('OCTAVE_VERSION', 'builtin') && ~exist('ismatrix','builtin')
p{end+1} = 'utilities/missing/ismatrix'; p{end+1} = 'utilities/missing/ismatrix';
end end
if ~exist('OCTAVE_VERSION') && ~exist('isrow','builtin') if ~exist('OCTAVE_VERSION', 'builtin') && ~exist('isrow','builtin')
p{end+1} = 'utilities/missing/isrow'; p{end+1} = 'utilities/missing/isrow';
end end
if ~exist('OCTAVE_VERSION') && ~exist('iscolumn','builtin') if ~exist('OCTAVE_VERSION', 'builtin') && ~exist('iscolumn','builtin')
p{end+1} = 'utilities/missing/iscolumn'; p{end+1} = 'utilities/missing/iscolumn';
end end
if ~exist('OCTAVE_VERSION') && ~exist('strsplit','file') if ~exist('OCTAVE_VERSION', 'builtin') && ~exist('strsplit','file')
p{end+1} = 'utilities/missing/strsplit'; p{end+1} = 'utilities/missing/strsplit';
end end
if ~exist('OCTAVE_VERSION') && ~exist('strjoin','file') if ~exist('OCTAVE_VERSION', 'builtin') && ~exist('strjoin','file')
p{end+1} = 'utilities/missing/strjoin'; p{end+1} = 'utilities/missing/strjoin';
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment