summaryrefslogtreecommitdiff
path: root/src/enchant.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Improve HACKING"revert-92-masterReuben Thomas2017-02-211-1/+1
|
* Rename Myspell checker to HunspellReuben Thomas2017-02-211-1/+1
| | | | This includes the user-visible name for the back-end.
* Overhaul compiler warning flagsReuben Thomas2017-02-201-13/+10
| | | | | | | | Use gnulib’s manywarnings module for C, and adapt it to make a C++ version. Fix resulting warnings that are not in system headers (can’t be avoided as pkg-config supplies -I flags, not -isystem flags) or non-trivial (a couple in ispell library).
* Don’t deduplicate module & configuration pathsReuben Thomas2017-02-191-31/+13
| | | | | | | | | | | | | This change was introduced in commit fb312be to stop enchant-lmod listing duplicate modules. However, it makes an undocumented change to the way that configuration paths work, and can give surprising results: if a higher-priority configuration source happens to use the same path as a lower-priority one, then it will be ignored. Since a side effect of the changes to enchant_broker_list_dicts in commit 854316a is to make it list only one dictionary per tag in any case, this uniquifying is no longer needed, so there is no corresponding change in enchant-lsmod.c.
* Fix issue #49: stop unit tests changing user filesReuben Thomas2017-02-191-1/+13
| | | | Add ENCHANT_CONFIG_DIR so a private directory can be used
* Remove Windows-specific prefix finding code, and obsolete OpenOffice ↵Reuben Thomas2017-02-181-19/+0
| | | | dictionary finder
* Use standard macros to detect macOSReuben Thomas2017-02-181-1/+1
|
* Remove special hard-wired paths for macOSReuben Thomas2017-02-111-12/+0
| | | | | | | If needed, these should be supplied in the prefix. (If more than one path is required, or some other mechanism, let’s fix that generally, rather than having OS-specific stuff hard-wired.)
* Issue #72: remove Windows registry supportReuben Thomas2017-02-101-152/+12
|
* Fix issue #42: remove enchant_fopen; use g_fopenReuben Thomas2017-02-091-38/+1
|
* API: Make enchant_get_version return const char *Reuben Thomas2017-02-091-1/+1
| | | | Fixes issue #6.
* Remove deprecated APIsReuben Thomas2017-02-091-60/+0
|
* Fix issue #51: remove unused binary relocation supportReuben Thomas2017-02-021-16/+0
|
* enchant.c: add a missing word to a commentReuben Thomas2017-01-291-1/+1
|
* Cosmetic improvements to enchant.cReuben Thomas2017-01-151-8/+7
|
* Add support for runtime ENCHANT_MODULE_PATH environment variableReuben Thomas2017-01-101-19/+42
| | | | This will be used for testing, but may be useful for other purposes.
* Fix enchant_broker_list_dictsReuben Thomas2016-12-201-12/+38
| | | | | | | | | | | | | List the top priority dictionary for each language tag. Note that this lists real dictionaries, but may not list the provider and dictionary that would actually be used for a given tag: for example, if myspell is the preferred provider for tag “en”, and it has an “en_UK” dictionary, it would be used to check “en” even if aspell, say, provides exactly an “en” dictionary. However, the dictionary list would show the aspell dictionary. See issue #8 for more details.
* Fix non-API const warningsReuben Thomas2016-12-181-3/+3
|
* Fix a warning from macOS buildReuben Thomas2016-12-181-1/+1
|
* Fix most compilation warningsReuben Thomas2016-12-171-3/+0
| | | | | | Does not fix warnings that need API changes. Some of these fixes come from @PanderOpenTaal’s PR#3.
* Fix incompatible pointer typesJonathan Springer2015-08-281-1/+1
|
* Use g_filename_to_utf8 to convert environment variable to UTF8Jonathan Springer2015-08-271-1/+4
|
* Add environment variable to point enchant to a user defined prefix directoryJonathan Springer2015-08-271-4/+2
|
* Always try to use enchant_get_prefix_dir when finding modulesJonathan Springer2015-08-271-2/+1
|
* Palliative fix for 2-letter word bug.2011-03-101-0/+2
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@29656 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* add a function to get enchant's versionDom Lachowicz2010-01-111-0/+5
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28600 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Bug 12556 - document that dictionary-related functions return a ↵Dom Lachowicz2010-01-111-2/+2
| | | | | | reference-counted object git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28599 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Bugzilla Bug 12472 - Win32 DLL dependency not found popup occurs when module ↵Dom Lachowicz2009-11-091-0/+8
| | | | | | | | | | | | | | has unmet dependencies If, for example, the aspell module is present, but the required aspell library isn't available when the broker is initialized, a modal win32 error MessageBox appears saying that the required DLL can't be found in addition to the 'g_warning ("Error loading plugin: %s\n", g_module_error())' message that gets printed to the log. From Daniel Atallah <daniel_atallah@yahoo.com> git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28462 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Registry handle not closed in enchant_get_registry_value_exDom Lachowicz2009-10-261-0/+1
| | | | | | | | hKey handle should be closed. From Pierre Joye <pierre.php@gmail.com> http://bugzilla.abisource.com/show_bug.cgi?id=12409 git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28395 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Leak in _enchant_get_user_home_dirs() on WindowsDom Lachowicz2009-10-261-3/+4
| | | | | | | | | | The returned value of enchant_get_registry_value_ex() is g_strdup()'d instead of being used directly and the original value isn't freed - this will leak if anything is actually returned. From Daniel Atallah <daniel_atallah@yahoo.com> http://bugzilla.abisource.com/show_bug.cgi?id=12406 git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28394 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Update FSF addressDom Lachowicz2009-10-261-1/+1
| | | | | | | | | | | | | | The FSFs address has changed. Enchant 1.4.2 still has the old address / postal code. http://www.fsf.org/about/contact.html writes: > Free Software Foundation > 51 Franklin Street, Fifth Floor > Boston, MA 02110-1301 > USA http://bugzilla.abisource.com/show_bug.cgi?id=12007 git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28393 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* don't assert if passed a null string listDom Lachowicz2009-10-021-1/+0
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28242 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* avoid double-free. Noticed by Rob.Dom Lachowicz2009-06-301-1/+0
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@27068 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* bug 12173 - fix some small memory leaks. from Caolan.Dom Lachowicz2009-06-301-1/+6
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@27066 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Fix for 12160. Patch from the ever-awesome Caolan McNamara.Dom Lachowicz2009-06-231-3/+3
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26974 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* on windows, compare paths ignoring case sensitivity. may fix a bug that ↵Dom Lachowicz2009-05-231-20/+25
| | | | | | fridrich noticed git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26494 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* code should parse a parameter and turn it into a list of paths. normal ↵Dom Lachowicz2009-05-221-1/+25
| | | | | | win32/posix path conventions apply. i.e. on windows, use a semi-colon to separate paths, and on posix, use a colon git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26484 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* myspell and ispell now query for any programatically-set dictionary paths. ↵Dom Lachowicz2009-05-221-0/+6
| | | | | | the function that parses the path is not yet implemented. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26482 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Fix buildJ M Maurer2009-05-221-0/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26480 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* public API that will be used to pass information on to the spell checking ↵Dom Lachowicz2009-05-221-1/+24
| | | | | | libraries. such as a path to its dictionaries. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26479 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Duplicate the code from Glib's g_fopen function, so that Enchant and GlibDom Lachowicz2009-05-221-1/+38
| | | | | | | | don't necessarily have to be built against the same C runtime. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26478 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Fix a leak in _enchant_broker_request_dict (part of Bug 11979).2009-02-251-2/+4
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25748 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Fix Bug 11928, memory leak in _enchant_session_new().2009-02-151-0/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25687 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* #11621 - enchant-lsmod duplicates modulesDom Lachowicz2008-06-191-16/+43
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@24273 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Various fixes from TML to build Enchant on Win32 using MinGW/MSYSDom Lachowicz2008-06-171-13/+14
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@24261 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* enchant_get_conf_dirs gets user locations as well as system locationsEric Albright2008-04-271-2/+11
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23637 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Ensure an enchant subdirectory exists and not just the user's home directory ↵Eric Albright2008-04-271-13/+11
| | | | | | or config directory git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23636 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* configure.in: fix uspell dictionary directory. can now load uspell dictionariesDom Lachowicz2008-03-211-121/+164
| | | | | | | | | | | | configure.in: point myspell dictionary directory @ your distro's myspell installation configure.in: define enchant's $prefix, so that looking for dictionaries in (eg.) /usr/share/enchant/myspell will still work *.c, *.cpp: look for configuration files, shared libraries, and dictionaries in more places. follow the XDG user-dirs specification more closely, but preserve backward compatability git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23224 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* if someone requests 'pl' and myspell has a 'pl_PL' dictionary, return that ↵Dom Lachowicz2008-03-201-27/+19
| | | | | | as a 'close enough' answer git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23210 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Initialize base_dir in the non-win32 case (thanks rob)Eric Albright2008-03-031-1/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23000 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6