+2001-09-03 Dekel Tsur <dekelts@tau.ac.il>
+
+ * math_hash.C (ReadSymbols): Check for duplicate symbols
+
2001-09-02 Angus Leeming <a.leeming@ic.ac.uk>
* support.C: added a using std::map directive.
#include "lyxlex.h"
#include "debug.h"
#include "support/filetools.h" // LibFileSearch
-#include "support/lyxfunctional.h"
#include <map>
{"widetilde", LM_TK_DECORATION, 0},
{"{", LM_TK_SPECIAL, '{'},
{"|", LM_TK_UNDEF, '|'},
- {"}", LM_TK_SPECIAL, '}'},
+ {"}", LM_TK_SPECIAL, '}'}
};
tmp.id = lex.getInteger();
if (lex.next())
tmp.type = symbolType(lex.getString());
- wordlist[tmp.name] = tmp;
+ if (wordlist.find(tmp.name) != wordlist.end())
+ lyxerr << "ReadSymbols: token " << tmp.name
+ << " already exists.\n";
+ else
+ wordlist[tmp.name] = tmp;
}
}