+2002-08-06 John Levon <levon@movementarian.org>
+
+ * sp_spell.C: let the new aspell pspell work
+
2002-08-01 John Levon <levon@movementarian.org>
* lyxfunc.C: let user specify a non-existent file on open
#include "support/LAssert.h"
#define USE_ORIGINAL_MANAGER_FUNCS 1
+// new aspell pspell missing extern "C"
+extern "C" {
# include <pspell/pspell.h>
+}
#include "sp_pspell.h"
void PSpell::initialize(BufferParams const &, string const & lang)
{
PspellConfig * config = new_pspell_config();
- config->replace("language-tag", lang.c_str());
+ pspell_config_replace(config, "language-tag", lang.c_str());
spell_error_object = new_pspell_manager(config);
if (pspell_error_number(spell_error_object) != 0) {
error_ = pspell_error_message(spell_error_object);