Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
0426ddad
Commit
0426ddad
authored
Jul 05, 2011
by
Pieter Noordhuis
Browse files
Print struct size
parent
b127f31e
Changes
1
Show whitespace changes
Inline
Side-by-side
test/parser.c
View file @
0426ddad
...
@@ -394,6 +394,8 @@ void test_nil(void) {
...
@@ -394,6 +394,8 @@ void test_nil(void) {
}
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
printf
(
"redis_protocol_t: %lu bytes
\n
"
,
sizeof
(
redis_protocol_t
));
printf
(
"redis_parser_t: %lu bytes
\n
"
,
sizeof
(
redis_parser_t
));
test_string
();
test_string
();
test_empty_string
();
test_empty_string
();
test_array
();
test_array
();
...
...
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