diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2007-10-29 12:08:16 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2007-10-29 12:08:16 +0000 |
commit | 5ed6b84f859178d5a6f865283aa208dd18d1b2e6 (patch) | |
tree | 60b41e722257c8a2fc4945a9f5333c3ab05bf63c | |
parent | 055bbd79414b50cb035e0cfdc74fcb5a202480c2 (diff) | |
download | enchant-5ed6b84f859178d5a6f865283aa208dd18d1b2e6.tar.gz |
some documentation fixes and improvements. from eric albright
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22223 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/enchant.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/enchant.c b/src/enchant.c index 91727d0..cb79f25 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -520,7 +520,7 @@ enchant_dict_get_error (EnchantDict * dict) /** * enchant_dict_check * @dict: A non-null #EnchantDict - * @word: The non-null word you wish to correct, in UTF-8 encoding + * @word: The non-null word you wish to check, in UTF-8 encoding * @len: The byte length of @word, or -1 for strlen (@word) * * Will return an "incorrect" value if any of those pre-conditions @@ -778,7 +778,7 @@ enchant_dict_store_replacement (EnchantDict * dict, /** * enchant_dict_free_string_list * @dict: A non-null #EnchantDict - * @string_list: + * @string_list: A non-null string list returned from enchant_dict_suggest * * Releases the string list */ @@ -1150,7 +1150,7 @@ enchant_broker_init (void) * enchant_broker_free * @broker: A non-null #EnchantBroker * - * Destroys the broker object + * Destroys the broker object. Must only be called once per broker init */ ENCHANT_MODULE_EXPORT (void) enchant_broker_free (EnchantBroker * broker) @@ -1200,7 +1200,7 @@ enchant_broker_request_pwl_dict (EnchantBroker * broker, const char *const pwl) return dict; } - session = enchant_session_new_with_pwl (NULL, pwl, "Personal WordList", TRUE); + session = enchant_session_new_with_pwl (NULL, pwl, "Personal Wordlist", TRUE); if (!session) { broker->error = g_strdup_printf ("Couldn't open personal wordlist '%s'", pwl); @@ -1393,7 +1393,7 @@ enchant_broker_list_dicts (EnchantBroker * broker, * @broker: A non-null #EnchantBroker * @dict: A non-null #EnchantDict * - * Releases the dictionary when you are done using it + * Releases the dictionary when you are done using it. Must only be called once per dictionary request */ ENCHANT_MODULE_EXPORT (void) enchant_broker_free_dict (EnchantBroker * broker, EnchantDict * dict) @@ -1599,7 +1599,7 @@ enchant_broker_get_error (EnchantBroker * broker) return broker->error; } -/* private */ +/* private. returned string should be free'd with g_free */ ENCHANT_MODULE_EXPORT(char *) enchant_get_user_language(void) { @@ -1639,6 +1639,8 @@ enchant_get_user_language(void) * compiled, except it is determined at runtime based on the location * of the enchant library. * + * Returns: the prefix dir if it can be determined, or %null otherwise. Must be free'd. + * * This API is private to the providers. * */ |