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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
ba35bf55
Commit
ba35bf55
authored
26 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
cyclic destroy() prevented
Rev: src/object.c:1.45
parent
4751d4dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/object.c
+11
-3
11 additions, 3 deletions
src/object.c
with
11 additions
and
3 deletions
src/object.c
+
11
−
3
View file @
ba35bf55
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information.
||| See the files COPYING and DISCLAIMER for more information.
\*/
\*/
#include
"global.h"
#include
"global.h"
RCSID
(
"$Id: object.c,v 1.4
4
1998/04/
09 02:42
:3
1
hubbe Exp $"
);
RCSID
(
"$Id: object.c,v 1.4
5
1998/04/
14 20:04
:3
9
hubbe Exp $"
);
#include
"object.h"
#include
"object.h"
#include
"dynamic_buffer.h"
#include
"dynamic_buffer.h"
#include
"interpret.h"
#include
"interpret.h"
...
@@ -21,6 +21,7 @@ RCSID("$Id: object.c,v 1.44 1998/04/09 02:42:31 hubbe Exp $");
...
@@ -21,6 +21,7 @@ RCSID("$Id: object.c,v 1.44 1998/04/09 02:42:31 hubbe Exp $");
#include
"callback.h"
#include
"callback.h"
#include
"cpp.h"
#include
"cpp.h"
#include
"builtin_functions.h"
#include
"builtin_functions.h"
#include
"cyclic.h"
#include
"dmalloc.h"
#include
"dmalloc.h"
...
@@ -247,8 +248,15 @@ void destruct(struct object *o)
...
@@ -247,8 +248,15 @@ void destruct(struct object *o)
e
=
FIND_LFUN
(
o
->
prog
,
LFUN_DESTROY
);
e
=
FIND_LFUN
(
o
->
prog
,
LFUN_DESTROY
);
if
(
e
!=
-
1
)
if
(
e
!=
-
1
)
{
{
safe_apply_low
(
o
,
e
,
0
);
/* We do not want to call destroy() if it already being called */
pop_stack
();
DECLARE_CYCLIC
();
if
(
!
BEGIN_CYCLIC
(
o
,
0
))
{
SET_CYCLIC_RET
(
1
);
safe_apply_low
(
o
,
e
,
0
);
pop_stack
();
END_CYCLIC
();
}
}
}
/* destructed in destroy() */
/* destructed in destroy() */
...
...
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