Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rudolf
/
huffman
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
619a665a
authored
Nov 16, 2016
by
Rudolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return from int functions
Not really needed but for consistency's sake
parent
6457da18
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
header.c
tree.c
header.c
View file @
619a665a
...
...
@@ -26,6 +26,7 @@ static int write_entries(struct BIT_BUFFER *bitbuf, struct tree *parent)
//bb_write(bitbuf, &bit, 1);
bb_writebyte
(
bitbuf
,
parent
->
right
->
ch
);
}
return
0
;
}
int
encode_header
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
)
...
...
@@ -62,6 +63,7 @@ static int read_entries(struct BIT_BUFFER *bitbuf, struct tree *parent)
}
free
(
bit
);
return
0
;
}
int
decode_header
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
)
...
...
tree.c
View file @
619a665a
...
...
@@ -108,6 +108,7 @@ static int write_entry(struct BIT_BUFFER *bitbuf, struct tree *parent, char c)
parent
=
left
;
}
return
0
;
}
int
encode_tree
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
,
char
*
buf
,
...
...
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