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
4234b1cf
"vscode:/vscode.git/clone" did not exist on "02de281e40ecebd2e68a12d92066f44303b57348"
Commit
4234b1cf
authored
Jul 14, 2011
by
Pieter Noordhuis
Browse files
Function to pull root object from parser
parent
29617b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
parser.c
View file @
4234b1cf
...
@@ -493,6 +493,10 @@ error:
...
@@ -493,6 +493,10 @@ error:
return
pos
-
buf
;
return
pos
-
buf
;
}
}
redis_protocol_t
*
redis_parser_root
(
redis_parser_t
*
parser
)
{
return
&
parser
->
stack
[
0
];
}
redis_parser_err_t
redis_parser_err
(
redis_parser_t
*
parser
)
{
redis_parser_err_t
redis_parser_err
(
redis_parser_t
*
parser
)
{
return
parser
->
err
;
return
parser
->
err
;
}
}
...
...
parser.h
View file @
4234b1cf
...
@@ -86,6 +86,7 @@ struct redis_parser_s {
...
@@ -86,6 +86,7 @@ struct redis_parser_s {
void
redis_parser_init
(
redis_parser_t
*
parser
,
const
redis_parser_callbacks_t
*
callbacks
);
void
redis_parser_init
(
redis_parser_t
*
parser
,
const
redis_parser_callbacks_t
*
callbacks
);
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
redis_protocol_t
**
dst
,
const
char
*
buf
,
size_t
len
);
size_t
redis_parser_execute
(
redis_parser_t
*
parser
,
redis_protocol_t
**
dst
,
const
char
*
buf
,
size_t
len
);
redis_protocol_t
*
redis_parser_root
(
redis_parser_t
*
parser
);
redis_parser_err_t
redis_parser_err
(
redis_parser_t
*
parser
);
redis_parser_err_t
redis_parser_err
(
redis_parser_t
*
parser
);
const
char
*
redis_parser_strerror
(
redis_parser_err_t
err
);
const
char
*
redis_parser_strerror
(
redis_parser_err_t
err
);
...
...
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