{
case 4:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 195 "libmemcached/csl/parser.yy"
{ }
break;
case 5:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 197 "libmemcached/csl/parser.yy"
{ }
break;
case 6:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 199 "libmemcached/csl/parser.yy"
{ }
break;
case 7:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 201 "libmemcached/csl/parser.yy"
{
context->set_end();
case 8:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 206 "libmemcached/csl/parser.yy"
{
context->rc= MEMCACHED_PARSE_USER_ERROR;
case 9:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 211 "libmemcached/csl/parser.yy"
{
memcached_reset(context->memc);
case 10:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 215 "libmemcached/csl/parser.yy"
{
yydebug= 1;
case 11:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 219 "libmemcached/csl/parser.yy"
{
if ((context->rc= memcached_parse_configure_file(*context->memc, (yyvsp[(3) - (3)].string).c_str, (yyvsp[(3) - (3)].string).size)) != MEMCACHED_SUCCESS)
case 12:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 230 "libmemcached/csl/parser.yy"
{
if (memcached_failed(context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(3) - (4)].number), uint32_t((yyvsp[(4) - (4)].number)))))
case 13:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 240 "libmemcached/csl/parser.yy"
{
if (memcached_failed(context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(3) - (4)].number), uint32_t((yyvsp[(4) - (4)].number)))))
case 14:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 250 "libmemcached/csl/parser.yy"
{
if (memcached_failed(context->rc= memcached_server_add_unix_socket_with_weight(context->memc, (yyvsp[(2) - (3)].string).c_str, uint32_t((yyvsp[(3) - (3)].number)))))
case 15:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 259 "libmemcached/csl/parser.yy"
{
memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size);
case 16:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 263 "libmemcached/csl/parser.yy"
{
context->memc->configure.initial_pool_size= uint32_t((yyvsp[(2) - (2)].number));
case 17:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 267 "libmemcached/csl/parser.yy"
{
context->memc->configure.max_pool_size= uint32_t((yyvsp[(2) - (2)].number));
case 19:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 275 "libmemcached/csl/parser.yy"
{
if (memcached_callback_get(context->memc, MEMCACHED_CALLBACK_PREFIX_KEY, NULL))
case 20:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 287 "libmemcached/csl/parser.yy"
{
memcached_flag(*context->memc, MEMCACHED_FLAG_IS_FETCHING_VERSION, true);
case 21:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 291 "libmemcached/csl/parser.yy"
{
// Check to see if DISTRIBUTION has already been set
case 22:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 304 "libmemcached/csl/parser.yy"
{
// Check to see if DISTRIBUTION has already been set
case 23:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 317 "libmemcached/csl/parser.yy"
{
if (context->set_hash((yyvsp[(2) - (2)].hash)) == false)
case 24:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 324 "libmemcached/csl/parser.yy"
{
if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (2)].behavior), (yyvsp[(2) - (2)].number))) != MEMCACHED_SUCCESS)
case 25:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 331 "libmemcached/csl/parser.yy"
{
if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (1)].behavior), true)) != MEMCACHED_SUCCESS)
case 26:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 340 "libmemcached/csl/parser.yy"
{
}
case 27:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 346 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS;
case 28:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 350 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT;
case 29:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 354 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK;
case 30:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 358 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK;
case 31:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 362 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH;
case 32:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 366 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS;
case 33:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 370 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT;
case 34:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 374 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT;
case 35:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 378 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT;
case 36:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 382 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SND_TIMEOUT;
case 37:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 386 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE;
case 38:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 390 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE;
case 39:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 397 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL;
case 40:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 401 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
case 41:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 405 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
case 42:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 409 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY;
case 43:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 413 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ;
case 44:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 417 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS;
case 45:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 421 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS;
case 46:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 425 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY;
case 47:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 429 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE;
case 48:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 433 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE;
case 49:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 437 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP;
case 50:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 441 "libmemcached/csl/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY;
case 51:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 447 "libmemcached/csl/parser.yy"
{ (yyval.number)= MEMCACHED_DEFAULT_PORT;}
break;
case 52:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 449 "libmemcached/csl/parser.yy"
{ }
break;
case 53:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 453 "libmemcached/csl/parser.yy"
{ (yyval.number)= 1; }
break;
case 54:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 455 "libmemcached/csl/parser.yy"
{ }
break;
case 55:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 460 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_MD5;
case 56:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 464 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_CRC;
case 57:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 468 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1_64;
case 58:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 472 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1A_64;
case 59:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 476 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1_32;
case 60:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 480 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1A_32;
case 61:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 484 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_HSIEH;
case 62:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 488 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_MURMUR;
case 63:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 492 "libmemcached/csl/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_JENKINS;
case 64:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 499 "libmemcached/csl/parser.yy"
{
(yyval.string)= (yyvsp[(1) - (1)].string);
case 65:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 503 "libmemcached/csl/parser.yy"
{
(yyval.string)= (yyvsp[(1) - (1)].string);
case 66:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 510 "libmemcached/csl/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_CONSISTENT;
case 67:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 514 "libmemcached/csl/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_MODULA;
case 68:
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 518 "libmemcached/csl/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_RANDOM;
-/* Line 1821 of yacc.c */
+/* Line 1806 of yacc.c */
#line 2182 "libmemcached/csl/parser.cc"
default: break;
}
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wmissing-declarations"
+#pragma GCC diagnostic ignored "-Wunused-result"
#endif
#define YY_EXTRA_TYPE Context*
-#line 22 "libmemcached/csl/scanner.cc"
+#line 23 "libmemcached/csl/scanner.cc"
#define YY_INT_ALIGNED short int
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
-typedef uint64_t flex_uint64_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
- yy_size_t yy_n_chars;
+ int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
YY_BUFFER_STATE config__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE config__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
-YY_BUFFER_STATE config__scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
+YY_BUFFER_STATE config__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
void *config_alloc (yy_size_t ,yyscan_t yyscanner );
void *config_realloc (void *,yy_size_t ,yyscan_t yyscanner );
*/
#define YY_DO_BEFORE_ACTION \
yyg->yytext_ptr = yy_bp; \
- yyleng = (yy_size_t) (yy_cp - yy_bp); \
+ yyleng = (size_t) (yy_cp - yy_bp); \
yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
*
*/
-#line 58 "libmemcached/csl/scanner.l"
+#line 59 "libmemcached/csl/scanner.l"
#include <cstdlib>
#include <cstring>
size_t yy_buffer_stack_max; /**< capacity of stack. */
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
char yy_hold_char;
- yy_size_t yy_n_chars;
- yy_size_t yyleng_r;
+ int yy_n_chars;
+ int yyleng_r;
char *yy_c_buf_p;
int yy_init;
int yy_start;
void config_set_out (FILE * out_str ,yyscan_t yyscanner );
-yy_size_t config_get_leng (yyscan_t yyscanner );
+int config_get_leng (yyscan_t yyscanner );
char *config_get_text (yyscan_t yyscanner );
void config_set_lineno (int line_number ,yyscan_t yyscanner );
+int config_get_column (yyscan_t yyscanner );
+
+void config_set_column (int column_no ,yyscan_t yyscanner );
+
YYSTYPE * config_get_lval (yyscan_t yyscanner );
void config_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- yy_size_t n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
register int yy_act;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-#line 100 "libmemcached/csl/scanner.l"
+#line 101 "libmemcached/csl/scanner.l"
-#line 1333 "libmemcached/csl/scanner.cc"
+#line 1337 "libmemcached/csl/scanner.cc"
yylval = yylval_param;
case 1:
YY_RULE_SETUP
-#line 103 "libmemcached/csl/scanner.l"
+#line 104 "libmemcached/csl/scanner.l"
{ return yytext[0];}
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 105 "libmemcached/csl/scanner.l"
+#line 106 "libmemcached/csl/scanner.l"
{ yylval->number= atoi(yytext); return (NUMBER); }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 107 "libmemcached/csl/scanner.l"
+#line 108 "libmemcached/csl/scanner.l"
{ yylval->number= atoi(yytext +1); return PORT; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 109 "libmemcached/csl/scanner.l"
+#line 110 "libmemcached/csl/scanner.l"
{ yylval->number= atoi(yytext +2); return WEIGHT_START; }
YY_BREAK
case 5:
/* rule 5 can match eol */
YY_RULE_SETUP
-#line 111 "libmemcached/csl/scanner.l"
+#line 112 "libmemcached/csl/scanner.l"
; /* skip whitespace */
YY_BREAK
case 6:
yyg->yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
-#line 114 "libmemcached/csl/scanner.l"
+#line 115 "libmemcached/csl/scanner.l"
{
return COMMENT;
}
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 118 "libmemcached/csl/scanner.l"
+#line 119 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; yyextra->set_server(); return yyextra->previous_token= SERVER; }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 120 "libmemcached/csl/scanner.l"
+#line 121 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SOCKET; }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 122 "libmemcached/csl/scanner.l"
+#line 123 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= BINARY_PROTOCOL; }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 123 "libmemcached/csl/scanner.l"
+#line 124 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= BUFFER_REQUESTS; }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 124 "libmemcached/csl/scanner.l"
+#line 125 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= CONFIGURE_FILE; }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 125 "libmemcached/csl/scanner.l"
+#line 126 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= CONNECT_TIMEOUT; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 126 "libmemcached/csl/scanner.l"
+#line 127 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= DISTRIBUTION; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 127 "libmemcached/csl/scanner.l"
+#line 128 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= HASH_WITH_NAMESPACE; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 128 "libmemcached/csl/scanner.l"
+#line 129 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= HASH; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 129 "libmemcached/csl/scanner.l"
+#line 130 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= IO_BYTES_WATERMARK; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 130 "libmemcached/csl/scanner.l"
+#line 131 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= IO_KEY_PREFETCH; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 131 "libmemcached/csl/scanner.l"
+#line 132 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= IO_MSG_WATERMARK; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 132 "libmemcached/csl/scanner.l"
+#line 133 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= NOREPLY; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 133 "libmemcached/csl/scanner.l"
+#line 134 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= NUMBER_OF_REPLICAS; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 134 "libmemcached/csl/scanner.l"
+#line 135 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= POLL_TIMEOUT; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 135 "libmemcached/csl/scanner.l"
+#line 136 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= RANDOMIZE_REPLICA_READ; }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 136 "libmemcached/csl/scanner.l"
+#line 137 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= RCV_TIMEOUT; }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 137 "libmemcached/csl/scanner.l"
+#line 138 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= REMOVE_FAILED_SERVERS; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 138 "libmemcached/csl/scanner.l"
+#line 139 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= RETRY_TIMEOUT; }
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 139 "libmemcached/csl/scanner.l"
+#line 140 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SND_TIMEOUT; }
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 140 "libmemcached/csl/scanner.l"
+#line 141 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SOCKET_RECV_SIZE; }
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 141 "libmemcached/csl/scanner.l"
+#line 142 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SOCKET_SEND_SIZE; }
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 142 "libmemcached/csl/scanner.l"
+#line 143 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SORT_HOSTS; }
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 143 "libmemcached/csl/scanner.l"
+#line 144 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SUPPORT_CAS; }
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 144 "libmemcached/csl/scanner.l"
+#line 145 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= _TCP_KEEPALIVE; }
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 145 "libmemcached/csl/scanner.l"
+#line 146 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= _TCP_KEEPIDLE; }
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 146 "libmemcached/csl/scanner.l"
+#line 147 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= _TCP_NODELAY; }
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 147 "libmemcached/csl/scanner.l"
+#line 148 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= USE_UDP; }
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 148 "libmemcached/csl/scanner.l"
+#line 149 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= USER_DATA; }
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 149 "libmemcached/csl/scanner.l"
+#line 150 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= VERIFY_KEY; }
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 151 "libmemcached/csl/scanner.l"
+#line 152 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= POOL_MIN; }
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 152 "libmemcached/csl/scanner.l"
+#line 153 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= POOL_MAX; }
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 154 "libmemcached/csl/scanner.l"
+#line 155 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= NAMESPACE; }
YY_BREAK
case 40:
YY_RULE_SETUP
-#line 156 "libmemcached/csl/scanner.l"
+#line 157 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= FETCH_VERSION; }
YY_BREAK
case 41:
YY_RULE_SETUP
-#line 158 "libmemcached/csl/scanner.l"
+#line 159 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= INCLUDE; }
YY_BREAK
case 42:
YY_RULE_SETUP
-#line 159 "libmemcached/csl/scanner.l"
+#line 160 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= RESET; }
YY_BREAK
case 43:
YY_RULE_SETUP
-#line 160 "libmemcached/csl/scanner.l"
+#line 161 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= PARSER_DEBUG; }
YY_BREAK
case 44:
YY_RULE_SETUP
-#line 161 "libmemcached/csl/scanner.l"
+#line 162 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= SERVERS; }
YY_BREAK
case 45:
YY_RULE_SETUP
-#line 162 "libmemcached/csl/scanner.l"
+#line 163 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= END; }
YY_BREAK
case 46:
YY_RULE_SETUP
-#line 163 "libmemcached/csl/scanner.l"
+#line 164 "libmemcached/csl/scanner.l"
{ yyextra->begin= yytext; return yyextra->previous_token= ERROR; }
YY_BREAK
case 47:
YY_RULE_SETUP
-#line 165 "libmemcached/csl/scanner.l"
+#line 166 "libmemcached/csl/scanner.l"
{ return yyextra->previous_token= TRUE; }
YY_BREAK
case 48:
YY_RULE_SETUP
-#line 166 "libmemcached/csl/scanner.l"
+#line 167 "libmemcached/csl/scanner.l"
{ return yyextra->previous_token= FALSE; }
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 169 "libmemcached/csl/scanner.l"
+#line 170 "libmemcached/csl/scanner.l"
{
yyextra->begin= yytext;
return UNKNOWN_OPTION;
YY_BREAK
case 50:
YY_RULE_SETUP
-#line 174 "libmemcached/csl/scanner.l"
+#line 175 "libmemcached/csl/scanner.l"
{ return CONSISTENT; }
YY_BREAK
case 51:
YY_RULE_SETUP
-#line 175 "libmemcached/csl/scanner.l"
+#line 176 "libmemcached/csl/scanner.l"
{ return MODULA; }
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 176 "libmemcached/csl/scanner.l"
+#line 177 "libmemcached/csl/scanner.l"
{ return RANDOM; }
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 178 "libmemcached/csl/scanner.l"
+#line 179 "libmemcached/csl/scanner.l"
{ return MD5; }
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 179 "libmemcached/csl/scanner.l"
+#line 180 "libmemcached/csl/scanner.l"
{ return CRC; }
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 180 "libmemcached/csl/scanner.l"
+#line 181 "libmemcached/csl/scanner.l"
{ return FNV1_64; }
YY_BREAK
case 56:
YY_RULE_SETUP
-#line 181 "libmemcached/csl/scanner.l"
+#line 182 "libmemcached/csl/scanner.l"
{ return FNV1A_64; }
YY_BREAK
case 57:
YY_RULE_SETUP
-#line 182 "libmemcached/csl/scanner.l"
+#line 183 "libmemcached/csl/scanner.l"
{ return FNV1_32; }
YY_BREAK
case 58:
YY_RULE_SETUP
-#line 183 "libmemcached/csl/scanner.l"
+#line 184 "libmemcached/csl/scanner.l"
{ return FNV1A_32; }
YY_BREAK
case 59:
YY_RULE_SETUP
-#line 184 "libmemcached/csl/scanner.l"
+#line 185 "libmemcached/csl/scanner.l"
{ return HSIEH; }
YY_BREAK
case 60:
YY_RULE_SETUP
-#line 185 "libmemcached/csl/scanner.l"
+#line 186 "libmemcached/csl/scanner.l"
{ return MURMUR; }
YY_BREAK
case 61:
YY_RULE_SETUP
-#line 186 "libmemcached/csl/scanner.l"
+#line 187 "libmemcached/csl/scanner.l"
{ return JENKINS; }
YY_BREAK
case 62:
YY_RULE_SETUP
-#line 188 "libmemcached/csl/scanner.l"
+#line 189 "libmemcached/csl/scanner.l"
{
yyextra->hostname(yytext, yyleng, yylval->server);
return IPADDRESS;
YY_BREAK
case 63:
YY_RULE_SETUP
-#line 193 "libmemcached/csl/scanner.l"
+#line 194 "libmemcached/csl/scanner.l"
{
if (yyextra->is_server())
{
case 64:
/* rule 64 can match eol */
YY_RULE_SETUP
-#line 206 "libmemcached/csl/scanner.l"
+#line 207 "libmemcached/csl/scanner.l"
{
config_get_text(yyscanner)[yyleng -1]= 0;
yyextra->string_buffer(yytext +1, yyleng -2, yylval->string);
YY_BREAK
case 65:
YY_RULE_SETUP
-#line 212 "libmemcached/csl/scanner.l"
+#line 213 "libmemcached/csl/scanner.l"
{
yyextra->begin= yytext;
return UNKNOWN;
YY_BREAK
case 66:
YY_RULE_SETUP
-#line 217 "libmemcached/csl/scanner.l"
+#line 218 "libmemcached/csl/scanner.l"
ECHO;
YY_BREAK
-#line 1776 "libmemcached/csl/scanner.cc"
+#line 1780 "libmemcached/csl/scanner.cc"
case YY_STATE_EOF(INITIAL):
yyterminate();
else
{
- yy_size_t num_to_read =
+ int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
if ( b->yy_is_our_buffer )
{
- yy_size_t new_size = b->yy_buf_size * 2;
+ int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- yyg->yy_n_chars, num_to_read );
+ yyg->yy_n_chars, (size_t) num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
}
else
{ /* need more input */
- yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
+ int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
++yyg->yy_c_buf_p;
switch ( yy_get_next_buffer( yyscanner ) )
case EOB_ACT_END_OF_FILE:
{
if ( config_wrap(yyscanner ) )
- return 0;
+ return EOF;
if ( ! yyg->yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
*/
static void config_ensure_buffer_stack (yyscan_t yyscanner)
{
- yy_size_t num_to_alloc;
+ int num_to_alloc;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
if (!yyg->yy_buffer_stack) {
* @param yyscanner The scanner object.
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE config__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
+YY_BUFFER_STATE config__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
{
YY_BUFFER_STATE b;
char *buf;
- yy_size_t n, i;
+ yy_size_t n;
+ int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
#define YY_EXIT_FAILURE 2
#endif
-static __attribute__((noreturn)) void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
+static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
{
- (void) fprintf( stderr, "%s\n", msg );
- exit( YY_EXIT_FAILURE );
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
}
/* Redefine yyless() so it works in section 3 code. */
/** Get the length of the current token.
* @param yyscanner The scanner object.
*/
-yy_size_t config_get_leng (yyscan_t yyscanner)
+int config_get_leng (yyscan_t yyscanner)
{
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
return yyleng;
#define YYTABLES_NAME "yytables"
-#line 217 "libmemcached/csl/scanner.l"
+#line 218 "libmemcached/csl/scanner.l"