Commit df734805 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Prefix

parent ec7eaed9
......@@ -26,7 +26,7 @@
__tmp->data = NULL; \
} while(0)
#define PARSER_STATES(X) \
#define REDIS_PARSER_STATES(X) \
X(unused) /* = 0 in enum */ \
X(type_char) \
X(integer_start) \
......@@ -44,13 +44,13 @@
#define _ENUM_GEN(name) s_##name,
enum state {
PARSER_STATES(_ENUM_GEN)
REDIS_PARSER_STATES(_ENUM_GEN)
};
#undef _ENUM_GEN
#define _ENUM_GEN(s) #s,
static const char * strstate[] = {
PARSER_STATES(_ENUM_GEN)
REDIS_PARSER_STATES(_ENUM_GEN)
};
#undef _ENUM_GEN
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment