summaryrefslogtreecommitdiff
path: root/providers/enchant_nuspell.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reduce dependency on gnulib by requiring C99 and POSIX 2008Dimitrij Mijoski2022-03-191-7/+6
| | | | | | | | | - Remove gnulib modules c99, getopt-posix, strdup-posix, ssize_t - Also remove obsolete gnulib module snippet/unused-parameter, use _GL_UNUSED instead of older _GL_UNUSED_PARAMETER, and instead of [[maybe_unused]]. Thanks to @dimztimz for providing the patch on which this commit is based.
* Completely rework provider Nuspell, require Nuspell v5.1.0.Dimitrij Mijoski2022-02-181-334/+86
| | | | | The new provider is much smaller in code size, more correct and uses some new APIs introduced in v5.1.0 for enumerating the dictionaries.
* Fix license exceptionReuben Thomas2021-08-061-2/+2
| | | | | Update license exception that allows linking with proprietary spellcheckers to include all copyright holders, not just Dom Lachowicz.
* providers/enchant_nuspell.cpp: Improve code for provider Nuspell.Dimitrij Mijoski2020-11-201-16/+10
| | | | | | | | Some improvements were made in Nuspell API in newer versions which can be used here: 1. Its spell() and suggest() accept string_view, there is no need for temporary std::string any more. 2. Use its new API for finding dictionaries as the old one is deprecated.
* providers/enchant_nuspell.cpp: fix a few leaksReuben Thomas2020-07-291-3/+7
| | | | | A malloced char * was being converted to std::string without freeing the char * in a few places.
* Nuspell provider implementationPanderMusubi2020-02-271-0/+438