Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Illuna-Minetest
illuna-minetest
Commits
9017c51e
Commit
9017c51e
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
the zlib error print function now prints to dstream (debug.txt)
parent
bdb66ace
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/serialization.cpp
+8
-8
8 additions, 8 deletions
src/serialization.cpp
with
8 additions
and
8 deletions
src/serialization.cpp
+
8
−
8
View file @
9017c51e
...
...
@@ -27,28 +27,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* report a zlib or i/o error */
void
zerr
(
int
ret
)
{
fputs
(
"zerr: "
,
stderr
)
;
dstream
<<
"zerr: "
;
switch
(
ret
)
{
case
Z_ERRNO
:
if
(
ferror
(
stdin
))
fputs
(
"error reading stdin
\n
"
,
stderr
)
;
dstream
<<
"error reading stdin
"
<<
std
::
endl
;
if
(
ferror
(
stdout
))
fputs
(
"error writing stdout
\n
"
,
stderr
)
;
dstream
<<
"error writing stdout
"
<<
std
::
endl
;
break
;
case
Z_STREAM_ERROR
:
fputs
(
"invalid compression level
\n
"
,
stderr
)
;
dstream
<<
"invalid compression level
"
<<
std
::
endl
;
break
;
case
Z_DATA_ERROR
:
fputs
(
"invalid or incomplete deflate data
\n
"
,
stderr
)
;
dstream
<<
"invalid or incomplete deflate data
"
<<
std
::
endl
;
break
;
case
Z_MEM_ERROR
:
fputs
(
"out of memory
\n
"
,
stderr
)
;
dstream
<<
"out of memory
"
<<
std
::
endl
;
break
;
case
Z_VERSION_ERROR
:
fputs
(
"zlib version mismatch!
\n
"
,
stderr
)
;
dstream
<<
"zlib version mismatch!
"
<<
std
::
endl
;
break
;
default:
dstream
<<
"return value = "
<<
ret
<<
"
\n
"
;
dstream
<<
"return value = "
<<
ret
<<
std
::
endl
;
}
}
...
...
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