From: Bruno Haible Date: Thu, 11 May 2006 18:18:03 +0000 (+0000) Subject: No need to list the exported functions: we now use -Wl,--export-all-symbols. X-Git-Tag: v0.15~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26646b8affc8ae25a041dcf33fd500a26cddab8f;p=thirdparty%2Fgettext.git No need to list the exported functions: we now use -Wl,--export-all-symbols. --- diff --git a/gettext-tools/cygwin/export.h b/gettext-tools/cygwin/export.h index 4c924e71f..9f3e791a5 100644 --- a/gettext-tools/cygwin/export.h +++ b/gettext-tools/cygwin/export.h @@ -111,19 +111,9 @@ extern int x; \ void * IMP(x) = &x; - /* Ensure that the function x is exported from the library. */ -# define FUNCTION(x) \ - /* Export x without redefining x. This code was found by compiling a \ - snippet: \ - extern __declspec(dllexport) void x (void); */ \ - asm (".section .drectve\n"); \ - asm (".ascii \" -export:" #x "\"\n"); \ - asm (".data\n"); - #else /* Compiling for a static library. */ # define VARIABLE(x) -# define FUNCTION(x) #endif diff --git a/gettext-tools/cygwin/gettextlib-exports.c b/gettext-tools/cygwin/gettextlib-exports.c index 4e2176715..f16931f92 100644 --- a/gettext-tools/cygwin/gettextlib-exports.c +++ b/gettext-tools/cygwin/gettextlib-exports.c @@ -28,70 +28,3 @@ VARIABLE(program_name) VARIABLE(rpl_optarg) VARIABLE(rpl_optind) VARIABLE(simple_backup_suffix) - -#if 0 /* not needed - we use --export-all-symbols */ -FUNCTION(_obstack_begin) -FUNCTION(_obstack_newchunk) -FUNCTION(concatenated_pathname) -FUNCTION(c_strcasecmp) -FUNCTION(c_strncasecmp) -FUNCTION(cleanup_temp_dir) -FUNCTION(close_stdout) -FUNCTION(compile_csharp_class) -FUNCTION(compile_java_class) -FUNCTION(copy_file_preserving) -FUNCTION(create_pipe_bidi) -FUNCTION(create_pipe_in) -FUNCTION(create_pipe_out) -FUNCTION(create_temp_dir) -FUNCTION(dequeue_temp_file) -FUNCTION(dequeue_temp_subdir) -FUNCTION(enqueue_temp_file) -FUNCTION(enqueue_temp_subdir) -FUNCTION(error) -FUNCTION(error_at_line) -FUNCTION(execute) -FUNCTION(execute_csharp_program) -FUNCTION(execute_java_class) -FUNCTION(find_backup_file_name) -FUNCTION(find_in_path) -FUNCTION(freesa) -FUNCTION(fstrcmp) -FUNCTION(full_write) -FUNCTION(fwriteerror) -FUNCTION(gcd) -FUNCTION(gnu_basename) -FUNCTION(gnu_getline) -FUNCTION(gnu_stpncpy) -FUNCTION(hash_destroy) -FUNCTION(hash_find_entry) -FUNCTION(hash_init) -FUNCTION(hash_insert_entry) -FUNCTION(hash_iterate) -FUNCTION(hash_iterate_modify) -FUNCTION(hash_set_value) -FUNCTION(iconv_string) -FUNCTION(maybe_print_progname) -FUNCTION(mbs_width_linebreaks) -FUNCTION(multiline_error) -FUNCTION(multiline_warning) -FUNCTION(next_prime) -FUNCTION(obstack_free) -FUNCTION(proper_name) -FUNCTION(proper_name_utf8) -FUNCTION(rpl_getopt_long) -FUNCTION(set_program_name) -FUNCTION(shell_quote_argv) -FUNCTION(stpcpy) -FUNCTION(uc_width) -FUNCTION(wait_subprocess) -FUNCTION(xalloc_die) -FUNCTION(xasprintf) -FUNCTION(xcalloc) -FUNCTION(xget_version) -FUNCTION(xmalloc) -FUNCTION(xmallocsa) -FUNCTION(xrealloc) -FUNCTION(xsetenv) -FUNCTION(xstrdup) -#endif diff --git a/gettext-tools/cygwin/gettextpo-exports.c b/gettext-tools/cygwin/gettextpo-exports.c index 48ba6f274..f47146787 100644 --- a/gettext-tools/cygwin/gettextpo-exports.c +++ b/gettext-tools/cygwin/gettextpo-exports.c @@ -19,51 +19,3 @@ #include "cygwin/export.h" VARIABLE(libgettextpo_version) - -#if 0 /* not needed - we use --export-all-symbols */ -FUNCTION(po_file_check_all) -FUNCTION(po_file_create) -FUNCTION(po_file_domain_header) -FUNCTION(po_file_domains) -FUNCTION(po_file_free) -FUNCTION(po_file_read) -FUNCTION(po_file_read_v2) -FUNCTION(po_file_read_v3) -FUNCTION(po_file_write) -FUNCTION(po_file_write_v2) -FUNCTION(po_filepos_file) -FUNCTION(po_filepos_start_line) -FUNCTION(po_header_field) -FUNCTION(po_header_set_field) -FUNCTION(po_message_add_filepos) -FUNCTION(po_message_check_all) -FUNCTION(po_message_check_format) -FUNCTION(po_message_check_format_v2) -FUNCTION(po_message_comments) -FUNCTION(po_message_create) -FUNCTION(po_message_extracted_comments) -FUNCTION(po_message_filepos) -FUNCTION(po_message_insert) -FUNCTION(po_message_is_format) -FUNCTION(po_message_is_fuzzy) -FUNCTION(po_message_is_obsolete) -FUNCTION(po_message_iterator) -FUNCTION(po_message_iterator_free) -FUNCTION(po_message_msgctxt) -FUNCTION(po_message_msgid) -FUNCTION(po_message_msgid_plural) -FUNCTION(po_message_msgstr) -FUNCTION(po_message_msgstr_plural) -FUNCTION(po_message_remove_filepos) -FUNCTION(po_message_set_comments) -FUNCTION(po_message_set_extracted_comments) -FUNCTION(po_message_set_format) -FUNCTION(po_message_set_fuzzy) -FUNCTION(po_message_set_msgctxt) -FUNCTION(po_message_set_msgid) -FUNCTION(po_message_set_msgid_plural) -FUNCTION(po_message_set_msgstr) -FUNCTION(po_message_set_msgstr_plural) -FUNCTION(po_message_set_obsolete) -FUNCTION(po_next_message) -#endif diff --git a/gettext-tools/cygwin/gettextsrc-exports.c b/gettext-tools/cygwin/gettextsrc-exports.c index 07c3e7d0c..cac98e924 100644 --- a/gettext-tools/cygwin/gettextsrc-exports.c +++ b/gettext-tools/cygwin/gettextsrc-exports.c @@ -67,95 +67,3 @@ VARIABLE(po_multiline_warning) VARIABLE(po_xerror) VARIABLE(po_xerror2) VARIABLE(use_first) - -#if 0 /* not needed - we use --export-all-symbols */ -FUNCTION(catenate_msgdomain_list) -FUNCTION(check_message) -FUNCTION(check_message_list) -FUNCTION(check_msgid_msgstr_format) -FUNCTION(compare_po_locale_charsets) -FUNCTION(convert_string) -FUNCTION(default_add_message) -FUNCTION(default_comment) -FUNCTION(default_comment_dot) -FUNCTION(default_comment_filepos) -FUNCTION(default_comment_special) -FUNCTION(default_constructor) -FUNCTION(default_destructor) -FUNCTION(default_directive_domain) -FUNCTION(default_directive_message) -FUNCTION(default_parse_brief) -FUNCTION(default_parse_debrief) -FUNCTION(default_po_reader_alloc) -FUNCTION(default_set_domain) -FUNCTION(dir_list_append) -FUNCTION(dir_list_nth) -FUNCTION(dir_list_restore) -FUNCTION(dir_list_save_reset) -FUNCTION(extract_plural_expression) -FUNCTION(fuzzy_search_goal_function) -FUNCTION(get_python_format_unnamed_arg_count) -FUNCTION(get_sysdep_c_format_directives) -FUNCTION(iconv_message_list) -FUNCTION(iconv_msgdomain_list) -FUNCTION(is_ascii_message_list) -FUNCTION(is_ascii_msgdomain_list) -FUNCTION(is_ascii_string) -FUNCTION(message_alloc) -FUNCTION(message_comment_append) -FUNCTION(message_comment_dot_append) -FUNCTION(message_comment_filepos) -FUNCTION(message_copy) -FUNCTION(message_list_alloc) -FUNCTION(message_list_append) -FUNCTION(message_list_free) -FUNCTION(message_list_insert_at) -FUNCTION(message_list_list_alloc) -FUNCTION(message_list_list_append) -FUNCTION(message_list_list_append_list) -FUNCTION(message_list_list_free) -FUNCTION(message_list_list_search) -FUNCTION(message_list_prepend) -FUNCTION(message_list_remove_if_not) -FUNCTION(message_list_search) -FUNCTION(message_list_search_fuzzy) -FUNCTION(message_page_width_ignore) -FUNCTION(message_page_width_set) -FUNCTION(message_print_style_escape) -FUNCTION(message_print_style_indent) -FUNCTION(message_print_style_uniforum) -FUNCTION(message_print_syntax_properties) -FUNCTION(message_print_syntax_stringtable) -FUNCTION(msgdomain_list_alloc) -FUNCTION(msgdomain_list_english) -FUNCTION(msgdomain_list_equal) -FUNCTION(msgdomain_list_free) -FUNCTION(msgdomain_list_print) -FUNCTION(msgdomain_list_sort_by_filepos) -FUNCTION(msgdomain_list_sort_by_msgid) -FUNCTION(msgdomain_list_sublist) -FUNCTION(open_po_file) -FUNCTION(possible_format_p) -FUNCTION(po_charset_canonicalize) -FUNCTION(po_charset_character_iterator) -FUNCTION(po_gram_error_at_line) -FUNCTION(po_lex_pass_obsolete_entries) -FUNCTION(po_parse_comment_special) -FUNCTION(po_reader_alloc) -FUNCTION(po_reader_free) -FUNCTION(po_scan) -FUNCTION(po_strftime) -FUNCTION(read_names_from_file) -FUNCTION(read_po) -FUNCTION(read_po_file) -FUNCTION(string_list_alloc) -FUNCTION(string_list_append) -FUNCTION(string_list_append_unique) -FUNCTION(string_list_destroy) -FUNCTION(string_list_free) -FUNCTION(string_list_init) -FUNCTION(string_list_join) -FUNCTION(string_list_member) -FUNCTION(textmode_xerror) -FUNCTION(textmode_xerror2) -#endif