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
df734805
Commit
df734805
authored
Jul 07, 2011
by
Pieter Noordhuis
Browse files
Prefix
parent
ec7eaed9
Changes
1
Show whitespace changes
Inline
Side-by-side
parser.c
View file @
df734805
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
__tmp->data = NULL; \
__tmp->data = NULL; \
} while(0)
} while(0)
#define PARSER_STATES(X)
\
#define
REDIS_
PARSER_STATES(X) \
X(unused)
/* = 0 in enum */
\
X(unused)
/* = 0 in enum */
\
X(type_char) \
X(type_char) \
X(integer_start) \
X(integer_start) \
...
@@ -44,13 +44,13 @@
...
@@ -44,13 +44,13 @@
#define _ENUM_GEN(name) s_##name,
#define _ENUM_GEN(name) s_##name,
enum
state
{
enum
state
{
PARSER_STATES
(
_ENUM_GEN
)
REDIS_
PARSER_STATES
(
_ENUM_GEN
)
};
};
#undef _ENUM_GEN
#undef _ENUM_GEN
#define _ENUM_GEN(s) #s,
#define _ENUM_GEN(s) #s,
static
const
char
*
strstate
[]
=
{
static
const
char
*
strstate
[]
=
{
PARSER_STATES
(
_ENUM_GEN
)
REDIS_
PARSER_STATES
(
_ENUM_GEN
)
};
};
#undef _ENUM_GEN
#undef _ENUM_GEN
...
...
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