pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1: Inside #if undefined(TESTING)
  #ifndef TESTING   # include "global.h"   # include "interpret.h"   # include "constants.h"   # include "error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"    - RCSID("$Id: dynamic_load.c,v 1.27 1998/05/15 18:38:49 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.28 1998/05/15 19:01:05 grubba Exp $");      #endif      #if !defined(HAVE_DLOPEN)      #if defined(HAVE_DLD_LINK) && defined(HAVE_DLD_GET_FUNC)   #define USE_DLD   #define HAVE_SOME_DLOPEN   #define EMULATE_DLOPEN   #else
pike.git/src/dynamic_load.c:182: Inside #if undefined(TESTING) and #if defined(HAVE_DLOPEN) || defined(USE_DLD)
   }    exit=(modfun)dlsym(module, "pike_module_exit");    if (!exit) {    exit=(modfun)dlsym(module, "_pike_module_exit");    }       if(!init || !exit)    {    dlclose(module);    -  if (sizeof(module_name) < 1024) { +  if (strlen(module_name) < 1024) {    error("Failed to initialize dynamic module \"%s\".\n", module_name);    } else {    error("Failed to initialize dynamic module.\n");    }    }       new_module=ALLOC_STRUCT(module_list);    new_module->next=dynamic_module_list;    dynamic_module_list=new_module;    new_module->module=module;