X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fparser.yy;h=6071a99bd02c83087c3259b94870a69d6c090646;hb=8ddd817cd74d85db3f945920fb02f4cc4daa8050;hp=31371c1b6e388f3975d925e73b86c3499c7f74ed;hpb=63f71170a4353e58f57f0572db83893cebc2ad91;p=awesomized%2Flibmemcached diff --git a/libmemcached/options/parser.yy b/libmemcached/options/parser.yy index 31371c1b..6071a99b 100644 --- a/libmemcached/options/parser.yy +++ b/libmemcached/options/parser.yy @@ -203,19 +203,19 @@ statement: 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); } } - | 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 ; @@ -249,9 +249,9 @@ behaviors: 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);; }