Index: interfaces/cc/aspell.h =================================================================== --- interfaces/cc/aspell.h (revision 97) +++ interfaces/cc/aspell.h (working copy) @@ -9,6 +9,20 @@ #ifndef ASPELL_ASPELL__H #define ASPELL_ASPELL__H +#if defined(WIN32) + +# if defined(aspell_shared_EXPORTS) +# define ASPELL_API __declspec(dllexport) +# elif !defined(ASPELL_STATIC) +# define ASPELL_API __declspec(dllimport) +# endif + +#endif + +#ifndef ASPELL_API +# define ASPELL_API +#endif + #ifdef __cplusplus extern "C" { #endif @@ -34,13 +48,13 @@ typedef struct AspellMutableContainer AspellMutableContainer; -int aspell_mutable_container_add(struct AspellMutableContainer * ths, const char * to_add); +ASPELL_API int aspell_mutable_container_add(struct AspellMutableContainer * ths, const char * to_add); -int aspell_mutable_container_remove(struct AspellMutableContainer * ths, const char * to_rem); +ASPELL_API int aspell_mutable_container_remove(struct AspellMutableContainer * ths, const char * to_rem); -void aspell_mutable_container_clear(struct AspellMutableContainer * ths); +ASPELL_API void aspell_mutable_container_clear(struct AspellMutableContainer * ths); -struct AspellMutableContainer * aspell_mutable_container_to_mutable_container(struct AspellMutableContainer * ths); +ASPELL_API struct AspellMutableContainer * aspell_mutable_container_to_mutable_container(struct AspellMutableContainer * ths); @@ -82,51 +96,51 @@ typedef struct AspellKeyInfoEnumeration AspellKeyInfoEnumeration; -int aspell_key_info_enumeration_at_end(const struct AspellKeyInfoEnumeration * ths); +ASPELL_API int aspell_key_info_enumeration_at_end(const struct AspellKeyInfoEnumeration * ths); -const struct AspellKeyInfo * aspell_key_info_enumeration_next(struct AspellKeyInfoEnumeration * ths); +ASPELL_API const struct AspellKeyInfo * aspell_key_info_enumeration_next(struct AspellKeyInfoEnumeration * ths); -void delete_aspell_key_info_enumeration(struct AspellKeyInfoEnumeration * ths); +ASPELL_API void delete_aspell_key_info_enumeration(struct AspellKeyInfoEnumeration * ths); -struct AspellKeyInfoEnumeration * aspell_key_info_enumeration_clone(const struct AspellKeyInfoEnumeration * ths); +ASPELL_API struct AspellKeyInfoEnumeration * aspell_key_info_enumeration_clone(const struct AspellKeyInfoEnumeration * ths); -void aspell_key_info_enumeration_assign(struct AspellKeyInfoEnumeration * ths, const struct AspellKeyInfoEnumeration * other); +ASPELL_API void aspell_key_info_enumeration_assign(struct AspellKeyInfoEnumeration * ths, const struct AspellKeyInfoEnumeration * other); typedef struct AspellConfig AspellConfig; -struct AspellConfig * new_aspell_config(); +ASPELL_API struct AspellConfig * new_aspell_config(); -void delete_aspell_config(struct AspellConfig * ths); +ASPELL_API void delete_aspell_config(struct AspellConfig * ths); -struct AspellConfig * aspell_config_clone(const struct AspellConfig * ths); +ASPELL_API struct AspellConfig * aspell_config_clone(const struct AspellConfig * ths); -void aspell_config_assign(struct AspellConfig * ths, const struct AspellConfig * other); +ASPELL_API void aspell_config_assign(struct AspellConfig * ths, const struct AspellConfig * other); -unsigned int aspell_config_error_number(const struct AspellConfig * ths); +ASPELL_API unsigned int aspell_config_error_number(const struct AspellConfig * ths); -const char * aspell_config_error_message(const struct AspellConfig * ths); +ASPELL_API const char * aspell_config_error_message(const struct AspellConfig * ths); -const struct AspellError * aspell_config_error(const struct AspellConfig * ths); +ASPELL_API const struct AspellError * aspell_config_error(const struct AspellConfig * ths); /* Sets extra keys which this config class should * accept. begin and end are expected to point to * the beginning and ending of an array of Aspell * Key Info. */ -void aspell_config_set_extra(struct AspellConfig * ths, const struct AspellKeyInfo * begin, const struct AspellKeyInfo * end); +ASPELL_API void aspell_config_set_extra(struct AspellConfig * ths, const struct AspellKeyInfo * begin, const struct AspellKeyInfo * end); /* Returns the KeyInfo object for the * corresponding key or returns NULL and sets * error_num to PERROR_UNKNOWN_KEY if the key is * not valid. The pointer returned is valid for * the lifetime of the object. */ -const struct AspellKeyInfo * aspell_config_keyinfo(struct AspellConfig * ths, const char * key); +ASPELL_API const struct AspellKeyInfo * aspell_config_keyinfo(struct AspellConfig * ths, const char * key); /* Returns a newly allocated enumeration of all * the possible objects this config class uses. */ -struct AspellKeyInfoEnumeration * aspell_config_possible_elements(struct AspellConfig * ths, int include_extra); +ASPELL_API struct AspellKeyInfoEnumeration * aspell_config_possible_elements(struct AspellConfig * ths, int include_extra); /* Returns the default value for given key which * may involve substituting variables, thus it is @@ -134,12 +148,12 @@ * and sets error_num to PERROR_UNKNOWN_KEY if * the key is not valid. Uses the temporary * string. */ -const char * aspell_config_get_default(struct AspellConfig * ths, const char * key); +ASPELL_API const char * aspell_config_get_default(struct AspellConfig * ths, const char * key); /* Returns a newly allocated enumeration of all * the key/value pairs. This DOES not include ones * which are set to their default values. */ -struct AspellStringPairEnumeration * aspell_config_elements(struct AspellConfig * ths); +ASPELL_API struct AspellStringPairEnumeration * aspell_config_elements(struct AspellConfig * ths); /* Inserts an item, if the item already exists it * will be replaced. Returns TRUE if it succeeded @@ -151,7 +165,7 @@ * PERROR_CANT_CHANGE_VALUE, and if the value is * a list and you are trying to set its directory, * it sets error_num to PERROR_LIST_SET */ -int aspell_config_replace(struct AspellConfig * ths, const char * key, const char * value); +ASPELL_API int aspell_config_replace(struct AspellConfig * ths, const char * key, const char * value); /* Remove a key and returns TRUE if it exists * otherwise return FALSE. This effectively sets @@ -163,25 +177,25 @@ * PERROR_UNKNOWN_KEY, if the value can not be * changed then it sets error_num to * PERROR_CANT_CHANGE_VALUE */ -int aspell_config_remove(struct AspellConfig * ths, const char * key); +ASPELL_API int aspell_config_remove(struct AspellConfig * ths, const char * key); -int aspell_config_have(const struct AspellConfig * ths, const char * key); +ASPELL_API int aspell_config_have(const struct AspellConfig * ths, const char * key); /* Returns NULL on error. */ -const char * aspell_config_retrieve(struct AspellConfig * ths, const char * key); +ASPELL_API const char * aspell_config_retrieve(struct AspellConfig * ths, const char * key); -int aspell_config_retrieve_list(struct AspellConfig * ths, const char * key, struct AspellMutableContainer * lst); +ASPELL_API int aspell_config_retrieve_list(struct AspellConfig * ths, const char * key, struct AspellMutableContainer * lst); /* In "ths" Aspell configuration, search for a * character string matching "key" string. * If "key" is found then return 1 else return 0. * If error encountered, then return -1. */ -int aspell_config_retrieve_bool(struct AspellConfig * ths, const char * key); +ASPELL_API int aspell_config_retrieve_bool(struct AspellConfig * ths, const char * key); /* In "ths" Aspell configuration, search for an * integer value matching "key" string. * Return -1 on error. */ -int aspell_config_retrieve_int(struct AspellConfig * ths, const char * key); +ASPELL_API int aspell_config_retrieve_int(struct AspellConfig * ths, const char * key); @@ -199,7 +213,7 @@ typedef struct AspellError AspellError; -int aspell_error_is_a(const struct AspellError * ths, const struct AspellErrorInfo * e); +ASPELL_API int aspell_error_is_a(const struct AspellError * ths, const struct AspellErrorInfo * e); struct AspellErrorInfo { @@ -224,104 +238,104 @@ typedef struct AspellCanHaveError AspellCanHaveError; -unsigned int aspell_error_number(const struct AspellCanHaveError * ths); +ASPELL_API unsigned int aspell_error_number(const struct AspellCanHaveError * ths); -const char * aspell_error_message(const struct AspellCanHaveError * ths); +ASPELL_API const char * aspell_error_message(const struct AspellCanHaveError * ths); -const struct AspellError * aspell_error(const struct AspellCanHaveError * ths); +ASPELL_API const struct AspellError * aspell_error(const struct AspellCanHaveError * ths); -void delete_aspell_can_have_error(struct AspellCanHaveError * ths); +ASPELL_API void delete_aspell_can_have_error(struct AspellCanHaveError * ths); /******************************** errors ********************************/ -extern const struct AspellErrorInfo * const aerror_other; -extern const struct AspellErrorInfo * const aerror_operation_not_supported; -extern const struct AspellErrorInfo * const aerror_cant_copy; -extern const struct AspellErrorInfo * const aerror_unimplemented_method; -extern const struct AspellErrorInfo * const aerror_file; -extern const struct AspellErrorInfo * const aerror_cant_open_file; -extern const struct AspellErrorInfo * const aerror_cant_read_file; -extern const struct AspellErrorInfo * const aerror_cant_write_file; -extern const struct AspellErrorInfo * const aerror_invalid_name; -extern const struct AspellErrorInfo * const aerror_bad_file_format; -extern const struct AspellErrorInfo * const aerror_dir; -extern const struct AspellErrorInfo * const aerror_cant_read_dir; -extern const struct AspellErrorInfo * const aerror_config; -extern const struct AspellErrorInfo * const aerror_unknown_key; -extern const struct AspellErrorInfo * const aerror_cant_change_value; -extern const struct AspellErrorInfo * const aerror_bad_key; -extern const struct AspellErrorInfo * const aerror_bad_value; -extern const struct AspellErrorInfo * const aerror_duplicate; -extern const struct AspellErrorInfo * const aerror_key_not_string; -extern const struct AspellErrorInfo * const aerror_key_not_int; -extern const struct AspellErrorInfo * const aerror_key_not_bool; -extern const struct AspellErrorInfo * const aerror_key_not_list; -extern const struct AspellErrorInfo * const aerror_no_value_reset; -extern const struct AspellErrorInfo * const aerror_no_value_enable; -extern const struct AspellErrorInfo * const aerror_no_value_disable; -extern const struct AspellErrorInfo * const aerror_no_value_clear; -extern const struct AspellErrorInfo * const aerror_language_related; -extern const struct AspellErrorInfo * const aerror_unknown_language; -extern const struct AspellErrorInfo * const aerror_unknown_soundslike; -extern const struct AspellErrorInfo * const aerror_language_not_supported; -extern const struct AspellErrorInfo * const aerror_no_wordlist_for_lang; -extern const struct AspellErrorInfo * const aerror_mismatched_language; -extern const struct AspellErrorInfo * const aerror_affix; -extern const struct AspellErrorInfo * const aerror_corrupt_affix; -extern const struct AspellErrorInfo * const aerror_invalid_cond; -extern const struct AspellErrorInfo * const aerror_invalid_cond_strip; -extern const struct AspellErrorInfo * const aerror_incorrect_encoding; -extern const struct AspellErrorInfo * const aerror_encoding; -extern const struct AspellErrorInfo * const aerror_unknown_encoding; -extern const struct AspellErrorInfo * const aerror_encoding_not_supported; -extern const struct AspellErrorInfo * const aerror_conversion_not_supported; -extern const struct AspellErrorInfo * const aerror_pipe; -extern const struct AspellErrorInfo * const aerror_cant_create_pipe; -extern const struct AspellErrorInfo * const aerror_process_died; -extern const struct AspellErrorInfo * const aerror_bad_input; -extern const struct AspellErrorInfo * const aerror_invalid_string; -extern const struct AspellErrorInfo * const aerror_invalid_word; -extern const struct AspellErrorInfo * const aerror_invalid_affix; -extern const struct AspellErrorInfo * const aerror_inapplicable_affix; -extern const struct AspellErrorInfo * const aerror_unknown_unichar; -extern const struct AspellErrorInfo * const aerror_word_list_flags; -extern const struct AspellErrorInfo * const aerror_invalid_flag; -extern const struct AspellErrorInfo * const aerror_conflicting_flags; -extern const struct AspellErrorInfo * const aerror_version_control; -extern const struct AspellErrorInfo * const aerror_bad_version_string; -extern const struct AspellErrorInfo * const aerror_filter; -extern const struct AspellErrorInfo * const aerror_cant_dlopen_file; -extern const struct AspellErrorInfo * const aerror_empty_filter; -extern const struct AspellErrorInfo * const aerror_no_such_filter; -extern const struct AspellErrorInfo * const aerror_confusing_version; -extern const struct AspellErrorInfo * const aerror_bad_version; -extern const struct AspellErrorInfo * const aerror_identical_option; -extern const struct AspellErrorInfo * const aerror_options_only; -extern const struct AspellErrorInfo * const aerror_invalid_option_modifier; -extern const struct AspellErrorInfo * const aerror_cant_describe_filter; -extern const struct AspellErrorInfo * const aerror_filter_mode_file; -extern const struct AspellErrorInfo * const aerror_mode_option_name; -extern const struct AspellErrorInfo * const aerror_no_filter_to_option; -extern const struct AspellErrorInfo * const aerror_bad_mode_key; -extern const struct AspellErrorInfo * const aerror_expect_mode_key; -extern const struct AspellErrorInfo * const aerror_mode_version_requirement; -extern const struct AspellErrorInfo * const aerror_confusing_mode_version; -extern const struct AspellErrorInfo * const aerror_bad_mode_version; -extern const struct AspellErrorInfo * const aerror_missing_magic_expression; -extern const struct AspellErrorInfo * const aerror_empty_file_ext; -extern const struct AspellErrorInfo * const aerror_filter_mode_expand; -extern const struct AspellErrorInfo * const aerror_unknown_mode; -extern const struct AspellErrorInfo * const aerror_mode_extend_expand; -extern const struct AspellErrorInfo * const aerror_filter_mode_magic; -extern const struct AspellErrorInfo * const aerror_file_magic_pos; -extern const struct AspellErrorInfo * const aerror_file_magic_range; -extern const struct AspellErrorInfo * const aerror_missing_magic; -extern const struct AspellErrorInfo * const aerror_bad_magic; -extern const struct AspellErrorInfo * const aerror_expression; -extern const struct AspellErrorInfo * const aerror_invalid_expression; +ASPELL_API extern const struct AspellErrorInfo * const aerror_other; +ASPELL_API extern const struct AspellErrorInfo * const aerror_operation_not_supported; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_copy; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unimplemented_method; +ASPELL_API extern const struct AspellErrorInfo * const aerror_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_open_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_read_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_write_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_name; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_file_format; +ASPELL_API extern const struct AspellErrorInfo * const aerror_dir; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_read_dir; +ASPELL_API extern const struct AspellErrorInfo * const aerror_config; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_key; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_change_value; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_key; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_value; +ASPELL_API extern const struct AspellErrorInfo * const aerror_duplicate; +ASPELL_API extern const struct AspellErrorInfo * const aerror_key_not_string; +ASPELL_API extern const struct AspellErrorInfo * const aerror_key_not_int; +ASPELL_API extern const struct AspellErrorInfo * const aerror_key_not_bool; +ASPELL_API extern const struct AspellErrorInfo * const aerror_key_not_list; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_value_reset; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_value_enable; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_value_disable; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_value_clear; +ASPELL_API extern const struct AspellErrorInfo * const aerror_language_related; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_language; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_soundslike; +ASPELL_API extern const struct AspellErrorInfo * const aerror_language_not_supported; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_wordlist_for_lang; +ASPELL_API extern const struct AspellErrorInfo * const aerror_mismatched_language; +ASPELL_API extern const struct AspellErrorInfo * const aerror_affix; +ASPELL_API extern const struct AspellErrorInfo * const aerror_corrupt_affix; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_cond; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_cond_strip; +ASPELL_API extern const struct AspellErrorInfo * const aerror_incorrect_encoding; +ASPELL_API extern const struct AspellErrorInfo * const aerror_encoding; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_encoding; +ASPELL_API extern const struct AspellErrorInfo * const aerror_encoding_not_supported; +ASPELL_API extern const struct AspellErrorInfo * const aerror_conversion_not_supported; +ASPELL_API extern const struct AspellErrorInfo * const aerror_pipe; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_create_pipe; +ASPELL_API extern const struct AspellErrorInfo * const aerror_process_died; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_input; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_string; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_word; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_affix; +ASPELL_API extern const struct AspellErrorInfo * const aerror_inapplicable_affix; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_unichar; +ASPELL_API extern const struct AspellErrorInfo * const aerror_word_list_flags; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_flag; +ASPELL_API extern const struct AspellErrorInfo * const aerror_conflicting_flags; +ASPELL_API extern const struct AspellErrorInfo * const aerror_version_control; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_version_string; +ASPELL_API extern const struct AspellErrorInfo * const aerror_filter; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_dlopen_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_empty_filter; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_such_filter; +ASPELL_API extern const struct AspellErrorInfo * const aerror_confusing_version; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_version; +ASPELL_API extern const struct AspellErrorInfo * const aerror_identical_option; +ASPELL_API extern const struct AspellErrorInfo * const aerror_options_only; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_option_modifier; +ASPELL_API extern const struct AspellErrorInfo * const aerror_cant_describe_filter; +ASPELL_API extern const struct AspellErrorInfo * const aerror_filter_mode_file; +ASPELL_API extern const struct AspellErrorInfo * const aerror_mode_option_name; +ASPELL_API extern const struct AspellErrorInfo * const aerror_no_filter_to_option; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_mode_key; +ASPELL_API extern const struct AspellErrorInfo * const aerror_expect_mode_key; +ASPELL_API extern const struct AspellErrorInfo * const aerror_mode_version_requirement; +ASPELL_API extern const struct AspellErrorInfo * const aerror_confusing_mode_version; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_mode_version; +ASPELL_API extern const struct AspellErrorInfo * const aerror_missing_magic_expression; +ASPELL_API extern const struct AspellErrorInfo * const aerror_empty_file_ext; +ASPELL_API extern const struct AspellErrorInfo * const aerror_filter_mode_expand; +ASPELL_API extern const struct AspellErrorInfo * const aerror_unknown_mode; +ASPELL_API extern const struct AspellErrorInfo * const aerror_mode_extend_expand; +ASPELL_API extern const struct AspellErrorInfo * const aerror_filter_mode_magic; +ASPELL_API extern const struct AspellErrorInfo * const aerror_file_magic_pos; +ASPELL_API extern const struct AspellErrorInfo * const aerror_file_magic_range; +ASPELL_API extern const struct AspellErrorInfo * const aerror_missing_magic; +ASPELL_API extern const struct AspellErrorInfo * const aerror_bad_magic; +ASPELL_API extern const struct AspellErrorInfo * const aerror_expression; +ASPELL_API extern const struct AspellErrorInfo * const aerror_invalid_expression; /******************************* speller *******************************/ @@ -330,55 +344,55 @@ typedef struct AspellSpeller AspellSpeller; -struct AspellCanHaveError * new_aspell_speller(struct AspellConfig * config); +ASPELL_API struct AspellCanHaveError * new_aspell_speller(struct AspellConfig * config); -struct AspellSpeller * to_aspell_speller(struct AspellCanHaveError * obj); +ASPELL_API struct AspellSpeller * to_aspell_speller(struct AspellCanHaveError * obj); -void delete_aspell_speller(struct AspellSpeller * ths); +ASPELL_API void delete_aspell_speller(struct AspellSpeller * ths); -unsigned int aspell_speller_error_number(const struct AspellSpeller * ths); +ASPELL_API unsigned int aspell_speller_error_number(const struct AspellSpeller * ths); -const char * aspell_speller_error_message(const struct AspellSpeller * ths); +ASPELL_API const char * aspell_speller_error_message(const struct AspellSpeller * ths); -const struct AspellError * aspell_speller_error(const struct AspellSpeller * ths); +ASPELL_API const struct AspellError * aspell_speller_error(const struct AspellSpeller * ths); -struct AspellConfig * aspell_speller_config(struct AspellSpeller * ths); +ASPELL_API struct AspellConfig * aspell_speller_config(struct AspellSpeller * ths); /* Returns 0 if it is not in the dictionary, * 1 if it is, or -1 on error. */ -int aspell_speller_check(struct AspellSpeller * ths, const char * word, int word_size); +ASPELL_API int aspell_speller_check(struct AspellSpeller * ths, const char * word, int word_size); /* Add this word to your own personal word list. */ -int aspell_speller_add_to_personal(struct AspellSpeller * ths, const char * word, int word_size); +ASPELL_API int aspell_speller_add_to_personal(struct AspellSpeller * ths, const char * word, int word_size); /* Add this word to the current spelling session. */ -int aspell_speller_add_to_session(struct AspellSpeller * ths, const char * word, int word_size); +ASPELL_API int aspell_speller_add_to_session(struct AspellSpeller * ths, const char * word, int word_size); /* This is your own personal word list file plus * any extra words added during this session to * your own personal word list. */ -const struct AspellWordList * aspell_speller_personal_word_list(struct AspellSpeller * ths); +ASPELL_API const struct AspellWordList * aspell_speller_personal_word_list(struct AspellSpeller * ths); /* This is a list of words added to this session * that are not in the main word list or in your * own personal list but are considered valid for * this spelling session. */ -const struct AspellWordList * aspell_speller_session_word_list(struct AspellSpeller * ths); +ASPELL_API const struct AspellWordList * aspell_speller_session_word_list(struct AspellSpeller * ths); /* This is the main list of words used during this * spelling session. */ -const struct AspellWordList * aspell_speller_main_word_list(struct AspellSpeller * ths); +ASPELL_API const struct AspellWordList * aspell_speller_main_word_list(struct AspellSpeller * ths); -int aspell_speller_save_all_word_lists(struct AspellSpeller * ths); +ASPELL_API int aspell_speller_save_all_word_lists(struct AspellSpeller * ths); -int aspell_speller_clear_session(struct AspellSpeller * ths); +ASPELL_API int aspell_speller_clear_session(struct AspellSpeller * ths); /* Return NULL on error. * The word list returned by suggest is only * valid until the next call to suggest. */ -const struct AspellWordList * aspell_speller_suggest(struct AspellSpeller * ths, const char * word, int word_size); +ASPELL_API const struct AspellWordList * aspell_speller_suggest(struct AspellSpeller * ths, const char * word, int word_size); -int aspell_speller_store_replacement(struct AspellSpeller * ths, const char * mis, int mis_size, const char * cor, int cor_size); +ASPELL_API int aspell_speller_store_replacement(struct AspellSpeller * ths, const char * mis, int mis_size, const char * cor, int cor_size); @@ -388,15 +402,15 @@ typedef struct AspellFilter AspellFilter; -void delete_aspell_filter(struct AspellFilter * ths); +ASPELL_API void delete_aspell_filter(struct AspellFilter * ths); -unsigned int aspell_filter_error_number(const struct AspellFilter * ths); +ASPELL_API unsigned int aspell_filter_error_number(const struct AspellFilter * ths); -const char * aspell_filter_error_message(const struct AspellFilter * ths); +ASPELL_API const char * aspell_filter_error_message(const struct AspellFilter * ths); -const struct AspellError * aspell_filter_error(const struct AspellFilter * ths); +ASPELL_API const struct AspellError * aspell_filter_error(const struct AspellFilter * ths); -struct AspellFilter * to_aspell_filter(struct AspellCanHaveError * obj); +ASPELL_API struct AspellFilter * to_aspell_filter(struct AspellCanHaveError * obj); @@ -418,13 +432,13 @@ typedef struct AspellDocumentChecker AspellDocumentChecker; -void delete_aspell_document_checker(struct AspellDocumentChecker * ths); +ASPELL_API void delete_aspell_document_checker(struct AspellDocumentChecker * ths); -unsigned int aspell_document_checker_error_number(const struct AspellDocumentChecker * ths); +ASPELL_API unsigned int aspell_document_checker_error_number(const struct AspellDocumentChecker * ths); -const char * aspell_document_checker_error_message(const struct AspellDocumentChecker * ths); +ASPELL_API const char * aspell_document_checker_error_message(const struct AspellDocumentChecker * ths); -const struct AspellError * aspell_document_checker_error(const struct AspellDocumentChecker * ths); +ASPELL_API const struct AspellError * aspell_document_checker_error(const struct AspellDocumentChecker * ths); /* Creates a new document checker. * The speller class is expected to last until @@ -435,14 +449,14 @@ * If filter is given then it will take ownership of * the filter class and use it to do the filtering. * You are expected to free the checker when done. */ -struct AspellCanHaveError * new_aspell_document_checker(struct AspellSpeller * speller); +ASPELL_API struct AspellCanHaveError * new_aspell_document_checker(struct AspellSpeller * speller); -struct AspellDocumentChecker * to_aspell_document_checker(struct AspellCanHaveError * obj); +ASPELL_API struct AspellDocumentChecker * to_aspell_document_checker(struct AspellCanHaveError * obj); /* Reset the internal state of the filter. * Should be called whenever a new document is * being filtered. */ -void aspell_document_checker_reset(struct AspellDocumentChecker * ths); +ASPELL_API void aspell_document_checker_reset(struct AspellDocumentChecker * ths); /* Process a string. * The string passed in should only be split on @@ -452,16 +466,16 @@ * in the document. Passing in strings out of * order, skipping strings or passing them in * more than once may lead to undefined results. */ -void aspell_document_checker_process(struct AspellDocumentChecker * ths, const char * str, int size); +ASPELL_API void aspell_document_checker_process(struct AspellDocumentChecker * ths, const char * str, int size); /* Returns the next misspelled word in the * processed string. If there are no more * misspelled words, then token.word will be * NULL and token.size will be 0 */ -struct AspellToken aspell_document_checker_next_misspelling(struct AspellDocumentChecker * ths); +ASPELL_API struct AspellToken aspell_document_checker_next_misspelling(struct AspellDocumentChecker * ths); /* Returns the underlying filter class. */ -struct AspellFilter * aspell_document_checker_filter(struct AspellDocumentChecker * ths); +ASPELL_API struct AspellFilter * aspell_document_checker_filter(struct AspellDocumentChecker * ths); @@ -471,11 +485,11 @@ typedef struct AspellWordList AspellWordList; -int aspell_word_list_empty(const struct AspellWordList * ths); +ASPELL_API int aspell_word_list_empty(const struct AspellWordList * ths); -unsigned int aspell_word_list_size(const struct AspellWordList * ths); +ASPELL_API unsigned int aspell_word_list_size(const struct AspellWordList * ths); -struct AspellStringEnumeration * aspell_word_list_elements(const struct AspellWordList * ths); +ASPELL_API struct AspellStringEnumeration * aspell_word_list_elements(const struct AspellWordList * ths); @@ -485,15 +499,15 @@ typedef struct AspellStringEnumeration AspellStringEnumeration; -void delete_aspell_string_enumeration(struct AspellStringEnumeration * ths); +ASPELL_API void delete_aspell_string_enumeration(struct AspellStringEnumeration * ths); -struct AspellStringEnumeration * aspell_string_enumeration_clone(const struct AspellStringEnumeration * ths); +ASPELL_API struct AspellStringEnumeration * aspell_string_enumeration_clone(const struct AspellStringEnumeration * ths); -void aspell_string_enumeration_assign(struct AspellStringEnumeration * ths, const struct AspellStringEnumeration * other); +ASPELL_API void aspell_string_enumeration_assign(struct AspellStringEnumeration * ths, const struct AspellStringEnumeration * other); -int aspell_string_enumeration_at_end(const struct AspellStringEnumeration * ths); +ASPELL_API int aspell_string_enumeration_at_end(const struct AspellStringEnumeration * ths); -const char * aspell_string_enumeration_next(struct AspellStringEnumeration * ths); +ASPELL_API const char * aspell_string_enumeration_next(struct AspellStringEnumeration * ths); @@ -556,56 +570,56 @@ typedef struct AspellModuleInfoList AspellModuleInfoList; -struct AspellModuleInfoList * get_aspell_module_info_list(struct AspellConfig * config); +ASPELL_API struct AspellModuleInfoList * get_aspell_module_info_list(struct AspellConfig * config); -int aspell_module_info_list_empty(const struct AspellModuleInfoList * ths); +ASPELL_API int aspell_module_info_list_empty(const struct AspellModuleInfoList * ths); -unsigned int aspell_module_info_list_size(const struct AspellModuleInfoList * ths); +ASPELL_API unsigned int aspell_module_info_list_size(const struct AspellModuleInfoList * ths); -struct AspellModuleInfoEnumeration * aspell_module_info_list_elements(const struct AspellModuleInfoList * ths); +ASPELL_API struct AspellModuleInfoEnumeration * aspell_module_info_list_elements(const struct AspellModuleInfoList * ths); typedef struct AspellDictInfoList AspellDictInfoList; -struct AspellDictInfoList * get_aspell_dict_info_list(struct AspellConfig * config); +ASPELL_API struct AspellDictInfoList * get_aspell_dict_info_list(struct AspellConfig * config); -int aspell_dict_info_list_empty(const struct AspellDictInfoList * ths); +ASPELL_API int aspell_dict_info_list_empty(const struct AspellDictInfoList * ths); -unsigned int aspell_dict_info_list_size(const struct AspellDictInfoList * ths); +ASPELL_API unsigned int aspell_dict_info_list_size(const struct AspellDictInfoList * ths); -struct AspellDictInfoEnumeration * aspell_dict_info_list_elements(const struct AspellDictInfoList * ths); +ASPELL_API struct AspellDictInfoEnumeration * aspell_dict_info_list_elements(const struct AspellDictInfoList * ths); typedef struct AspellModuleInfoEnumeration AspellModuleInfoEnumeration; -int aspell_module_info_enumeration_at_end(const struct AspellModuleInfoEnumeration * ths); +ASPELL_API int aspell_module_info_enumeration_at_end(const struct AspellModuleInfoEnumeration * ths); -const struct AspellModuleInfo * aspell_module_info_enumeration_next(struct AspellModuleInfoEnumeration * ths); +ASPELL_API const struct AspellModuleInfo * aspell_module_info_enumeration_next(struct AspellModuleInfoEnumeration * ths); -void delete_aspell_module_info_enumeration(struct AspellModuleInfoEnumeration * ths); +ASPELL_API void delete_aspell_module_info_enumeration(struct AspellModuleInfoEnumeration * ths); -struct AspellModuleInfoEnumeration * aspell_module_info_enumeration_clone(const struct AspellModuleInfoEnumeration * ths); +ASPELL_API struct AspellModuleInfoEnumeration * aspell_module_info_enumeration_clone(const struct AspellModuleInfoEnumeration * ths); -void aspell_module_info_enumeration_assign(struct AspellModuleInfoEnumeration * ths, const struct AspellModuleInfoEnumeration * other); +ASPELL_API void aspell_module_info_enumeration_assign(struct AspellModuleInfoEnumeration * ths, const struct AspellModuleInfoEnumeration * other); typedef struct AspellDictInfoEnumeration AspellDictInfoEnumeration; -int aspell_dict_info_enumeration_at_end(const struct AspellDictInfoEnumeration * ths); +ASPELL_API int aspell_dict_info_enumeration_at_end(const struct AspellDictInfoEnumeration * ths); -const struct AspellDictInfo * aspell_dict_info_enumeration_next(struct AspellDictInfoEnumeration * ths); +ASPELL_API const struct AspellDictInfo * aspell_dict_info_enumeration_next(struct AspellDictInfoEnumeration * ths); -void delete_aspell_dict_info_enumeration(struct AspellDictInfoEnumeration * ths); +ASPELL_API void delete_aspell_dict_info_enumeration(struct AspellDictInfoEnumeration * ths); -struct AspellDictInfoEnumeration * aspell_dict_info_enumeration_clone(const struct AspellDictInfoEnumeration * ths); +ASPELL_API struct AspellDictInfoEnumeration * aspell_dict_info_enumeration_clone(const struct AspellDictInfoEnumeration * ths); -void aspell_dict_info_enumeration_assign(struct AspellDictInfoEnumeration * ths, const struct AspellDictInfoEnumeration * other); +ASPELL_API void aspell_dict_info_enumeration_assign(struct AspellDictInfoEnumeration * ths, const struct AspellDictInfoEnumeration * other); @@ -615,27 +629,27 @@ typedef struct AspellStringList AspellStringList; -struct AspellStringList * new_aspell_string_list(); +ASPELL_API struct AspellStringList * new_aspell_string_list(); -int aspell_string_list_empty(const struct AspellStringList * ths); +ASPELL_API int aspell_string_list_empty(const struct AspellStringList * ths); -unsigned int aspell_string_list_size(const struct AspellStringList * ths); +ASPELL_API unsigned int aspell_string_list_size(const struct AspellStringList * ths); -struct AspellStringEnumeration * aspell_string_list_elements(const struct AspellStringList * ths); +ASPELL_API struct AspellStringEnumeration * aspell_string_list_elements(const struct AspellStringList * ths); -int aspell_string_list_add(struct AspellStringList * ths, const char * to_add); +ASPELL_API int aspell_string_list_add(struct AspellStringList * ths, const char * to_add); -int aspell_string_list_remove(struct AspellStringList * ths, const char * to_rem); +ASPELL_API int aspell_string_list_remove(struct AspellStringList * ths, const char * to_rem); -void aspell_string_list_clear(struct AspellStringList * ths); +ASPELL_API void aspell_string_list_clear(struct AspellStringList * ths); -struct AspellMutableContainer * aspell_string_list_to_mutable_container(struct AspellStringList * ths); +ASPELL_API struct AspellMutableContainer * aspell_string_list_to_mutable_container(struct AspellStringList * ths); -void delete_aspell_string_list(struct AspellStringList * ths); +ASPELL_API void delete_aspell_string_list(struct AspellStringList * ths); -struct AspellStringList * aspell_string_list_clone(const struct AspellStringList * ths); +ASPELL_API struct AspellStringList * aspell_string_list_clone(const struct AspellStringList * ths); -void aspell_string_list_assign(struct AspellStringList * ths, const struct AspellStringList * other); +ASPELL_API void aspell_string_list_assign(struct AspellStringList * ths, const struct AspellStringList * other); @@ -645,43 +659,43 @@ typedef struct AspellStringMap AspellStringMap; -struct AspellStringMap * new_aspell_string_map(); +ASPELL_API struct AspellStringMap * new_aspell_string_map(); -int aspell_string_map_add(struct AspellStringMap * ths, const char * to_add); +ASPELL_API int aspell_string_map_add(struct AspellStringMap * ths, const char * to_add); -int aspell_string_map_remove(struct AspellStringMap * ths, const char * to_rem); +ASPELL_API int aspell_string_map_remove(struct AspellStringMap * ths, const char * to_rem); -void aspell_string_map_clear(struct AspellStringMap * ths); +ASPELL_API void aspell_string_map_clear(struct AspellStringMap * ths); -struct AspellMutableContainer * aspell_string_map_to_mutable_container(struct AspellStringMap * ths); +ASPELL_API struct AspellMutableContainer * aspell_string_map_to_mutable_container(struct AspellStringMap * ths); -void delete_aspell_string_map(struct AspellStringMap * ths); +ASPELL_API void delete_aspell_string_map(struct AspellStringMap * ths); -struct AspellStringMap * aspell_string_map_clone(const struct AspellStringMap * ths); +ASPELL_API struct AspellStringMap * aspell_string_map_clone(const struct AspellStringMap * ths); -void aspell_string_map_assign(struct AspellStringMap * ths, const struct AspellStringMap * other); +ASPELL_API void aspell_string_map_assign(struct AspellStringMap * ths, const struct AspellStringMap * other); -int aspell_string_map_empty(const struct AspellStringMap * ths); +ASPELL_API int aspell_string_map_empty(const struct AspellStringMap * ths); -unsigned int aspell_string_map_size(const struct AspellStringMap * ths); +ASPELL_API unsigned int aspell_string_map_size(const struct AspellStringMap * ths); -struct AspellStringPairEnumeration * aspell_string_map_elements(const struct AspellStringMap * ths); +ASPELL_API struct AspellStringPairEnumeration * aspell_string_map_elements(const struct AspellStringMap * ths); /* Insert a new element. * Will NOT overwrite an existing entry. * Returns FALSE if the element already exists. */ -int aspell_string_map_insert(struct AspellStringMap * ths, const char * key, const char * value); +ASPELL_API int aspell_string_map_insert(struct AspellStringMap * ths, const char * key, const char * value); /* Insert a new element. * Will overwrite an existing entry. * Always returns TRUE. */ -int aspell_string_map_replace(struct AspellStringMap * ths, const char * key, const char * value); +ASPELL_API int aspell_string_map_replace(struct AspellStringMap * ths, const char * key, const char * value); /* Looks up an element and returns the value. * Returns NULL if the element does not exist. * Returns an empty string if the element exists * but has a NULL value. */ -const char * aspell_string_map_lookup(const struct AspellStringMap * ths, const char * key); +ASPELL_API const char * aspell_string_map_lookup(const struct AspellStringMap * ths, const char * key); @@ -706,15 +720,15 @@ typedef struct AspellStringPairEnumeration AspellStringPairEnumeration; -int aspell_string_pair_enumeration_at_end(const struct AspellStringPairEnumeration * ths); +ASPELL_API int aspell_string_pair_enumeration_at_end(const struct AspellStringPairEnumeration * ths); -struct AspellStringPair aspell_string_pair_enumeration_next(struct AspellStringPairEnumeration * ths); +ASPELL_API struct AspellStringPair aspell_string_pair_enumeration_next(struct AspellStringPairEnumeration * ths); -void delete_aspell_string_pair_enumeration(struct AspellStringPairEnumeration * ths); +ASPELL_API void delete_aspell_string_pair_enumeration(struct AspellStringPairEnumeration * ths); -struct AspellStringPairEnumeration * aspell_string_pair_enumeration_clone(const struct AspellStringPairEnumeration * ths); +ASPELL_API struct AspellStringPairEnumeration * aspell_string_pair_enumeration_clone(const struct AspellStringPairEnumeration * ths); -void aspell_string_pair_enumeration_assign(struct AspellStringPairEnumeration * ths, const struct AspellStringPairEnumeration * other); +ASPELL_API void aspell_string_pair_enumeration_assign(struct AspellStringPairEnumeration * ths, const struct AspellStringPairEnumeration * other); @@ -726,7 +740,7 @@ * use they are not deleted. If which is NULL then all * caches will be reset. Current caches are "encode", * "decode", "dictionary", "language", and "keyboard". */ -int aspell_reset_cache(const char * which); +ASPELL_API int aspell_reset_cache(const char * which); #ifdef __cplusplus } Index: lib/filter-c.cpp =================================================================== --- lib/filter-c.cpp (revision 97) +++ lib/filter-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "error.hpp" #include "filter.hpp" @@ -15,27 +16,27 @@ struct Error; class Filter; -extern "C" void delete_aspell_filter(Filter * ths) +extern "C" ASPELL_API void delete_aspell_filter(Filter * ths) { delete ths; } -extern "C" unsigned int aspell_filter_error_number(const Filter * ths) +extern "C" ASPELL_API unsigned int aspell_filter_error_number(const Filter * ths) { return ths->err_ == 0 ? 0 : 1; } -extern "C" const char * aspell_filter_error_message(const Filter * ths) +extern "C" ASPELL_API const char * aspell_filter_error_message(const Filter * ths) { return ths->err_ ? ths->err_->mesg : ""; } -extern "C" const Error * aspell_filter_error(const Filter * ths) +extern "C" ASPELL_API const Error * aspell_filter_error(const Filter * ths) { return ths->err_; } -extern "C" Filter * to_aspell_filter(CanHaveError * obj) +extern "C" ASPELL_API Filter * to_aspell_filter(CanHaveError * obj) { return static_cast(obj); } Index: lib/string_pair_enumeration-c.cpp =================================================================== --- lib/string_pair_enumeration-c.cpp (revision 97) +++ lib/string_pair_enumeration-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "string_pair.hpp" #include "string_pair_enumeration.hpp" @@ -13,27 +14,27 @@ class StringPairEnumeration; -extern "C" int aspell_string_pair_enumeration_at_end(const StringPairEnumeration * ths) +extern "C" ASPELL_API int aspell_string_pair_enumeration_at_end(const StringPairEnumeration * ths) { return ths->at_end(); } -extern "C" StringPair aspell_string_pair_enumeration_next(StringPairEnumeration * ths) +extern "C" ASPELL_API StringPair aspell_string_pair_enumeration_next(StringPairEnumeration * ths) { return ths->next(); } -extern "C" void delete_aspell_string_pair_enumeration(StringPairEnumeration * ths) +extern "C" ASPELL_API void delete_aspell_string_pair_enumeration(StringPairEnumeration * ths) { delete ths; } -extern "C" StringPairEnumeration * aspell_string_pair_enumeration_clone(const StringPairEnumeration * ths) +extern "C" ASPELL_API StringPairEnumeration * aspell_string_pair_enumeration_clone(const StringPairEnumeration * ths) { return ths->clone(); } -extern "C" void aspell_string_pair_enumeration_assign(StringPairEnumeration * ths, const StringPairEnumeration * other) +extern "C" ASPELL_API void aspell_string_pair_enumeration_assign(StringPairEnumeration * ths, const StringPairEnumeration * other) { ths->assign(other); } Index: lib/error-c.cpp =================================================================== --- lib/error-c.cpp (revision 97) +++ lib/error-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "error.hpp" namespace acommon { @@ -13,7 +14,7 @@ struct Error; struct ErrorInfo; -extern "C" int aspell_error_is_a(const Error * ths, const ErrorInfo * e) +extern "C" ASPELL_API int aspell_error_is_a(const Error * ths, const ErrorInfo * e) { return ths->is_a(e); } Index: lib/mutable_container-c.cpp =================================================================== --- lib/mutable_container-c.cpp (revision 97) +++ lib/mutable_container-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "mutable_container.hpp" #include "posib_err.hpp" @@ -13,22 +14,22 @@ class MutableContainer; -extern "C" int aspell_mutable_container_add(MutableContainer * ths, const char * to_add) +extern "C" ASPELL_API int aspell_mutable_container_add(MutableContainer * ths, const char * to_add) { return ths->add(to_add); } -extern "C" int aspell_mutable_container_remove(MutableContainer * ths, const char * to_rem) +extern "C" ASPELL_API int aspell_mutable_container_remove(MutableContainer * ths, const char * to_rem) { return ths->remove(to_rem); } -extern "C" void aspell_mutable_container_clear(MutableContainer * ths) +extern "C" ASPELL_API void aspell_mutable_container_clear(MutableContainer * ths) { ths->clear(); } -extern "C" MutableContainer * aspell_mutable_container_to_mutable_container(MutableContainer * ths) +extern "C" ASPELL_API MutableContainer * aspell_mutable_container_to_mutable_container(MutableContainer * ths) { return ths; } Index: lib/string_list-c.cpp =================================================================== --- lib/string_list-c.cpp (revision 97) +++ lib/string_list-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "posib_err.hpp" #include "string_list.hpp" @@ -15,57 +16,57 @@ class StringEnumeration; class StringList; -extern "C" StringList * new_aspell_string_list() +extern "C" ASPELL_API StringList * new_aspell_string_list() { return new_string_list(); } -extern "C" int aspell_string_list_empty(const StringList * ths) +extern "C" ASPELL_API int aspell_string_list_empty(const StringList * ths) { return ths->empty(); } -extern "C" unsigned int aspell_string_list_size(const StringList * ths) +extern "C" ASPELL_API unsigned int aspell_string_list_size(const StringList * ths) { return ths->size(); } -extern "C" StringEnumeration * aspell_string_list_elements(const StringList * ths) +extern "C" ASPELL_API StringEnumeration * aspell_string_list_elements(const StringList * ths) { return ths->elements(); } -extern "C" int aspell_string_list_add(StringList * ths, const char * to_add) +extern "C" ASPELL_API int aspell_string_list_add(StringList * ths, const char * to_add) { return ths->add(to_add); } -extern "C" int aspell_string_list_remove(StringList * ths, const char * to_rem) +extern "C" ASPELL_API int aspell_string_list_remove(StringList * ths, const char * to_rem) { return ths->remove(to_rem); } -extern "C" void aspell_string_list_clear(StringList * ths) +extern "C" ASPELL_API void aspell_string_list_clear(StringList * ths) { ths->clear(); } -extern "C" MutableContainer * aspell_string_list_to_mutable_container(StringList * ths) +extern "C" ASPELL_API MutableContainer * aspell_string_list_to_mutable_container(StringList * ths) { return ths; } -extern "C" void delete_aspell_string_list(StringList * ths) +extern "C" ASPELL_API void delete_aspell_string_list(StringList * ths) { delete ths; } -extern "C" StringList * aspell_string_list_clone(const StringList * ths) +extern "C" ASPELL_API StringList * aspell_string_list_clone(const StringList * ths) { return ths->clone(); } -extern "C" void aspell_string_list_assign(StringList * ths, const StringList * other) +extern "C" ASPELL_API void aspell_string_list_assign(StringList * ths, const StringList * other) { ths->assign(other); } Index: lib/string_map-c.cpp =================================================================== --- lib/string_map-c.cpp (revision 97) +++ lib/string_map-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "posib_err.hpp" #include "string_map.hpp" @@ -15,72 +16,72 @@ class StringMap; class StringPairEnumeration; -extern "C" StringMap * new_aspell_string_map() +extern "C" ASPELL_API StringMap * new_aspell_string_map() { return new_string_map(); } -extern "C" int aspell_string_map_add(StringMap * ths, const char * to_add) +extern "C" ASPELL_API int aspell_string_map_add(StringMap * ths, const char * to_add) { return ths->add(to_add); } -extern "C" int aspell_string_map_remove(StringMap * ths, const char * to_rem) +extern "C" ASPELL_API int aspell_string_map_remove(StringMap * ths, const char * to_rem) { return ths->remove(to_rem); } -extern "C" void aspell_string_map_clear(StringMap * ths) +extern "C" ASPELL_API void aspell_string_map_clear(StringMap * ths) { ths->clear(); } -extern "C" MutableContainer * aspell_string_map_to_mutable_container(StringMap * ths) +extern "C" ASPELL_API MutableContainer * aspell_string_map_to_mutable_container(StringMap * ths) { return ths; } -extern "C" void delete_aspell_string_map(StringMap * ths) +extern "C" ASPELL_API void delete_aspell_string_map(StringMap * ths) { delete ths; } -extern "C" StringMap * aspell_string_map_clone(const StringMap * ths) +extern "C" ASPELL_API StringMap * aspell_string_map_clone(const StringMap * ths) { return ths->clone(); } -extern "C" void aspell_string_map_assign(StringMap * ths, const StringMap * other) +extern "C" ASPELL_API void aspell_string_map_assign(StringMap * ths, const StringMap * other) { ths->assign(other); } -extern "C" int aspell_string_map_empty(const StringMap * ths) +extern "C" ASPELL_API int aspell_string_map_empty(const StringMap * ths) { return ths->empty(); } -extern "C" unsigned int aspell_string_map_size(const StringMap * ths) +extern "C" ASPELL_API unsigned int aspell_string_map_size(const StringMap * ths) { return ths->size(); } -extern "C" StringPairEnumeration * aspell_string_map_elements(const StringMap * ths) +extern "C" ASPELL_API StringPairEnumeration * aspell_string_map_elements(const StringMap * ths) { return ths->elements(); } -extern "C" int aspell_string_map_insert(StringMap * ths, const char * key, const char * value) +extern "C" ASPELL_API int aspell_string_map_insert(StringMap * ths, const char * key, const char * value) { return ths->insert(key, value); } -extern "C" int aspell_string_map_replace(StringMap * ths, const char * key, const char * value) +extern "C" ASPELL_API int aspell_string_map_replace(StringMap * ths, const char * key, const char * value) { return ths->replace(key, value); } -extern "C" const char * aspell_string_map_lookup(const StringMap * ths, const char * key) +extern "C" ASPELL_API const char * aspell_string_map_lookup(const StringMap * ths, const char * key) { return ths->lookup(key); } Index: lib/config-c.cpp =================================================================== --- lib/config-c.cpp (revision 97) +++ lib/config-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "config.hpp" #include "error.hpp" #include "posib_err.hpp" @@ -20,72 +21,72 @@ class MutableContainer; class StringPairEnumeration; -extern "C" int aspell_key_info_enumeration_at_end(const KeyInfoEnumeration * ths) +extern "C" ASPELL_API int aspell_key_info_enumeration_at_end(const KeyInfoEnumeration * ths) { return ths->at_end(); } -extern "C" const KeyInfo * aspell_key_info_enumeration_next(KeyInfoEnumeration * ths) +extern "C" ASPELL_API const KeyInfo * aspell_key_info_enumeration_next(KeyInfoEnumeration * ths) { return ths->next(); } -extern "C" void delete_aspell_key_info_enumeration(KeyInfoEnumeration * ths) +extern "C" ASPELL_API void delete_aspell_key_info_enumeration(KeyInfoEnumeration * ths) { delete ths; } -extern "C" KeyInfoEnumeration * aspell_key_info_enumeration_clone(const KeyInfoEnumeration * ths) +extern "C" ASPELL_API KeyInfoEnumeration * aspell_key_info_enumeration_clone(const KeyInfoEnumeration * ths) { return ths->clone(); } -extern "C" void aspell_key_info_enumeration_assign(KeyInfoEnumeration * ths, const KeyInfoEnumeration * other) +extern "C" ASPELL_API void aspell_key_info_enumeration_assign(KeyInfoEnumeration * ths, const KeyInfoEnumeration * other) { ths->assign(other); } -extern "C" Config * new_aspell_config() +extern "C" ASPELL_API Config * new_aspell_config() { return new_config(); } -extern "C" void delete_aspell_config(Config * ths) +extern "C" ASPELL_API void delete_aspell_config(Config * ths) { delete ths; } -extern "C" Config * aspell_config_clone(const Config * ths) +extern "C" ASPELL_API Config * aspell_config_clone(const Config * ths) { return ths->clone(); } -extern "C" void aspell_config_assign(Config * ths, const Config * other) +extern "C" ASPELL_API void aspell_config_assign(Config * ths, const Config * other) { ths->assign(other); } -extern "C" unsigned int aspell_config_error_number(const Config * ths) +extern "C" ASPELL_API unsigned int aspell_config_error_number(const Config * ths) { return ths->err_ == 0 ? 0 : 1; } -extern "C" const char * aspell_config_error_message(const Config * ths) +extern "C" ASPELL_API const char * aspell_config_error_message(const Config * ths) { return ths->err_ ? ths->err_->mesg : ""; } -extern "C" const Error * aspell_config_error(const Config * ths) +extern "C" ASPELL_API const Error * aspell_config_error(const Config * ths) { return ths->err_; } -extern "C" void aspell_config_set_extra(Config * ths, const KeyInfo * begin, const KeyInfo * end) +extern "C" ASPELL_API void aspell_config_set_extra(Config * ths, const KeyInfo * begin, const KeyInfo * end) { ths->set_extra(begin, end); } -extern "C" const KeyInfo * aspell_config_keyinfo(Config * ths, const char * key) +extern "C" ASPELL_API const KeyInfo * aspell_config_keyinfo(Config * ths, const char * key) { PosibErr ret = ths->keyinfo(key); ths->err_.reset(ret.release_err()); @@ -93,12 +94,12 @@ return ret.data; } -extern "C" KeyInfoEnumeration * aspell_config_possible_elements(Config * ths, int include_extra) +extern "C" ASPELL_API KeyInfoEnumeration * aspell_config_possible_elements(Config * ths, int include_extra) { return ths->possible_elements(include_extra); } -extern "C" const char * aspell_config_get_default(Config * ths, const char * key) +extern "C" ASPELL_API const char * aspell_config_get_default(Config * ths, const char * key) { PosibErr ret = ths->get_default(key); ths->err_.reset(ret.release_err()); @@ -107,12 +108,12 @@ return ths->temp_str.c_str(); } -extern "C" StringPairEnumeration * aspell_config_elements(Config * ths) +extern "C" ASPELL_API StringPairEnumeration * aspell_config_elements(Config * ths) { return ths->elements(); } -extern "C" int aspell_config_replace(Config * ths, const char * key, const char * value) +extern "C" ASPELL_API int aspell_config_replace(Config * ths, const char * key, const char * value) { PosibErr ret = ths->replace(key, value); ths->err_.reset(ret.release_err()); @@ -120,7 +121,7 @@ return 1; } -extern "C" int aspell_config_remove(Config * ths, const char * key) +extern "C" ASPELL_API int aspell_config_remove(Config * ths, const char * key) { PosibErr ret = ths->remove(key); ths->err_.reset(ret.release_err()); @@ -128,12 +129,12 @@ return 1; } -extern "C" int aspell_config_have(const Config * ths, const char * key) +extern "C" ASPELL_API int aspell_config_have(const Config * ths, const char * key) { return ths->have(key); } -extern "C" const char * aspell_config_retrieve(Config * ths, const char * key) +extern "C" ASPELL_API const char * aspell_config_retrieve(Config * ths, const char * key) { PosibErr ret = ths->retrieve(key); ths->err_.reset(ret.release_err()); @@ -142,7 +143,7 @@ return ths->temp_str.c_str(); } -extern "C" int aspell_config_retrieve_list(Config * ths, const char * key, MutableContainer * lst) +extern "C" ASPELL_API int aspell_config_retrieve_list(Config * ths, const char * key, MutableContainer * lst) { PosibErr ret = ths->retrieve_list(key, lst); ths->err_.reset(ret.release_err()); @@ -150,7 +151,7 @@ return 1; } -extern "C" int aspell_config_retrieve_bool(Config * ths, const char * key) +extern "C" ASPELL_API int aspell_config_retrieve_bool(Config * ths, const char * key) { PosibErr ret = ths->retrieve_bool(key); ths->err_.reset(ret.release_err()); @@ -158,7 +159,7 @@ return ret.data; } -extern "C" int aspell_config_retrieve_int(Config * ths, const char * key) +extern "C" ASPELL_API int aspell_config_retrieve_int(Config * ths, const char * key) { PosibErr ret = ths->retrieve_int(key); ths->err_.reset(ret.release_err()); Index: lib/speller-c.cpp =================================================================== --- lib/speller-c.cpp (revision 97) +++ lib/speller-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "convert.hpp" #include "error.hpp" #include "mutable_string.hpp" @@ -21,7 +22,7 @@ class Speller; class WordList; -extern "C" CanHaveError * new_aspell_speller(Config * config) +extern "C" ASPELL_API CanHaveError * new_aspell_speller(Config * config) { PosibErr ret = new_speller(config); if (ret.has_err()) { @@ -31,37 +32,37 @@ } } -extern "C" Speller * to_aspell_speller(CanHaveError * obj) +extern "C" ASPELL_API Speller * to_aspell_speller(CanHaveError * obj) { return static_cast(obj); } -extern "C" void delete_aspell_speller(Speller * ths) +extern "C" ASPELL_API void delete_aspell_speller(Speller * ths) { delete ths; } -extern "C" unsigned int aspell_speller_error_number(const Speller * ths) +extern "C" ASPELL_API unsigned int aspell_speller_error_number(const Speller * ths) { return ths->err_ == 0 ? 0 : 1; } -extern "C" const char * aspell_speller_error_message(const Speller * ths) +extern "C" ASPELL_API const char * aspell_speller_error_message(const Speller * ths) { return ths->err_ ? ths->err_->mesg : ""; } -extern "C" const Error * aspell_speller_error(const Speller * ths) +extern "C" ASPELL_API const Error * aspell_speller_error(const Speller * ths) { return ths->err_; } -extern "C" Config * aspell_speller_config(Speller * ths) +extern "C" ASPELL_API Config * aspell_speller_config(Speller * ths) { return ths->config(); } -extern "C" int aspell_speller_check(Speller * ths, const char * word, int word_size) +extern "C" ASPELL_API int aspell_speller_check(Speller * ths, const char * word, int word_size) { ths->temp_str_0.clear(); ths->to_internal_->convert(word, word_size, ths->temp_str_0); @@ -72,7 +73,7 @@ return ret.data; } -extern "C" int aspell_speller_add_to_personal(Speller * ths, const char * word, int word_size) +extern "C" ASPELL_API int aspell_speller_add_to_personal(Speller * ths, const char * word, int word_size) { ths->temp_str_0.clear(); ths->to_internal_->convert(word, word_size, ths->temp_str_0); @@ -83,7 +84,7 @@ return 1; } -extern "C" int aspell_speller_add_to_session(Speller * ths, const char * word, int word_size) +extern "C" ASPELL_API int aspell_speller_add_to_session(Speller * ths, const char * word, int word_size) { ths->temp_str_0.clear(); ths->to_internal_->convert(word, word_size, ths->temp_str_0); @@ -94,7 +95,7 @@ return 1; } -extern "C" const WordList * aspell_speller_personal_word_list(Speller * ths) +extern "C" ASPELL_API const WordList * aspell_speller_personal_word_list(Speller * ths) { PosibErr ret = ths->personal_word_list(); ths->err_.reset(ret.release_err()); @@ -104,7 +105,7 @@ return ret.data; } -extern "C" const WordList * aspell_speller_session_word_list(Speller * ths) +extern "C" ASPELL_API const WordList * aspell_speller_session_word_list(Speller * ths) { PosibErr ret = ths->session_word_list(); ths->err_.reset(ret.release_err()); @@ -114,7 +115,7 @@ return ret.data; } -extern "C" const WordList * aspell_speller_main_word_list(Speller * ths) +extern "C" ASPELL_API const WordList * aspell_speller_main_word_list(Speller * ths) { PosibErr ret = ths->main_word_list(); ths->err_.reset(ret.release_err()); @@ -124,7 +125,7 @@ return ret.data; } -extern "C" int aspell_speller_save_all_word_lists(Speller * ths) +extern "C" ASPELL_API int aspell_speller_save_all_word_lists(Speller * ths) { PosibErr ret = ths->save_all_word_lists(); ths->err_.reset(ret.release_err()); @@ -132,7 +133,7 @@ return 1; } -extern "C" int aspell_speller_clear_session(Speller * ths) +extern "C" ASPELL_API int aspell_speller_clear_session(Speller * ths) { PosibErr ret = ths->clear_session(); ths->err_.reset(ret.release_err()); @@ -140,7 +141,7 @@ return 1; } -extern "C" const WordList * aspell_speller_suggest(Speller * ths, const char * word, int word_size) +extern "C" ASPELL_API const WordList * aspell_speller_suggest(Speller * ths, const char * word, int word_size) { ths->temp_str_0.clear(); ths->to_internal_->convert(word, word_size, ths->temp_str_0); @@ -153,7 +154,7 @@ return ret.data; } -extern "C" int aspell_speller_store_replacement(Speller * ths, const char * mis, int mis_size, const char * cor, int cor_size) +extern "C" ASPELL_API int aspell_speller_store_replacement(Speller * ths, const char * mis, int mis_size, const char * cor, int cor_size) { ths->temp_str_0.clear(); ths->to_internal_->convert(mis, mis_size, ths->temp_str_0); Index: lib/word_list-c.cpp =================================================================== --- lib/word_list-c.cpp (revision 97) +++ lib/word_list-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "string_enumeration.hpp" #include "word_list.hpp" @@ -14,17 +15,17 @@ class StringEnumeration; class WordList; -extern "C" int aspell_word_list_empty(const WordList * ths) +extern "C" ASPELL_API int aspell_word_list_empty(const WordList * ths) { return ths->empty(); } -extern "C" unsigned int aspell_word_list_size(const WordList * ths) +extern "C" ASPELL_API unsigned int aspell_word_list_size(const WordList * ths) { return ths->size(); } -extern "C" StringEnumeration * aspell_word_list_elements(const WordList * ths) +extern "C" ASPELL_API StringEnumeration * aspell_word_list_elements(const WordList * ths) { StringEnumeration * els = ths->elements(); els->from_internal_ = ths->from_internal_; Index: lib/string_enumeration-c.cpp =================================================================== --- lib/string_enumeration-c.cpp (revision 97) +++ lib/string_enumeration-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "convert.hpp" #include "string_enumeration.hpp" @@ -13,27 +14,27 @@ class StringEnumeration; -extern "C" void delete_aspell_string_enumeration(StringEnumeration * ths) +extern "C" ASPELL_API void delete_aspell_string_enumeration(StringEnumeration * ths) { delete ths; } -extern "C" StringEnumeration * aspell_string_enumeration_clone(const StringEnumeration * ths) +extern "C" ASPELL_API StringEnumeration * aspell_string_enumeration_clone(const StringEnumeration * ths) { return ths->clone(); } -extern "C" void aspell_string_enumeration_assign(StringEnumeration * ths, const StringEnumeration * other) +extern "C" ASPELL_API void aspell_string_enumeration_assign(StringEnumeration * ths, const StringEnumeration * other) { ths->assign(other); } -extern "C" int aspell_string_enumeration_at_end(const StringEnumeration * ths) +extern "C" ASPELL_API int aspell_string_enumeration_at_end(const StringEnumeration * ths) { return ths->at_end(); } -extern "C" const char * aspell_string_enumeration_next(StringEnumeration * ths) +extern "C" ASPELL_API const char * aspell_string_enumeration_next(StringEnumeration * ths) { const char * s = ths->next(); if (s == 0 || ths->from_internal_ == 0) { Index: lib/can_have_error-c.cpp =================================================================== --- lib/can_have_error-c.cpp (revision 97) +++ lib/can_have_error-c.cpp (working copy) @@ -6,6 +6,7 @@ * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ +#include "settings.h" #include "can_have_error.hpp" #include "error.hpp" @@ -14,22 +15,22 @@ class CanHaveError; struct Error; -extern "C" unsigned int aspell_error_number(const CanHaveError * ths) +extern "C" ASPELL_API unsigned int aspell_error_number(const CanHaveError * ths) { return ths->err_ == 0 ? 0 : 1; } -extern "C" const char * aspell_error_message(const CanHaveError * ths) +extern "C" ASPELL_API const char * aspell_error_message(const CanHaveError * ths) { return ths->err_ ? ths->err_->mesg : ""; } -extern "C" const Error * aspell_error(const CanHaveError * ths) +extern "C" ASPELL_API const Error * aspell_error(const CanHaveError * ths) { return ths->err_; } -extern "C" void delete_aspell_can_have_error(CanHaveError * ths) +extern "C" ASPELL_API void delete_aspell_can_have_error(CanHaveError * ths) { delete ths; } Index: common/type_id.hpp =================================================================== --- common/type_id.hpp (revision 97) +++ common/type_id.hpp (working copy) @@ -9,6 +9,7 @@ #ifndef ASPELL_TYPE_ID__HPP #define ASPELL_TYPE_ID__HPP +#include "settings.h" #include "parm_string.hpp" namespace acommon { Index: common/key_info.hpp =================================================================== --- common/key_info.hpp (revision 97) +++ common/key_info.hpp (working copy) @@ -9,6 +9,7 @@ #ifndef ASPELL_KEY_INFO__HPP #define ASPELL_KEY_INFO__HPP +#include "settings.h" #include "key_info.hpp" namespace acommon { Index: common/word_list.hpp =================================================================== --- common/word_list.hpp (revision 97) +++ common/word_list.hpp (working copy) @@ -9,6 +9,7 @@ #ifndef ASPELL_WORD_LIST__HPP #define ASPELL_WORD_LIST__HPP +#include "settings.h" namespace acommon { Index: common/string_pair_enumeration.hpp =================================================================== --- common/string_pair_enumeration.hpp (revision 97) +++ common/string_pair_enumeration.hpp (working copy) @@ -9,6 +9,7 @@ #ifndef ASPELL_STRING_PAIR_ENUMERATION__HPP #define ASPELL_STRING_PAIR_ENUMERATION__HPP +#include "settings.h" #include "string_pair.hpp" namespace acommon { Index: common/errors.cpp =================================================================== --- common/errors.cpp (revision 97) +++ common/errors.cpp (working copy) @@ -20,7 +20,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_other = &aerror_other_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_other = &aerror_other_obj; static const ErrorInfo aerror_operation_not_supported_obj = { 0, // isa @@ -28,7 +28,7 @@ 1, // num_parms {"what"} // parms }; -extern "C" const ErrorInfo * const aerror_operation_not_supported = &aerror_operation_not_supported_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_operation_not_supported = &aerror_operation_not_supported_obj; static const ErrorInfo aerror_cant_copy_obj = { aerror_operation_not_supported, // isa @@ -36,7 +36,7 @@ 1, // num_parms {"what"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_copy = &aerror_cant_copy_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_copy = &aerror_cant_copy_obj; static const ErrorInfo aerror_unimplemented_method_obj = { aerror_operation_not_supported, // isa @@ -44,7 +44,7 @@ 2, // num_parms {"what", "where"} // parms }; -extern "C" const ErrorInfo * const aerror_unimplemented_method = &aerror_unimplemented_method_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unimplemented_method = &aerror_unimplemented_method_obj; static const ErrorInfo aerror_file_obj = { 0, // isa @@ -52,7 +52,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_file = &aerror_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_file = &aerror_file_obj; static const ErrorInfo aerror_cant_open_file_obj = { aerror_file, // isa @@ -60,7 +60,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_open_file = &aerror_cant_open_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_open_file = &aerror_cant_open_file_obj; static const ErrorInfo aerror_cant_read_file_obj = { aerror_cant_open_file, // isa @@ -68,7 +68,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_read_file = &aerror_cant_read_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_read_file = &aerror_cant_read_file_obj; static const ErrorInfo aerror_cant_write_file_obj = { aerror_cant_open_file, // isa @@ -76,7 +76,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_write_file = &aerror_cant_write_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_write_file = &aerror_cant_write_file_obj; static const ErrorInfo aerror_invalid_name_obj = { aerror_file, // isa @@ -84,7 +84,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_name = &aerror_invalid_name_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_name = &aerror_invalid_name_obj; static const ErrorInfo aerror_bad_file_format_obj = { aerror_file, // isa @@ -92,7 +92,7 @@ 1, // num_parms {"file"} // parms }; -extern "C" const ErrorInfo * const aerror_bad_file_format = &aerror_bad_file_format_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_file_format = &aerror_bad_file_format_obj; static const ErrorInfo aerror_dir_obj = { 0, // isa @@ -100,7 +100,7 @@ 1, // num_parms {"dir"} // parms }; -extern "C" const ErrorInfo * const aerror_dir = &aerror_dir_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_dir = &aerror_dir_obj; static const ErrorInfo aerror_cant_read_dir_obj = { aerror_dir, // isa @@ -108,7 +108,7 @@ 1, // num_parms {"dir"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_read_dir = &aerror_cant_read_dir_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_read_dir = &aerror_cant_read_dir_obj; static const ErrorInfo aerror_config_obj = { 0, // isa @@ -116,7 +116,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_config = &aerror_config_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_config = &aerror_config_obj; static const ErrorInfo aerror_unknown_key_obj = { aerror_config, // isa @@ -124,7 +124,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_key = &aerror_unknown_key_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_key = &aerror_unknown_key_obj; static const ErrorInfo aerror_cant_change_value_obj = { aerror_config, // isa @@ -132,7 +132,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_change_value = &aerror_cant_change_value_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_change_value = &aerror_cant_change_value_obj; static const ErrorInfo aerror_bad_key_obj = { aerror_config, // isa @@ -140,7 +140,7 @@ 2, // num_parms {"key", "accepted"} // parms }; -extern "C" const ErrorInfo * const aerror_bad_key = &aerror_bad_key_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_key = &aerror_bad_key_obj; static const ErrorInfo aerror_bad_value_obj = { aerror_config, // isa @@ -148,7 +148,7 @@ 3, // num_parms {"key", "value", "accepted"} // parms }; -extern "C" const ErrorInfo * const aerror_bad_value = &aerror_bad_value_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_value = &aerror_bad_value_obj; static const ErrorInfo aerror_duplicate_obj = { aerror_config, // isa @@ -156,7 +156,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_duplicate = &aerror_duplicate_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_duplicate = &aerror_duplicate_obj; static const ErrorInfo aerror_key_not_string_obj = { aerror_config, // isa @@ -164,7 +164,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_key_not_string = &aerror_key_not_string_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_key_not_string = &aerror_key_not_string_obj; static const ErrorInfo aerror_key_not_int_obj = { aerror_config, // isa @@ -172,7 +172,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_key_not_int = &aerror_key_not_int_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_key_not_int = &aerror_key_not_int_obj; static const ErrorInfo aerror_key_not_bool_obj = { aerror_config, // isa @@ -180,7 +180,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_key_not_bool = &aerror_key_not_bool_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_key_not_bool = &aerror_key_not_bool_obj; static const ErrorInfo aerror_key_not_list_obj = { aerror_config, // isa @@ -188,7 +188,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_key_not_list = &aerror_key_not_list_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_key_not_list = &aerror_key_not_list_obj; static const ErrorInfo aerror_no_value_reset_obj = { aerror_config, // isa @@ -196,7 +196,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_no_value_reset = &aerror_no_value_reset_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_value_reset = &aerror_no_value_reset_obj; static const ErrorInfo aerror_no_value_enable_obj = { aerror_config, // isa @@ -204,7 +204,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_no_value_enable = &aerror_no_value_enable_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_value_enable = &aerror_no_value_enable_obj; static const ErrorInfo aerror_no_value_disable_obj = { aerror_config, // isa @@ -212,7 +212,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_no_value_disable = &aerror_no_value_disable_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_value_disable = &aerror_no_value_disable_obj; static const ErrorInfo aerror_no_value_clear_obj = { aerror_config, // isa @@ -220,7 +220,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_no_value_clear = &aerror_no_value_clear_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_value_clear = &aerror_no_value_clear_obj; static const ErrorInfo aerror_language_related_obj = { 0, // isa @@ -228,7 +228,7 @@ 1, // num_parms {"lang"} // parms }; -extern "C" const ErrorInfo * const aerror_language_related = &aerror_language_related_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_language_related = &aerror_language_related_obj; static const ErrorInfo aerror_unknown_language_obj = { aerror_language_related, // isa @@ -236,7 +236,7 @@ 1, // num_parms {"lang"} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_language = &aerror_unknown_language_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_language = &aerror_unknown_language_obj; static const ErrorInfo aerror_unknown_soundslike_obj = { aerror_language_related, // isa @@ -244,7 +244,7 @@ 2, // num_parms {"lang", "sl"} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_soundslike = &aerror_unknown_soundslike_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_soundslike = &aerror_unknown_soundslike_obj; static const ErrorInfo aerror_language_not_supported_obj = { aerror_language_related, // isa @@ -252,7 +252,7 @@ 1, // num_parms {"lang"} // parms }; -extern "C" const ErrorInfo * const aerror_language_not_supported = &aerror_language_not_supported_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_language_not_supported = &aerror_language_not_supported_obj; static const ErrorInfo aerror_no_wordlist_for_lang_obj = { aerror_language_related, // isa @@ -260,7 +260,7 @@ 1, // num_parms {"lang"} // parms }; -extern "C" const ErrorInfo * const aerror_no_wordlist_for_lang = &aerror_no_wordlist_for_lang_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_wordlist_for_lang = &aerror_no_wordlist_for_lang_obj; static const ErrorInfo aerror_mismatched_language_obj = { aerror_language_related, // isa @@ -268,7 +268,7 @@ 2, // num_parms {"lang", "prev"} // parms }; -extern "C" const ErrorInfo * const aerror_mismatched_language = &aerror_mismatched_language_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_mismatched_language = &aerror_mismatched_language_obj; static const ErrorInfo aerror_affix_obj = { 0, // isa @@ -276,7 +276,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_affix = &aerror_affix_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_affix = &aerror_affix_obj; static const ErrorInfo aerror_corrupt_affix_obj = { aerror_affix, // isa @@ -284,7 +284,7 @@ 1, // num_parms {"aff"} // parms }; -extern "C" const ErrorInfo * const aerror_corrupt_affix = &aerror_corrupt_affix_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_corrupt_affix = &aerror_corrupt_affix_obj; static const ErrorInfo aerror_invalid_cond_obj = { aerror_affix, // isa @@ -292,7 +292,7 @@ 1, // num_parms {"cond"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_cond = &aerror_invalid_cond_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_cond = &aerror_invalid_cond_obj; static const ErrorInfo aerror_invalid_cond_strip_obj = { aerror_affix, // isa @@ -300,7 +300,7 @@ 2, // num_parms {"cond", "strip"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_cond_strip = &aerror_invalid_cond_strip_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_cond_strip = &aerror_invalid_cond_strip_obj; static const ErrorInfo aerror_incorrect_encoding_obj = { aerror_affix, // isa @@ -308,7 +308,7 @@ 3, // num_parms {"file", "exp", "got"} // parms }; -extern "C" const ErrorInfo * const aerror_incorrect_encoding = &aerror_incorrect_encoding_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_incorrect_encoding = &aerror_incorrect_encoding_obj; static const ErrorInfo aerror_encoding_obj = { 0, // isa @@ -316,7 +316,7 @@ 1, // num_parms {"encod"} // parms }; -extern "C" const ErrorInfo * const aerror_encoding = &aerror_encoding_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_encoding = &aerror_encoding_obj; static const ErrorInfo aerror_unknown_encoding_obj = { aerror_encoding, // isa @@ -324,7 +324,7 @@ 1, // num_parms {"encod"} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_encoding = &aerror_unknown_encoding_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_encoding = &aerror_unknown_encoding_obj; static const ErrorInfo aerror_encoding_not_supported_obj = { aerror_encoding, // isa @@ -332,7 +332,7 @@ 1, // num_parms {"encod"} // parms }; -extern "C" const ErrorInfo * const aerror_encoding_not_supported = &aerror_encoding_not_supported_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_encoding_not_supported = &aerror_encoding_not_supported_obj; static const ErrorInfo aerror_conversion_not_supported_obj = { aerror_encoding, // isa @@ -340,7 +340,7 @@ 2, // num_parms {"encod", "encod2"} // parms }; -extern "C" const ErrorInfo * const aerror_conversion_not_supported = &aerror_conversion_not_supported_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_conversion_not_supported = &aerror_conversion_not_supported_obj; static const ErrorInfo aerror_pipe_obj = { 0, // isa @@ -348,7 +348,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_pipe = &aerror_pipe_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_pipe = &aerror_pipe_obj; static const ErrorInfo aerror_cant_create_pipe_obj = { aerror_pipe, // isa @@ -356,7 +356,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_cant_create_pipe = &aerror_cant_create_pipe_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_create_pipe = &aerror_cant_create_pipe_obj; static const ErrorInfo aerror_process_died_obj = { aerror_pipe, // isa @@ -364,7 +364,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_process_died = &aerror_process_died_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_process_died = &aerror_process_died_obj; static const ErrorInfo aerror_bad_input_obj = { 0, // isa @@ -372,7 +372,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_bad_input = &aerror_bad_input_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_input = &aerror_bad_input_obj; static const ErrorInfo aerror_invalid_string_obj = { aerror_bad_input, // isa @@ -380,7 +380,7 @@ 1, // num_parms {"str"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_string = &aerror_invalid_string_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_string = &aerror_invalid_string_obj; static const ErrorInfo aerror_invalid_word_obj = { aerror_bad_input, // isa @@ -388,7 +388,7 @@ 1, // num_parms {"word"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_word = &aerror_invalid_word_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_word = &aerror_invalid_word_obj; static const ErrorInfo aerror_invalid_affix_obj = { aerror_bad_input, // isa @@ -396,7 +396,7 @@ 2, // num_parms {"aff", "word"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_affix = &aerror_invalid_affix_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_affix = &aerror_invalid_affix_obj; static const ErrorInfo aerror_inapplicable_affix_obj = { aerror_bad_input, // isa @@ -404,7 +404,7 @@ 2, // num_parms {"aff", "word"} // parms }; -extern "C" const ErrorInfo * const aerror_inapplicable_affix = &aerror_inapplicable_affix_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_inapplicable_affix = &aerror_inapplicable_affix_obj; static const ErrorInfo aerror_unknown_unichar_obj = { aerror_bad_input, // isa @@ -412,7 +412,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_unichar = &aerror_unknown_unichar_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_unichar = &aerror_unknown_unichar_obj; static const ErrorInfo aerror_word_list_flags_obj = { aerror_bad_input, // isa @@ -420,7 +420,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_word_list_flags = &aerror_word_list_flags_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_word_list_flags = &aerror_word_list_flags_obj; static const ErrorInfo aerror_invalid_flag_obj = { aerror_word_list_flags, // isa @@ -428,7 +428,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_flag = &aerror_invalid_flag_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_flag = &aerror_invalid_flag_obj; static const ErrorInfo aerror_conflicting_flags_obj = { aerror_word_list_flags, // isa @@ -436,7 +436,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_conflicting_flags = &aerror_conflicting_flags_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_conflicting_flags = &aerror_conflicting_flags_obj; static const ErrorInfo aerror_version_control_obj = { 0, // isa @@ -444,7 +444,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_version_control = &aerror_version_control_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_version_control = &aerror_version_control_obj; static const ErrorInfo aerror_bad_version_string_obj = { aerror_version_control, // isa @@ -452,7 +452,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_bad_version_string = &aerror_bad_version_string_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_version_string = &aerror_bad_version_string_obj; static const ErrorInfo aerror_filter_obj = { 0, // isa @@ -460,7 +460,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_filter = &aerror_filter_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_filter = &aerror_filter_obj; static const ErrorInfo aerror_cant_dlopen_file_obj = { aerror_filter, // isa @@ -468,7 +468,7 @@ 1, // num_parms {"return"} // parms }; -extern "C" const ErrorInfo * const aerror_cant_dlopen_file = &aerror_cant_dlopen_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_dlopen_file = &aerror_cant_dlopen_file_obj; static const ErrorInfo aerror_empty_filter_obj = { aerror_filter, // isa @@ -476,7 +476,7 @@ 1, // num_parms {"filter"} // parms }; -extern "C" const ErrorInfo * const aerror_empty_filter = &aerror_empty_filter_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_empty_filter = &aerror_empty_filter_obj; static const ErrorInfo aerror_no_such_filter_obj = { aerror_filter, // isa @@ -484,7 +484,7 @@ 1, // num_parms {"filter"} // parms }; -extern "C" const ErrorInfo * const aerror_no_such_filter = &aerror_no_such_filter_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_such_filter = &aerror_no_such_filter_obj; static const ErrorInfo aerror_confusing_version_obj = { aerror_filter, // isa @@ -492,7 +492,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_confusing_version = &aerror_confusing_version_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_confusing_version = &aerror_confusing_version_obj; static const ErrorInfo aerror_bad_version_obj = { aerror_filter, // isa @@ -500,7 +500,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_bad_version = &aerror_bad_version_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_version = &aerror_bad_version_obj; static const ErrorInfo aerror_identical_option_obj = { aerror_filter, // isa @@ -508,7 +508,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_identical_option = &aerror_identical_option_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_identical_option = &aerror_identical_option_obj; static const ErrorInfo aerror_options_only_obj = { aerror_filter, // isa @@ -516,7 +516,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_options_only = &aerror_options_only_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_options_only = &aerror_options_only_obj; static const ErrorInfo aerror_invalid_option_modifier_obj = { aerror_filter, // isa @@ -524,7 +524,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_option_modifier = &aerror_invalid_option_modifier_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_option_modifier = &aerror_invalid_option_modifier_obj; static const ErrorInfo aerror_cant_describe_filter_obj = { aerror_filter, // isa @@ -532,7 +532,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_cant_describe_filter = &aerror_cant_describe_filter_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_cant_describe_filter = &aerror_cant_describe_filter_obj; static const ErrorInfo aerror_filter_mode_file_obj = { 0, // isa @@ -540,7 +540,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_filter_mode_file = &aerror_filter_mode_file_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_filter_mode_file = &aerror_filter_mode_file_obj; static const ErrorInfo aerror_mode_option_name_obj = { aerror_filter_mode_file, // isa @@ -548,7 +548,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_mode_option_name = &aerror_mode_option_name_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_mode_option_name = &aerror_mode_option_name_obj; static const ErrorInfo aerror_no_filter_to_option_obj = { aerror_filter_mode_file, // isa @@ -556,7 +556,7 @@ 1, // num_parms {"option"} // parms }; -extern "C" const ErrorInfo * const aerror_no_filter_to_option = &aerror_no_filter_to_option_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_no_filter_to_option = &aerror_no_filter_to_option_obj; static const ErrorInfo aerror_bad_mode_key_obj = { aerror_filter_mode_file, // isa @@ -564,7 +564,7 @@ 1, // num_parms {"key"} // parms }; -extern "C" const ErrorInfo * const aerror_bad_mode_key = &aerror_bad_mode_key_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_mode_key = &aerror_bad_mode_key_obj; static const ErrorInfo aerror_expect_mode_key_obj = { aerror_filter_mode_file, // isa @@ -572,7 +572,7 @@ 1, // num_parms {"modekey"} // parms }; -extern "C" const ErrorInfo * const aerror_expect_mode_key = &aerror_expect_mode_key_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_expect_mode_key = &aerror_expect_mode_key_obj; static const ErrorInfo aerror_mode_version_requirement_obj = { aerror_filter_mode_file, // isa @@ -580,7 +580,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_mode_version_requirement = &aerror_mode_version_requirement_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_mode_version_requirement = &aerror_mode_version_requirement_obj; static const ErrorInfo aerror_confusing_mode_version_obj = { aerror_filter_mode_file, // isa @@ -588,7 +588,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_confusing_mode_version = &aerror_confusing_mode_version_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_confusing_mode_version = &aerror_confusing_mode_version_obj; static const ErrorInfo aerror_bad_mode_version_obj = { aerror_filter_mode_file, // isa @@ -596,7 +596,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_bad_mode_version = &aerror_bad_mode_version_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_mode_version = &aerror_bad_mode_version_obj; static const ErrorInfo aerror_missing_magic_expression_obj = { aerror_filter_mode_file, // isa @@ -604,7 +604,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_missing_magic_expression = &aerror_missing_magic_expression_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_missing_magic_expression = &aerror_missing_magic_expression_obj; static const ErrorInfo aerror_empty_file_ext_obj = { aerror_filter_mode_file, // isa @@ -612,7 +612,7 @@ 1, // num_parms {"char"} // parms }; -extern "C" const ErrorInfo * const aerror_empty_file_ext = &aerror_empty_file_ext_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_empty_file_ext = &aerror_empty_file_ext_obj; static const ErrorInfo aerror_filter_mode_expand_obj = { 0, // isa @@ -620,7 +620,7 @@ 1, // num_parms {"mode"} // parms }; -extern "C" const ErrorInfo * const aerror_filter_mode_expand = &aerror_filter_mode_expand_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_filter_mode_expand = &aerror_filter_mode_expand_obj; static const ErrorInfo aerror_unknown_mode_obj = { aerror_filter_mode_expand, // isa @@ -628,7 +628,7 @@ 1, // num_parms {"mode"} // parms }; -extern "C" const ErrorInfo * const aerror_unknown_mode = &aerror_unknown_mode_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_unknown_mode = &aerror_unknown_mode_obj; static const ErrorInfo aerror_mode_extend_expand_obj = { aerror_filter_mode_expand, // isa @@ -636,7 +636,7 @@ 1, // num_parms {"mode"} // parms }; -extern "C" const ErrorInfo * const aerror_mode_extend_expand = &aerror_mode_extend_expand_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_mode_extend_expand = &aerror_mode_extend_expand_obj; static const ErrorInfo aerror_filter_mode_magic_obj = { 0, // isa @@ -644,7 +644,7 @@ 2, // num_parms {"mode", "magic"} // parms }; -extern "C" const ErrorInfo * const aerror_filter_mode_magic = &aerror_filter_mode_magic_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_filter_mode_magic = &aerror_filter_mode_magic_obj; static const ErrorInfo aerror_file_magic_pos_obj = { aerror_filter_mode_magic, // isa @@ -652,7 +652,7 @@ 2, // num_parms {"mode", "magic"} // parms }; -extern "C" const ErrorInfo * const aerror_file_magic_pos = &aerror_file_magic_pos_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_file_magic_pos = &aerror_file_magic_pos_obj; static const ErrorInfo aerror_file_magic_range_obj = { aerror_filter_mode_magic, // isa @@ -660,7 +660,7 @@ 2, // num_parms {"mode", "magic"} // parms }; -extern "C" const ErrorInfo * const aerror_file_magic_range = &aerror_file_magic_range_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_file_magic_range = &aerror_file_magic_range_obj; static const ErrorInfo aerror_missing_magic_obj = { aerror_filter_mode_magic, // isa @@ -668,7 +668,7 @@ 2, // num_parms {"mode", "magic"} // parms }; -extern "C" const ErrorInfo * const aerror_missing_magic = &aerror_missing_magic_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_missing_magic = &aerror_missing_magic_obj; static const ErrorInfo aerror_bad_magic_obj = { aerror_filter_mode_magic, // isa @@ -676,7 +676,7 @@ 3, // num_parms {"mode", "magic", "regerr"} // parms }; -extern "C" const ErrorInfo * const aerror_bad_magic = &aerror_bad_magic_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_bad_magic = &aerror_bad_magic_obj; static const ErrorInfo aerror_expression_obj = { 0, // isa @@ -684,7 +684,7 @@ 0, // num_parms {""} // parms }; -extern "C" const ErrorInfo * const aerror_expression = &aerror_expression_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_expression = &aerror_expression_obj; static const ErrorInfo aerror_invalid_expression_obj = { aerror_expression, // isa @@ -692,7 +692,7 @@ 1, // num_parms {"expression"} // parms }; -extern "C" const ErrorInfo * const aerror_invalid_expression = &aerror_invalid_expression_obj; +extern "C" ASPELL_API const ErrorInfo * const aerror_invalid_expression = &aerror_invalid_expression_obj;