From 433bbdf08a1ad3b47b90a40e65334485f5d1c81c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 24 Jan 2006 12:29:31 +0100 Subject: [PATCH] winebuild: Get rid of the default ignored symbols list. --- tools/winebuild/import.c | 62 ---------------------------------------- 1 file changed, 62 deletions(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index d97d58d4494..43956e8af39 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -70,56 +70,6 @@ static int nb_delayed = 0; /* number of delayed dlls */ static int total_imports = 0; /* total number of imported functions */ static int total_delayed = 0; /* total number of imported functions in delayed DLLs */ -/* list of symbols that are ignored by default */ -static const char * const default_ignored_symbols[] = -{ - "abs", - "acos", - "asin", - "atan", - "atan2", - "atoi", - "atol", - "bsearch", - "ceil", - "cos", - "cosh", - "exp", - "fabs", - "floor", - "fmod", - "frexp", - "labs", - "log", - "log10", - "memchr", - "memcmp", - "memcpy", - "memmove", - "memset", - "modf", - "pow", - "qsort", - "sin", - "sinh", - "sqrt", - "strcat", - "strchr", - "strcmp", - "strcpy", - "strcspn", - "strlen", - "strncat", - "strncmp", - "strncpy", - "strpbrk", - "strrchr", - "strspn", - "strstr", - "tan", - "tanh" -}; - static inline const char *ppc_reg( int reg ) { @@ -397,23 +347,12 @@ static void remove_import_dll( int index ) free_imports( imp ); } -/* initialize the list of ignored symbols */ -static void init_ignored_symbols(void) -{ - unsigned int i; - - for (i = 0; i < sizeof(default_ignored_symbols)/sizeof(default_ignored_symbols[0]); i++) - add_name( &ignore_symbols, default_ignored_symbols[i] ); -} - /* add a symbol to the ignored symbol list */ /* if the name starts with '-' the symbol is removed instead */ void add_ignore_symbol( const char *name ) { unsigned int i; - if (!ignore_symbols.size) init_ignored_symbols(); /* first time around, fill list with defaults */ - if (name[0] == '-') /* remove it */ { if (!name[1]) empty_name_table( &ignore_symbols ); /* remove everything */ @@ -603,7 +542,6 @@ int resolve_imports( DLLSPEC *spec ) unsigned int i, j, removed; ORDDEF *odp; - if (!ignore_symbols.size) init_ignored_symbols(); sort_names( &ignore_symbols ); for (i = 0; i < nb_imports; i++)