Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pike
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
105
Issues
105
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pikelang
pike
Commits
2317b255
Commit
2317b255
authored
Jul 21, 2020
by
Stephen R. van den Berg
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stdio.Buffer: Use PIKE_TYPEOF() macro.
parent
73003705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/_Stdio/buffer.cmod
src/modules/_Stdio/buffer.cmod
+2
-2
No files found.
src/modules/_Stdio/buffer.cmod
View file @
2317b255
...
...
@@ -455,7 +455,7 @@ PIKECLASS Buffer
PMOD_EXPORT
void
io_actually_trigger_output
(
Buffer
*
io
)
{
if
(
io
->
output
.
tu
.
named_type
==
PIKE_T_FUNCTION
)
{
if
(
PIKE_TYPEOF
(
io
->
output
)
==
PIKE_T_FUNCTION
)
{
if
(
UNLIKELY
(
!
io
->
output
.
u
.
object
->
prog
))
{
/* Destructed object. */
free_svalue
(
&
io
->
output
);
...
...
@@ -994,7 +994,7 @@ PIKECLASS Buffer
if
(
f
)
assign_svalue
(
&
io
->
output
,
f
);
else
{
if
(
io
->
output
.
tu
.
named_type
==
PIKE_T_FUNCTION
)
if
(
PIKE_TYPEOF
(
io
->
output
)
==
PIKE_T_FUNCTION
)
free_svalue
(
&
io
->
output
);
}
}
...
...
Henrik (Grubba) Grubbström
@grubba
mentioned in commit
a4872fee
·
Aug 02, 2020
mentioned in commit
a4872fee
mentioned in commit a4872fee57728a14d4ecfc7887be34cac07410e8
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment