projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in parser adjustment so that = now belongs to the actual parser.
[awesomized/libmemcached]
/
libmemcached
/
options
/
parser.yy
diff --git
a/libmemcached/options/parser.yy
b/libmemcached/options/parser.yy
index 31371c1b6e388f3975d925e73b86c3499c7f74ed..6071a99bd02c83087c3259b94870a69d6c090646 100644
(file)
--- a/
libmemcached/options/parser.yy
+++ b/
libmemcached/options/parser.yy
@@
-203,19
+203,19
@@
statement:
expression:
expression:
- SERVER
'='
server
+ SERVER server
{
{
- if ((context->rc= memcached_server_add_parsed(context->memc, $
3.c_str, $3.length, $3
.port, 0)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_server_add_parsed(context->memc, $
2.c_str, $2.length, $2
.port, 0)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);
}
}
{
parser_abort(context, NULL);
}
}
- | SERVERS_OPTION
'='
server_list
+ | SERVERS_OPTION server_list
{
}
{
}
- | CONFIGURE_FILE
'='
string
+ | CONFIGURE_FILE string
{
{
- memcached_set_configuration_file(context->memc, $
3.c_str, $3
.length);
+ memcached_set_configuration_file(context->memc, $
2.c_str, $2
.length);
}
| behaviors
;
}
| behaviors
;
@@
-249,9
+249,9
@@
behaviors:
parser_abort(context, NULL);;
}
}
parser_abort(context, NULL);;
}
}
- | behavior_number
'='
NUMBER
+ | behavior_number NUMBER
{
{
- if ((context->rc= memcached_behavior_set(context->memc, $1, $
3
)) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, $1, $
2
)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);;
}
{
parser_abort(context, NULL);;
}