Skip to content
Snippets Groups Projects
Commit 0bd147c3 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Reverted.

Rev: src/dynamic_load.c:1.82
Rev: src/module.c:1.27
parent 5df5b4a9
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: dynamic_load.c,v 1.81 2004/04/14 19:45:15 mast Exp $ || $Id: dynamic_load.c,v 1.82 2004/04/15 13:21:25 grubba Exp $
*/ */
#ifdef TESTING #ifdef TESTING
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# include "lex.h" # include "lex.h"
# include "object.h" # include "object.h"
RCSID("$Id: dynamic_load.c,v 1.81 2004/04/14 19:45:15 mast Exp $"); RCSID("$Id: dynamic_load.c,v 1.82 2004/04/15 13:21:25 grubba Exp $");
#else /* TESTING */ #else /* TESTING */
...@@ -593,7 +593,13 @@ void f_load_module(INT32 args) ...@@ -593,7 +593,13 @@ void f_load_module(INT32 args)
compilation_depth = save.compilation_depth; compilation_depth = save.compilation_depth;
lex = save.lex; lex = save.lex;
if (p) { if (p) {
if (p->num_identifier_references) { if (
#if 0
p->num_identifier_references
#else /* !0 */
1
#endif /* 0 */
) {
push_program(p); push_program(p);
add_ref(new_module->module_prog = Pike_sp[-1].u.program); add_ref(new_module->module_prog = Pike_sp[-1].u.program);
} else { } else {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: module.c,v 1.26 2004/04/14 19:08:35 grubba Exp $ || $Id: module.c,v 1.27 2004/04/15 13:20:19 grubba Exp $
*/ */
#include "global.h" #include "global.h"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "modules/modlist_headers.h" #include "modules/modlist_headers.h"
#include "post_modules/modlist_headers.h" #include "post_modules/modlist_headers.h"
RCSID("$Id: module.c,v 1.26 2004/04/14 19:08:35 grubba Exp $"); RCSID("$Id: module.c,v 1.27 2004/04/15 13:20:19 grubba Exp $");
/* Define this to trace the initialization and cleanup of static modules. */ /* Define this to trace the initialization and cleanup of static modules. */
/* #define TRACE_MODULE */ /* #define TRACE_MODULE */
...@@ -77,7 +77,13 @@ void init_modules(void) ...@@ -77,7 +77,13 @@ void init_modules(void)
TRACE((stderr, "Initializing static module #%d: \"%s\"...\n", TRACE((stderr, "Initializing static module #%d: \"%s\"...\n",
e, module_list[e].name)); e, module_list[e].name));
module_list[e].init(); module_list[e].init();
if (Pike_compiler->new_program->num_identifier_references) { if (
#if 0
Pike_compiler->new_program->num_identifier_references
#else /* !0 */
1
#endif /* 0 */
) {
debug_end_class(module_list[e].name,strlen(module_list[e].name),0); debug_end_class(module_list[e].name,strlen(module_list[e].name),0);
p = NULL; p = NULL;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment