pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1:   #ifndef TESTING   # include "global.h"   # include "interpret.h"   # include "constants.h"   # include "pike_error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"   # include "main.h"    - RCSID("$Id: dynamic_load.c,v 1.47 2000/12/01 08:09:46 hubbe Exp $"); + RCSID("$Id: dynamic_load.c,v 1.48 2000/12/05 21:08:17 per Exp $");      #endif /* !TESTING */      #ifdef HAVE_ERRNO_H   #include <errno.h>   #endif /* HAVE_ERRNO_H */   #ifdef HAVE_STRING_H   #include <string.h>   #endif /* HAVE_STRING_H */   
pike.git/src/dynamic_load.c:75: Inside #if defined(HAVE_SOME_DLOPEN)
   extern void *PikeSymbol[];    *psym = PikeSymbol;    }    }    return (void *)ret;   }      static char * dlerror(void)   {    static char buffer[200]; -  sprintf(buffer,"LoadLibrary failed with Pike_error: %d",GetLastError()); +  sprintf(buffer,"LoadLibrary failed with error: %d",GetLastError());    return buffer;   }      static void *dlsym(void *module, char * function)   {    return (void *)GetProcAddress((HMODULE)module,    function);   }      static void dlclose(void *module)