Mercurial > hg > octave-terminal
changeset 3313:27502f8b3ba7
[project @ 1999-10-21 23:24:38 by jwe]
author | jwe |
---|---|
date | Thu, 21 Oct 1999 23:24:39 +0000 |
parents | 2396decd33de |
children | d8d8fcbecc30 |
files | doc/interpreter/Makefile.in doc/interpreter/Map-s.cc doc/interpreter/munge-texi.cc |
diffstat | 3 files changed, 81 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/Makefile.in +++ b/doc/interpreter/Makefile.in @@ -40,7 +40,7 @@ FORMATTED = octave.dvi octave.ps octave.info octave.info-[0-9]* octave_*.html -DISTFILES = Makefile.in dir munge-texi.cc octave.1 \ +DISTFILES = Makefile.in dir munge-texi.cc Map-s.cc octave.1 \ $(SOURCES) $(TEXINFO) $(FORMATTED) ifeq ($(wildcard octave.info), ) @@ -68,6 +68,9 @@ $(TEXINFO): $(DOCSTRINGS) munge-texi +munge-texi: munge-texi.o Map-s.o + $(CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o $@ $^ + # Kluge: if the DOCSTRING files are present, assume they are current. $(DOCSTRINGS): $(MAKE) -C $(dir $@) $(notdir $@)
new file mode 100644 --- /dev/null +++ b/doc/interpreter/Map-s.cc @@ -0,0 +1,43 @@ +/* + +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 <config.h> +#endif + +#include "Map.h" +#include "Map.cc" + +template class Map<string>; +template class CHNode<string>; +template class CHMap<string>; + +template static int goodCHptr (CHNode<string> *t); +template static unsigned int CHptr_to_index (CHNode<string> *t); + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/
--- a/doc/interpreter/munge-texi.cc +++ b/doc/interpreter/munge-texi.cc @@ -1,12 +1,37 @@ +/* + +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. + +*/ + #include <iostream.h> #include <fstream.h> #include <string> #include <cctype> -#include <map> + +// Someday, I hope that standard template library stuff will just +// work. Until then... +#include "Map.h" static const char doc_delim = ''; -static map<string, string> help_text; +static CHMap<string> help_text = CHMap<string> (string ()); static void fatal (const string& msg) @@ -66,7 +91,7 @@ { string doc_string = extract_docstring (infile); - if (help_text.find (symbol_name) != help_text.end ()) + if (help_text.contains (symbol_name)) cerr << "ignoring duplicate entry for " << symbol_name << "\n"; else help_text[symbol_name] = doc_string; @@ -177,3 +202,9 @@ return 0; } + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/