#include <libmemcached/options/symbol.h>
#include <libmemcached/options/scanner.h>
+#include <iostream>
+
#pragma GCC diagnostic ignored "-Wold-style-cast"
int conf_lex(YYSTYPE* lvalp, void* scanner);
%token CONFIGURE_FILE
%token EMPTY_LINE
%token SERVER
+%token SOCKET
%token SERVERS
%token SERVERS_OPTION
%token UNKNOWN_OPTION
}
context->unset_server();
}
+ | SOCKET string
+ {
+ if (memcached_failed(context->rc= memcached_server_add_unix_socket(context->memc, $2.c_str)))
+ {
+ parser_abort(context, NULL);
+ }
+ }
| CONFIGURE_FILE string
{
memcached_set_configuration_file(context->memc, $2.c_str, $2.size);