# HG changeset patch # User jwe # Date 1038979268 0 # Node ID bc6059c5ddc7f5c782f50e1b341865cafd597baa # Parent b9317f3973ec11f98f192a7ccb00ee4e6e4f2137 [project @ 2002-12-04 05:21:08 by jwe] diff -r b9317f3973ec -r bc6059c5ddc7 doc/ChangeLog --- a/doc/ChangeLog Wed Dec 04 04:57:01 2002 +0000 +++ b/doc/ChangeLog Wed Dec 04 05:21:08 2002 +0000 @@ -1,3 +1,16 @@ +2002-12-03 John W. Eaton + + * interpreter/Makefile.in (%.o : %.c): No longer need + -DNO_PRAGMA_INTERFACE_IMPLEMENTATION=1 compiler option. + (munge-texi#(BUILD_EXEEXT)): Likewise. + Don't link to Map-s.o. + + * interpreter/Map-s.cc: Delete. + * interpreter/Makefile.in (DISTFILES): Delete it from the list. + (mostlyclean, clean): Don't delete Map-s.o. + + * interpreter/munge-texi.cc: Require working STL. + 2002-11-24 John W. Eaton * interpreter/Makefile.in (maintainer-clean): Depend on diff -r b9317f3973ec -r bc6059c5ddc7 doc/interpreter/Makefile.in --- a/doc/interpreter/Makefile.in Wed Dec 04 04:57:01 2002 +0000 +++ b/doc/interpreter/Makefile.in Wed Dec 04 05:21:08 2002 +0000 @@ -42,7 +42,7 @@ MAN_BASE := mkoctfile octave octave-bug MAN_SRC := $(addsuffix .1, $(MAN_BASE)) -DISTFILES = Makefile.in dir munge-texi.cc Map-s.cc $(MAN_SRC) \ +DISTFILES = Makefile.in dir munge-texi.cc $(MAN_SRC) \ $(SOURCES) $(TEXINFO) $(FORMATTED) ifeq ($(wildcard octave.info), ) @@ -69,10 +69,10 @@ $(TEXINFO): src-DOCSTRINGS scripts-DOCSTRINGS munge-texi$(BUILD_EXEEXT) %.o : %.cc - $(BUILD_CXX) -DNO_PRAGMA_INTERFACE_IMPLEMENTATION=1 -c $(INCFLAGS) -DHAVE_CONFIG_H $< -o $@ + $(BUILD_CXX) -c $(INCFLAGS) -DHAVE_CONFIG_H $< -o $@ -munge-texi$(BUILD_EXEEXT): munge-texi.o Map-s.o - $(BUILD_CXX) -DNO_PRAGMA_INTERFACE_IMPLEMENTATION=1 -o $@ $^ +munge-texi$(BUILD_EXEEXT): munge-texi.o + $(BUILD_CXX) -o $@ $^ src-DOCSTRINGS: $(MAKE) -C ../../src DOCSTRINGS @@ -183,7 +183,7 @@ octave.cps octave.fns octave.ins octave.kys octave.ops \ octave.pgs octave.rds octave.tps octave.vrs octave.aux \ octave.log octave.toc \ - munge-texi$(BUILD_EXEEXT) munge-texi.o Map-s.o + munge-texi$(BUILD_EXEEXT) munge-texi.o .PHONY: mostlyclean clean distclean: clean diff -r b9317f3973ec -r bc6059c5ddc7 doc/interpreter/Map-s.cc --- a/doc/interpreter/Map-s.cc Wed Dec 04 04:57:01 2002 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -/* - -Copyright (C) 1999 John W. Eaton - -This file is part of Octave. - -Octave is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -Octave is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License -along with Octave; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -// Instantiate Maps of strings. - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "Map.h" -#include "Map.cc" - -template class Map; -template class CHNode; -template class CHMap; - -/* -;;; Local Variables: *** -;;; mode: C++ *** -;;; End: *** -*/ diff -r b9317f3973ec -r bc6059c5ddc7 doc/interpreter/munge-texi.cc --- a/doc/interpreter/munge-texi.cc Wed Dec 04 04:57:01 2002 +0000 +++ b/doc/interpreter/munge-texi.cc Wed Dec 04 05:21:08 2002 +0000 @@ -24,28 +24,12 @@ #include #include #include +#include static const char doc_delim = ''; -// If this fails to compile and link for you, delete the following -// define to use old non-standard GNU libg++ Map class. - -#define USE_STL - -#if defined (USE_STL) - -#include - static std::map help_text; -#else - -#include "Map.h" - -static CHMap help_text = CHMap (std::string ()); - -#endif - static void fatal (const std::string& msg) { @@ -104,11 +88,7 @@ { std::string doc_string = extract_docstring (infile); -#if defined (USE_STL) if (help_text.find (symbol_name) != help_text.end ()) -#else - if (help_text.contains (symbol_name)) -#endif std::cerr << "ignoring duplicate entry for " << symbol_name << "\n"; else diff -r b9317f3973ec -r bc6059c5ddc7 src/ChangeLog --- a/src/ChangeLog Wed Dec 04 04:57:01 2002 +0000 +++ b/src/ChangeLog Wed Dec 04 05:21:08 2002 +0000 @@ -1,5 +1,11 @@ 2002-12-03 John W. Eaton + * TEMPLATE-INST/Map-tc.cc, TEMPLATE-INST/Map-fnc.cc: Delete. + * Makefile.in (TI_XSRC): Delete them from the list. + + * fn-cache.h (octave_fcn_file_name_cache::cache): Now std::map, + not CHMap. + * TEMPLATE-INST/SLStack-i.cc, TEMPLATE-INST/SLStack-ovl.cc, TEMPLATE-INST/SLStack-pc.cc, TEMPLATE-INST/SLStack-str.cc, TEMPLATE-INST/SLStack-sym.cc, TEMPLATE-INST/SLStack-tok.cc, diff -r b9317f3973ec -r bc6059c5ddc7 src/Makefile.in --- a/src/Makefile.in Wed Dec 04 04:57:01 2002 +0000 +++ b/src/Makefile.in Wed Dec 04 05:21:08 2002 +0000 @@ -90,9 +90,8 @@ siglist.h symtab.h sysdep.h token.h toplev.h unwind-prot.h utils.h \ variables.h version.h xdiv.h xpow.h $(OV_INCLUDES) $(PT_INCLUDES) -TI_XSRC := Array-oc.cc Array-os.cc Array-sym.cc Array-tc.cc Map-fnc.cc \ - Map-oct-obj.cc Map-tc.cc SLList-expr.cc SLList-misc.cc \ - SLList-plot.cc SLList-tc.cc SLList-tm.cc +TI_XSRC := Array-oc.cc Array-os.cc Array-sym.cc Array-tc.cc Map-oct-obj.cc \ + SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-tc.cc SLList-tm.cc TI_SRC := $(addprefix TEMPLATE-INST/, $(TI_XSRC)) diff -r b9317f3973ec -r bc6059c5ddc7 src/TEMPLATE-INST/Map-fnc.cc --- a/src/TEMPLATE-INST/Map-fnc.cc Wed Dec 04 04:57:01 2002 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -/* - -Copyright (C) 1996, 1997 John W. Eaton - -This file is part of Octave. - -Octave is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -Octave is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License -along with Octave; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -// Instantiate Maps of file_name_cache_elts. - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include - -#include "Map.h" -#include "Map.cc" - -#include "str-vec.h" - -#include "fn-cache.h" - -template class Map; -template class CHNode; -template class CHMap; - -/* -;;; Local Variables: *** -;;; mode: C++ *** -;;; End: *** -*/ diff -r b9317f3973ec -r bc6059c5ddc7 src/TEMPLATE-INST/Map-tc.cc --- a/src/TEMPLATE-INST/Map-tc.cc Wed Dec 04 04:57:01 2002 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -/* - -Copyright (C) 1996, 1997 John W. Eaton - -This file is part of Octave. - -Octave is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -Octave is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License -along with Octave; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -// Instantiate Maps of octave_values. - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "Map.h" -#include "Map.cc" - -#include "oct-obj.h" - -template class Map; -template class CHNode; -template class CHMap; - -/* -;;; Local Variables: *** -;;; mode: C++ *** -;;; End: *** -*/ diff -r b9317f3973ec -r bc6059c5ddc7 src/fn-cache.cc --- a/src/fn-cache.cc Wed Dec 04 04:57:01 2002 +0000 +++ b/src/fn-cache.cc Wed Dec 04 05:21:08 2002 +0000 @@ -58,7 +58,7 @@ { std::string d = dirs[i]; - if (cache.contains (d)) + if (cache.find (d) != cache.end ()) { if (cache[d].update (d)) something_changed = true; diff -r b9317f3973ec -r bc6059c5ddc7 src/fn-cache.h --- a/src/fn-cache.h Wed Dec 04 04:57:01 2002 +0000 +++ b/src/fn-cache.h Wed Dec 04 05:21:08 2002 +0000 @@ -24,8 +24,7 @@ #define octave_fn_cache_h 1 #include - -#include "Map.h" +#include #include "oct-time.h" @@ -89,9 +88,7 @@ { protected: - octave_fcn_file_name_cache (void) - : cache (file_name_cache_elt ()) - { update (std::string ()); } + octave_fcn_file_name_cache (void) : cache () { update (std::string ()); } public: @@ -116,7 +113,7 @@ // An associative array of all the directory names in the load path // and the corresponding cache elements. - CHMap cache; + std::map cache; string_vector do_list (const std::string& path, bool no_suffix); };