Mercurial > hg > octave-lojdl
changeset 10148:deba43069023
don't install oct-glob.h
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 20 Jan 2010 13:03:10 -0500 |
parents | adc0143e9419 |
children | 722b43fd486e |
files | liboctave/ChangeLog liboctave/Makefile.am liboctave/glob-match.cc liboctave/glob-match.h |
diffstat | 4 files changed, 30 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,12 @@ +2010-01-20 John W. Eaton <jwe@octave.org> + + * Makefile.am (PRIVATE_INCS): New variable. List oct-glob.h + here instead of in INCS. + (liboctave_la_SOURCES): Include $(PRIVATE_INCS) in the list. + + * glob-match.cc (glob_match::match, glob_match::glob): Now const. + Move definitions here from glob-match.h. + 2010-01-20 Jaroslav Hajek <highegg@gmail.com> * mx-inlines.cc (mx_inline_any_r, mx_inline_all_r): New helper
--- a/liboctave/Makefile.am +++ b/liboctave/Makefile.am @@ -215,7 +215,6 @@ oct-env.h \ oct-fftw.h \ oct-getopt.h \ - oct-glob.h \ oct-group.h \ oct-inttypes.h \ oct-locbuf.h \ @@ -251,6 +250,9 @@ syswait.h \ $(MATRIX_INC) +PRIVATE_INCS = \ + oct-glob.h + OTHER_INC = \ intNDArray.cc \ kpse.cc \ @@ -505,7 +507,8 @@ liboctave_la_SOURCES = \ $(LIBOCTAVE_SOURCES) \ $(LIBOCT_READLINE_SOURCES) \ - $(LIBOCT_PATHSEARCH_SOURCES) + $(LIBOCT_PATHSEARCH_SOURCES) \ + $(PRIVATE_INCS) liboctave_la_LIBADD = $(LINK_DEPS)
--- a/liboctave/glob-match.cc +++ b/liboctave/glob-match.cc @@ -27,6 +27,19 @@ #include <fnmatch.h> #include "glob-match.h" +#include "oct-glob.h" + +bool +glob_match::match (const std::string& str) const +{ + return octave_fnmatch (pat, str, fnmatch_flags); +} + +string_vector +glob_match::glob (void) const +{ + return octave_glob (pat); +} int glob_match::opts_to_fnmatch_flags (unsigned int xopts) const
--- a/liboctave/glob-match.h +++ b/liboctave/glob-match.h @@ -26,7 +26,6 @@ #include <string> #include "Array.h" -#include "oct-glob.h" #include "str-vec.h" class @@ -69,12 +68,9 @@ void set_pattern (const string_vector& p) { pat = p; } - bool match (const std::string& str) - { - return octave_fnmatch (pat, str, fnmatch_flags); - } + bool match (const std::string& str) const; - Array<bool> match (const string_vector& str) + Array<bool> match (const string_vector& str) const { int n = str.length (); @@ -89,7 +85,7 @@ // We forward to glob_internal here to avoid problems with gnulib's // glob.h defining glob to be rpl_glob. - string_vector glob (void) { return octave_glob (pat); } + string_vector glob (void) const; private: