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
d0261535
Commit
d0261535
authored
24 years ago
by
Martin Stjernholm
Browse files
Options
Downloads
Patches
Plain Diff
Added T_MAPPING_DATA to be able to identify mapping_data blocks in
debug dumps. Added IS_DESTRUCTED. Rev: src/svalue.h:1.68
parent
e080e70c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/svalue.h
+6
-2
6 additions, 2 deletions
src/svalue.h
with
6 additions
and
2 deletions
src/svalue.h
+
6
−
2
View file @
d0261535
...
...
@@ -5,7 +5,7 @@
\*/
/*
* $Id: svalue.h,v 1.6
7
2000/0
8/29 00:20:5
1 mast Exp $
* $Id: svalue.h,v 1.6
8
2000/0
9/03 22:02:3
1 mast Exp $
*/
#ifndef SVALUE_H
#define SVALUE_H
...
...
@@ -95,6 +95,7 @@ struct svalue
#define T_VOID 16
/* Can't return any value */
#define T_MANY 17
#define T_MAPPING_DATA 242
#define PIKE_T_SCOPE 243
/* Not supported yet */
#define PIKE_T_TUPLE 244
/* Not supported yet */
#define T_ASSIGN 245
...
...
@@ -229,10 +230,13 @@ struct svalue
#define IS_UNDEFINED(X) ((X)->type==PIKE_T_INT&&!(X)->u.integer&&(X)->subtype==1)
#define IS_DESTRUCTED(X) \
(((X)->type == PIKE_T_OBJECT || (X)->type==PIKE_T_FUNCTION) && !(X)->u.object->prog)
#define check_destructed(S) \
do{ \
struct svalue *_s=(S); \
if(
(_s->type == PIKE_T_OBJECT || _s->type==PIKE_T_FUNCTION) && !_s->u.object->prog
) { \
if(
IS_DESTRUCTED(_s)
) { \
free_object(_s->u.object); \
_s->type = PIKE_T_INT; \
_s->subtype = NUMBER_DESTRUCTED ; \
...
...
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