Branch: Tag:

2004-11-12

2004-11-12 13:45:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated use of Pike_error().

Rev: src/builtin.cmod:1.173
Rev: src/cpp.c:1.151
Rev: src/dynamic_load.c:1.86
Rev: src/encode.c:1.224
Rev: src/interpret.c:1.359
Rev: src/modules/Gmp/mpf.cmod:1.30
Rev: src/modules/Postgres/postgres.c:1.40
Rev: src/modules/_Image_FreeType/freetype.c:1.25
Rev: src/modules/files/efuns.c:1.153
Rev: src/modules/files/file.c:1.332
Rev: src/object.c:1.259
Rev: src/operators.c:1.199
Rev: src/post_modules/SDL/SDL.cmod:1.27
Rev: src/post_modules/SQLite/sqlite.cmod:1.14
Rev: src/post_modules/_ADT/circular_list.cmod:1.15
Rev: src/post_modules/_ADT/sequence.cmod:1.14
Rev: src/signal_handler.c:1.311

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dynamic_load.c,v 1.85 2004/10/16 07:27:30 agehall Exp $ + || $Id: dynamic_load.c,v 1.86 2004/11/12 13:02:18 grubba Exp $   */      #ifdef TESTING
510:    init = CAST_TO_FUN(dlsym(module, "_pike_module_init"));    if (!init) {    dlclose(module); -  if (!module_name->size_shift && module_name->len < 1024) { -  Pike_error("pike_module_init missing in dynamic module \"%s\".\n", -  module_name->str); -  } else { -  Pike_error("pike_module_init missing in dynamic module.\n"); +  Pike_error("pike_module_init missing in dynamic module \"%S\".\n", +  module_name);    }    } -  } +        exit = CAST_TO_FUN(dlsym(module, "pike_module_exit"));    if (!exit) {    exit = CAST_TO_FUN(dlsym(module, "_pike_module_exit"));    if (!exit) {    dlclose(module); -  if (!module_name->size_shift && module_name->len < 1024) { -  Pike_error("pike_module_exit missing in dynamic module \"%s\".\n", -  module_name->str); -  } else { -  Pike_error("pike_module_exit missing in dynamic module.\n"); +  Pike_error("pike_module_exit missing in dynamic module \"%S\".\n", +  module_name);    }    } -  } +       #if defined(__NT__) && defined(_M_IA64)    {
611:    dlclose(module);    dynamic_module_list = new_module->next;    free(new_module); -  if (strlen(module_name->str) < 1024) { -  Pike_error("Failed to initialize dynamic module \"%s\".\n", -  module_name->str); -  } else { -  Pike_error("Failed to initialize dynamic module.\n"); +  Pike_error("Failed to initialize dynamic module \"%S\".\n", +  module_name);    }    }   } - } +       #endif /* USE_DYNAMIC_MODULES */