projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Shift = over being done by scanner, ie faster match.
[m6w6/libmemcached]
/
libmemcached
/
options
/
parser.yy
diff --git
a/libmemcached/options/parser.yy
b/libmemcached/options/parser.yy
index 6145ec728c19efd8e8755ad1d8513e77a46ac398..31371c1b6e388f3975d925e73b86c3499c7f74ed 100644
(file)
--- a/
libmemcached/options/parser.yy
+++ b/
libmemcached/options/parser.yy
@@
-221,30
+221,30
@@
expression:
;
behaviors:
;
behaviors:
- PREFIX_KEY
'='
string
+ PREFIX_KEY string
{
{
- if ((context->rc= memcached_set_prefix_key(context->memc, $
3.c_str, $3
.length)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_set_prefix_key(context->memc, $
2.c_str, $2
.length)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);;
}
}
{
parser_abort(context, NULL);;
}
}
- | DISTRIBUTION
'='
distribution
+ | DISTRIBUTION distribution
{
{
- if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, $
3
)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, $
2
)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);;
}
}
{
parser_abort(context, NULL);;
}
}
- | HASH
'='
hash
+ | HASH hash
{
{
- if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, $
3
)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, $
2
)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);;
}
}
{
parser_abort(context, NULL);;
}
}
- | KETAMA_HASH
'='
hash
+ | KETAMA_HASH hash
{
{
- if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_KETAMA_HASH, $
3
)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_KETAMA_HASH, $
2
)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);;
}
{
parser_abort(context, NULL);;
}