-2003-08-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+n2003-08-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* Documentation/ChangeLog-1.5: add back old log.
tar -C / -zxf data.tar.gz /usr/share/lilypond/1.8.0/dvips/
texhash
@end example
-
If you are installing LilyPond somewhere else, unpack the appropriate
-files as shown, and move them to the appropriate paths.
+files as shown, and move them to the appropriate paths. Of course, the
+.deb version number should correspond to what you are installing.
+
+
If you are doing an upgrade, you should remove all @file{feta}
@code{.pk} and @code{.tfm} files. A script has been provided to do the
+++ /dev/null
-/*
- dictionary.hh -- declare Dictionary
-
- source file of the Flower Library
-
- (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-
-#ifndef DICTIONARY_HH
-#define DICTIONARY_HH
-
-#include <map>
-
-#include "string.hh"
-
-template <class V>
-struct Dict_initialiser
-{
- char *key_;
- V value_;
-};
-
-
-/*
- interface to STL function.
- */
-
-template <class V>
-class Dictionary : public std::map<String, V> //map<String, V>
-{
-public:
- Dictionary ()
- {
- }
- Dictionary (Dict_initialiser<V> *p)
- {
- for (Dict_initialiser<V> *q = p; q->key_; q++)
- (*this) [q->key_] = q->value_;
- }
- bool elem_b (String s)
- {
- typename std::map<String,V>::const_iterator ki (find (s));
- return ki != end ();
- }
-
-};
-
-
-#endif // DICTIONARY_HH
template<class T,class K> struct Assoc;
template<class K, class V> struct Hash_table;
template<class K, class V> struct Hash_table_iter;
-template<class T> struct Dictionary_iter;
-template<class T> struct Dictionary;
-template<class T> struct Dictionary_iter;
template<class T> struct Link_list;
template<class T> struct Interval_t;
template<class T> struct PQueue;
#ifndef AFM_HH
#define AFM_HH
+#include <map>
+
#include "string.hh"
#include "box.hh"
#include "array.hh"
-#include "dictionary.hh"
#include "font-metric.hh"
#include "parse-afm.hh"
unsigned int checksum_;
protected:
Array<int> ascii_to_metric_idx_;
- Dictionary<int> name_to_metric_dict_;
+ std::map<String,int> name_to_metric_dict_;
virtual Molecule find_by_name (String) const;
#include "includable-lexer.hh"
#include "input.hh"
-#include "dictionary.hh"
#include "lily-proto.hh"
#include "flower-proto.hh"
#include "array.hh"
-extern Dictionary<Translator*> *global_translator_dict;
void add_translator (Translator*trans);
Translator*get_translator (String s);
#include "scm-hash.hh"
-#include "dictionary.hh"
#include "warn.hh"
#include "music-output-def.hh"
#include "global-translator.hh"
*/
#include "translator.hh"
-#include "dictionary.hh"
+#include <map>
#include "warn.hh"
/*
should delete these after exit.
- */
+*/
-/*
- UGH. Dictionary is deprecated
- */
-Dictionary<Translator*> *global_translator_dict=0;
+std::map<String,Translator*> *global_translator_dict=0;
LY_DEFINE(get_all_translators,"ly:get-all-translators", 0, 0, 0, (),
"Return an list of a all translator objects that may be instantiated "
-" during a lilypond run.")
+ " during a lilypond run.")
{
SCM l = SCM_EOL;
for (std::map<String,Translator*>::const_iterator (ci (global_translator_dict->begin()));
add_translator (Translator *t)
{
if (!global_translator_dict)
- global_translator_dict = new Dictionary<Translator*>;
+ global_translator_dict = new std::map<String,Translator*>;
- (*global_translator_dict)[classname (t)] = t;
+ (*global_translator_dict)[classname (t)] = t;
}
Translator*
get_translator (String s)
{
- if (global_translator_dict->elem_b (s))
+ if (global_translator_dict->find (s) !=
+ global_translator_dict->end ())
{
- Translator* t = (*global_translator_dict)[s];
- return t;
+ Translator* t = (*global_translator_dict)[s];
+ return t;
}
error (_f ("unknown translator: `%s'", s));