X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fparser.yy;h=f9388af394b9c635df389ecbefccf87769fbaa08;hb=5a65c28db362c4d62419075c5c9e416fd855a9f9;hp=66428b8997cc4af8908607ff831e0ea920c05ba1;hpb=e82f6a9bffe896a579ae5013a9cab51180cd003d;p=awesomized%2Flibmemcached diff --git a/libmemcached/options/parser.yy b/libmemcached/options/parser.yy index 66428b89..f9388af3 100644 --- a/libmemcached/options/parser.yy +++ b/libmemcached/options/parser.yy @@ -215,9 +215,9 @@ expression: } context->unset_server(); } - | SOCKET string + | SOCKET string optional_weight { - if (memcached_failed(context->rc= memcached_server_add_unix_socket(context->memc, $2.c_str))) + if (memcached_failed(context->rc= memcached_server_add_unix_socket_with_weight(context->memc, $2.c_str, $3))) { parser_abort(context, NULL); } @@ -449,8 +449,11 @@ string: } | QUOTED_STRING { + $$= $1; + #if 0 $$.c_str= $1.c_str +1; // +1 to move use passed the initial quote $$.size= $1.size -2; // -2 removes the begin and end quote + #endif } ;