Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ea25688e
Commit
ea25688e
authored
Oct 12, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_buffer: converted ob_is_empty() to inline
The function ob_is_empty() is called very often. It's worth it to convert it to an inline function.
parent
35a939e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
outputBuffer.c
src/outputBuffer.c
+0
-5
outputBuffer.h
src/outputBuffer.h
+4
-1
No files found.
src/outputBuffer.c
View file @
ea25688e
...
...
@@ -101,11 +101,6 @@ void ob_set_lazy(bool lazy)
ob
.
lazy
=
lazy
;
}
int
ob_is_empty
(
void
)
{
return
ob
.
begin
==
ob
.
end
;
}
void
ob_shift
(
void
)
{
assert
(
ob
.
begin
!=
ob
.
end
);
...
...
src/outputBuffer.h
View file @
ea25688e
...
...
@@ -78,7 +78,10 @@ void ob_flush(void);
void
ob_set_lazy
(
bool
lazy
);
/** is the buffer empty? */
int
ob_is_empty
(
void
);
static
inline
bool
ob_is_empty
(
void
)
{
return
ob
.
begin
==
ob
.
end
;
}
void
ob_shift
(
void
);
...
...
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