Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
d96c4c9e
Commit
d96c4c9e
authored
Jun 30, 2011
by
Pieter Noordhuis
Browse files
Change prototype
parent
d64575b2
Changes
2
Show whitespace changes
Inline
Side-by-side
parser.c
View file @
d96c4c9e
...
@@ -101,7 +101,7 @@ void redis_parser_init(redis_parser_t *parser, const redis_parser_cb_t *callback
...
@@ -101,7 +101,7 @@ void redis_parser_init(redis_parser_t *parser, const redis_parser_cb_t *callback
* no full message was parsed and the return value is smaller than the number
* no full message was parsed and the return value is smaller than the number
* of bytes that were available, an error occured and the parser should be
* of bytes that were available, an error occured and the parser should be
* re-initialized before parsing more data. */
* re-initialized before parsing more data. */
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
const
char
*
buf
,
size_t
len
,
redis_protocol_t
*
dst
)
{
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
redis_protocol_t
**
dst
,
const
char
*
buf
,
size_t
len
)
{
redis_protocol_t
*
stack
=
parser
->
stack
;
redis_protocol_t
*
stack
=
parser
->
stack
;
const
redis_parser_cb_t
*
callbacks
=
parser
->
callbacks
;
const
redis_parser_cb_t
*
callbacks
=
parser
->
callbacks
;
const
char
*
pos
;
const
char
*
pos
;
...
...
parser.h
View file @
d96c4c9e
...
@@ -61,6 +61,6 @@ struct redis_parser_s {
...
@@ -61,6 +61,6 @@ struct redis_parser_s {
};
};
void
redis_parser_init
(
redis_parser_t
*
parser
,
const
redis_parser_cb_t
*
callbacks
);
void
redis_parser_init
(
redis_parser_t
*
parser
,
const
redis_parser_cb_t
*
callbacks
);
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
const
char
*
buf
,
size_t
len
,
redis_protocol_t
*
dst
);
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
redis_protocol_t
**
dst
,
const
char
*
buf
,
size_t
len
);
#endif // __REDIS_PARSER_H
#endif // __REDIS_PARSER_H
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