pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1:   /*   || 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.68 2003/12/10 12:26:40 grubba Exp $ + || $Id: dynamic_load.c,v 1.69 2003/12/10 12:30:43 grubba Exp $   */      #ifdef TESTING   #define NO_PIKE_INCLUDES   #define CREATE_MAIN   #define NO_PIKE_GUTS   #endif      #ifndef NO_PIKE_INCLUDES   # include "global.h"
pike.git/src/dynamic_load.c:17:   # include "constants.h"   # include "pike_error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"   # include "main.h"   # include "constants.h"   # include "language.h"   # include "lex.h"    - RCSID("$Id: dynamic_load.c,v 1.68 2003/12/10 12:26:40 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.69 2003/12/10 12:30:43 grubba Exp $");      #else /* TESTING */      #include <stdio.h>      #endif /* !TESTING */      #ifdef HAVE_ERRNO_H   #include <errno.h>   #endif /* HAVE_ERRNO_H */
pike.git/src/dynamic_load.c:264:    NSLinkEditErrors class = 0;    int error_number = 0;    char *file_name = NULL;    char *error_string = NULL;    NSLinkEditError(&class, &error_number, &file_name, &error_string);    return error_string;   }      static void *dlsym(void *module, char *function)   { -  NSSymbol *symbol = NSLookupSymbolInModule(module, function); +  NSSymbol symbol = NSLookupSymbolInModule(module, function);    return symbol?NSAddressOfSymbol(symbol):NULL;   }      static void *dlclose(void *module)   {    NSUnLinkModule(module, NSUNLINKMODULE_OPTION_NONE);    return NULL;   }      #endif /* USE_DYLD */