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.77 2004/03/21 17:59:24 grubba Exp $ + || $Id: dynamic_load.c,v 1.78 2004/03/21 19:44:23 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.77 2004/03/21 17:59:24 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.78 2004/03/21 19:44:23 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:610: Inside #if defined(USE_DYNAMIC_MODULES)
   JMP_BUF recovery;    for (tmp = dynamic_module_list; tmp; tmp = tmp->next)    {    if(SETJMP(recovery))    call_handle_error();    else    (*tmp->exit)();    UNSETJMP(recovery);    free_program(tmp->module_prog);    tmp->module_prog = NULL; +  free_string(tmp->name); +  tmp->name = NULL;    }   #endif   }      /* Unload all the dynamically loaded modules. */   void free_dynamic_load(void)   {   #ifdef USE_DYNAMIC_MODULES    while(dynamic_module_list)    {    struct module_list *tmp=dynamic_module_list;    dynamic_module_list=tmp->next;   #ifndef DEBUG_MALLOC    dlclose(tmp->module);   #endif   #ifdef PIKE_DEBUG    if (tmp->module_prog) -  Pike_fatal ("There's still a program for dynamic module \"%s\".\n", -  tmp->name->str); +  Pike_fatal ("There's still a program for a dynamic module.\n");   #endif -  free_string(tmp->name); -  tmp->name = NULL; +     free((char *)tmp);    }   #endif   }         #endif /* NO_PIKE_GUTS */      #ifdef CREATE_MAIN   #include <stdio.h>