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.84 2005/10/19 12:41:20 nilsson Exp $ + || $Id: dynamic_load.c,v 1.85 2008/05/30 15:26:22 mast 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 "lex.h"   # include "object.h"    - RCSID("$Id: dynamic_load.c,v 1.84 2005/10/19 12:41:20 nilsson Exp $"); + RCSID("$Id: dynamic_load.c,v 1.85 2008/05/30 15:26:22 mast 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:646: Inside #if defined(USE_DYNAMIC_MODULES)
  #ifdef USE_DYNAMIC_MODULES    struct module_list *tmp;    JMP_BUF recovery;    for (tmp = dynamic_module_list; tmp; tmp = tmp->next)    {    if(SETJMP(recovery))    call_handle_error();    else    (*tmp->exit)();    UNSETJMP(recovery); +  if (tmp->module_prog) {    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