Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
0bd147c3
Commit
0bd147c3
authored
Apr 15, 2004
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Reverted.
Rev: src/dynamic_load.c:1.82 Rev: src/module.c:1.27
parent
5df5b4a9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dynamic_load.c
+9
-3
9 additions, 3 deletions
src/dynamic_load.c
src/module.c
+9
-3
9 additions, 3 deletions
src/module.c
with
18 additions
and
6 deletions
src/dynamic_load.c
+
9
−
3
View file @
0bd147c3
...
@@ -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.8
1
2004/04/1
4
1
9:45:15 mast
Exp $
|| $Id: dynamic_load.c,v 1.8
2
2004/04/1
5
1
3: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.8
1
2004/04/1
4
1
9:45:15 mast
Exp $"
);
RCSID
(
"$Id: dynamic_load.c,v 1.8
2
2004/04/1
5
1
3: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
{
...
...
This diff is collapsed.
Click to expand it.
src/module.c
+
9
−
3
View file @
0bd147c3
...
@@ -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.2
6
2004/04/1
4
1
9:08:35
grubba Exp $
|| $Id: module.c,v 1.2
7
2004/04/1
5
1
3: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.2
6
2004/04/1
4
1
9:08:35
grubba Exp $"
);
RCSID
(
"$Id: module.c,v 1.2
7
2004/04/1
5
1
3: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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment