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
e2420f68
Commit
e2420f68
authored
27 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
(function)"string" no longer supported (never worked anyway...)
Rev: src/opcodes.c:1.21
parent
fcea9ca3
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/opcodes.c
+1
-24
1 addition, 24 deletions
src/opcodes.c
with
1 addition
and
24 deletions
src/opcodes.c
+
1
−
24
View file @
e2420f68
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include
"builtin_functions.h"
#include
"builtin_functions.h"
#include
"module_support.h"
#include
"module_support.h"
RCSID
(
"$Id: opcodes.c,v 1.2
0
1998/04/2
0
1
8:53:21 gr
ubb
a
Exp $"
);
RCSID
(
"$Id: opcodes.c,v 1.2
1
1998/04/2
6
1
1:44:24 h
ubb
e
Exp $"
);
void
index_no_free
(
struct
svalue
*
to
,
struct
svalue
*
what
,
struct
svalue
*
ind
)
void
index_no_free
(
struct
svalue
*
to
,
struct
svalue
*
what
,
struct
svalue
*
ind
)
{
{
...
@@ -256,29 +256,6 @@ void o_cast(struct pike_string *type, INT32 run_time_type)
...
@@ -256,29 +256,6 @@ void o_cast(struct pike_string *type, INT32 run_time_type)
default:
default:
error
(
"Cannot cast that to a program.
\n
"
);
error
(
"Cannot cast that to a program.
\n
"
);
}
}
case
T_FUNCTION
:
{
INT32
i
;
if
(
fp
->
current_object
->
prog
)
error
(
"Cast to function in destructed object.
\n
"
);
i
=
find_shared_string_identifier
(
sp
[
-
1
].
u
.
string
,
fp
->
current_object
->
prog
);
free_string
(
sp
[
-
1
].
u
.
string
);
/* FIXME, check that it is a indeed a function */
if
(
i
==-
1
)
{
sp
[
-
1
].
type
=
T_FUNCTION
;
sp
[
-
1
].
subtype
=
i
;
sp
[
-
1
].
u
.
object
=
fp
->
current_object
;
add_ref
(
fp
->
current_object
);
}
else
{
sp
[
-
1
].
type
=
T_INT
;
sp
[
-
1
].
subtype
=
NUMBER_UNDEFINED
;
sp
[
-
1
].
u
.
integer
=
0
;
}
break
;
}
}
}
}
}
...
...
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