X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fparser.cc;h=096a31119b374a3fdf2140331c0d433208b3b506;hb=12a07e58df95bb8dbe167e4157b29c910177ade8;hp=e216daa8ccb96c402352f5213ee637c51fc7201b;hpb=fd55b335a4d6530382bb95542479332c87de1d30;p=awesomized%2Flibmemcached diff --git a/libmemcached/options/parser.cc b/libmemcached/options/parser.cc index e216daa8..096a3111 100644 --- a/libmemcached/options/parser.cc +++ b/libmemcached/options/parser.cc @@ -78,10 +78,6 @@ #line 36 "libmemcached/options/parser.yy" -#include - -#include - #include #include @@ -106,7 +102,7 @@ inline void config_error(Context *context, yyscan_t *scanner, const char *error) /* Line 189 of yacc.c */ -#line 110 "libmemcached/options/parser.cc" +#line 106 "libmemcached/options/parser.cc" /* Enabling traces. */ #ifndef YYDEBUG @@ -218,7 +214,7 @@ inline void config_error(Context *context, yyscan_t *scanner, const char *error) /* Line 264 of yacc.c */ -#line 222 "libmemcached/options/parser.cc" +#line 218 "libmemcached/options/parser.cc" #ifdef short # undef short @@ -442,7 +438,7 @@ union yyalloc /* YYNRULES -- Number of rules. */ #define YYNRULES 67 /* YYNRULES -- Number of states. */ -#define YYNSTATES 84 +#define YYNSTATES 85 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 @@ -495,12 +491,12 @@ static const yytype_uint8 yytranslate[] = static const yytype_uint8 yyprhs[] = { 0, 0, 3, 5, 9, 11, 13, 15, 17, 19, - 21, 23, 27, 32, 37, 40, 43, 46, 49, 51, - 54, 57, 62, 65, 68, 70, 72, 74, 76, 78, - 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, - 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, - 120, 121, 123, 124, 126, 128, 130, 132, 134, 136, - 138, 140, 142, 144, 146, 148, 150, 152 + 21, 23, 27, 32, 37, 41, 44, 47, 50, 52, + 55, 58, 63, 66, 69, 71, 73, 75, 77, 79, + 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, + 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, + 121, 122, 124, 125, 127, 129, 131, 133, 135, 137, + 139, 141, 143, 145, 147, 149, 151, 153 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ @@ -509,31 +505,31 @@ static const yytype_int8 yyrhs[] = 76, 0, -1, 77, -1, 76, 74, 77, -1, 78, -1, 3, -1, 10, -1, 4, -1, 5, -1, 6, -1, 7, -1, 8, 74, 85, -1, 11, 70, 82, - 83, -1, 11, 69, 82, 83, -1, 12, 85, -1, - 9, 85, -1, 47, 66, -1, 48, 66, -1, 79, - -1, 46, 85, -1, 20, 86, -1, 20, 86, 63, - 84, -1, 21, 84, -1, 80, 66, -1, 81, -1, - 40, -1, 33, -1, 19, -1, 25, -1, 23, -1, - 24, -1, 29, -1, 30, -1, 32, -1, 34, -1, - 35, -1, 36, -1, 37, -1, 17, -1, 18, -1, - 22, -1, 28, -1, 31, -1, 38, -1, 39, -1, - 45, -1, 43, -1, 44, -1, 41, -1, 42, -1, - -1, 67, -1, -1, 68, -1, 49, -1, 50, -1, - 51, -1, 52, -1, 53, -1, 54, -1, 55, -1, - 56, -1, 57, -1, 71, -1, 72, -1, 58, -1, - 59, -1, 60, -1 + 83, -1, 11, 69, 82, 83, -1, 12, 85, 83, + -1, 9, 85, -1, 47, 66, -1, 48, 66, -1, + 79, -1, 46, 85, -1, 20, 86, -1, 20, 86, + 63, 84, -1, 21, 84, -1, 80, 66, -1, 81, + -1, 40, -1, 33, -1, 19, -1, 25, -1, 23, + -1, 24, -1, 29, -1, 30, -1, 32, -1, 34, + -1, 35, -1, 36, -1, 37, -1, 17, -1, 18, + -1, 22, -1, 28, -1, 31, -1, 38, -1, 39, + -1, 45, -1, 43, -1, 44, -1, 41, -1, 42, + -1, -1, 67, -1, -1, 68, -1, 49, -1, 50, + -1, 51, -1, 52, -1, 53, -1, 54, -1, 55, + -1, 56, -1, 57, -1, 71, -1, 72, -1, 58, + -1, 59, -1, 60, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 162, 162, 163, 167, 169, 171, 173, 178, 183, - 187, 191, 202, 210, 218, 225, 229, 233, 237, 241, - 248, 255, 266, 273, 280, 287, 293, 297, 301, 305, - 309, 313, 317, 321, 325, 329, 333, 337, 344, 348, - 352, 356, 360, 364, 368, 372, 376, 380, 384, 388, - 395, 396, 401, 402, 407, 411, 415, 419, 423, 427, - 431, 435, 439, 446, 450, 458, 462, 466 + 0, 158, 158, 159, 163, 165, 167, 169, 174, 179, + 183, 187, 198, 206, 214, 221, 225, 229, 233, 237, + 244, 251, 262, 269, 276, 283, 289, 293, 297, 301, + 305, 309, 313, 317, 321, 325, 329, 333, 340, 344, + 348, 352, 356, 360, 364, 368, 372, 376, 380, 384, + 391, 392, 397, 398, 403, 407, 411, 415, 419, 423, + 427, 431, 435, 442, 446, 457, 461, 465 }; #endif @@ -595,7 +591,7 @@ static const yytype_uint8 yyr1[] = static const yytype_uint8 yyr2[] = { 0, 2, 1, 3, 1, 1, 1, 1, 1, 1, - 1, 3, 4, 4, 2, 2, 2, 2, 1, 2, + 1, 3, 4, 4, 3, 2, 2, 2, 1, 2, 2, 4, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -613,16 +609,16 @@ static const yytype_uint8 yydefact[] = 41, 31, 32, 42, 33, 26, 34, 35, 36, 37, 43, 44, 25, 48, 49, 46, 47, 45, 0, 0, 0, 0, 2, 4, 18, 0, 24, 0, 63, 64, - 15, 50, 50, 14, 65, 66, 67, 20, 54, 55, + 15, 50, 50, 52, 65, 66, 67, 20, 54, 55, 56, 57, 58, 59, 60, 61, 62, 22, 19, 16, - 17, 1, 0, 23, 11, 51, 52, 52, 0, 3, - 53, 13, 12, 21 + 17, 1, 0, 23, 11, 51, 52, 52, 53, 14, + 0, 3, 13, 12, 21 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { - -1, 41, 42, 43, 44, 45, 46, 76, 81, 67, + -1, 41, 42, 43, 44, 45, 46, 76, 79, 67, 50, 57 }; @@ -635,17 +631,17 @@ static const yytype_int8 yypact[] = -24, -61, -61, -61, -47, 13, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -24, -41, - -15, 0, -61, -61, -61, -13, -61, -24, -61, -61, - -61, -12, -12, -61, -61, -61, -61, -9, -61, -61, + -15, 0, -61, -61, -61, -11, -61, -24, -61, -61, + -61, -10, -10, -12, -61, -61, -61, -5, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, - -61, -61, -2, -61, -61, -61, -11, -11, 13, -61, - -61, -61, -61, -61 + -61, -61, -2, -61, -61, -61, -12, -12, -61, -61, + 13, -61, -61, -61, -61 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { - -61, -61, -16, -61, -61, -61, -61, 6, -18, -7, + -61, -61, -13, -61, -61, -61, -61, 8, -23, -9, 14, -61 }; @@ -661,9 +657,9 @@ static const yytype_uint8 yytable[] = 16, 17, 18, 19, 53, 69, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 48, 49, 51, - 52, 70, 68, 73, 78, 75, 79, 80, 77, 82, - 0, 74, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 83, 0, 0, 72 + 52, 70, 68, 82, 83, 73, 78, 75, 80, 81, + 77, 74, 58, 59, 60, 61, 62, 63, 64, 65, + 66, 84, 0, 0, 72 }; static const yytype_int8 yycheck[] = @@ -673,9 +669,9 @@ static const yytype_int8 yycheck[] = 22, 23, 24, 25, 10, 66, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 71, 72, 69, - 70, 66, 38, 66, 63, 67, 72, 68, 52, 77, - -1, 47, 49, 50, 51, 52, 53, 54, 55, 56, - 57, 78, -1, -1, 74 + 70, 66, 38, 76, 77, 66, 68, 67, 63, 72, + 52, 47, 49, 50, 51, 52, 53, 54, 55, 56, + 57, 80, -1, -1, 74 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing @@ -689,8 +685,8 @@ static const yytype_uint8 yystos[] = 48, 76, 77, 78, 79, 80, 81, 74, 71, 72, 85, 69, 70, 85, 58, 59, 60, 86, 49, 50, 51, 52, 53, 54, 55, 56, 57, 84, 85, 66, - 66, 0, 74, 66, 85, 67, 82, 82, 63, 77, - 68, 83, 83, 84 + 66, 0, 74, 66, 85, 67, 82, 82, 68, 83, + 63, 77, 83, 83, 84 }; #define yyerrok (yyerrstatus = 0) @@ -1525,28 +1521,28 @@ yyreduce: case 4: /* Line 1464 of yacc.c */ -#line 168 "libmemcached/options/parser.yy" +#line 164 "libmemcached/options/parser.yy" { ;} break; case 5: /* Line 1464 of yacc.c */ -#line 170 "libmemcached/options/parser.yy" +#line 166 "libmemcached/options/parser.yy" { ;} break; case 6: /* Line 1464 of yacc.c */ -#line 172 "libmemcached/options/parser.yy" +#line 168 "libmemcached/options/parser.yy" { ;} break; case 7: /* Line 1464 of yacc.c */ -#line 174 "libmemcached/options/parser.yy" +#line 170 "libmemcached/options/parser.yy" { context->set_end(); YYACCEPT; @@ -1556,7 +1552,7 @@ yyreduce: case 8: /* Line 1464 of yacc.c */ -#line 179 "libmemcached/options/parser.yy" +#line 175 "libmemcached/options/parser.yy" { context->rc= MEMCACHED_PARSE_USER_ERROR; parser_abort(context, NULL); @@ -1566,7 +1562,7 @@ yyreduce: case 9: /* Line 1464 of yacc.c */ -#line 184 "libmemcached/options/parser.yy" +#line 180 "libmemcached/options/parser.yy" { memcached_reset(context->memc); ;} @@ -1575,7 +1571,7 @@ yyreduce: case 10: /* Line 1464 of yacc.c */ -#line 188 "libmemcached/options/parser.yy" +#line 184 "libmemcached/options/parser.yy" { yydebug= 1; ;} @@ -1584,7 +1580,7 @@ yyreduce: case 11: /* Line 1464 of yacc.c */ -#line 192 "libmemcached/options/parser.yy" +#line 188 "libmemcached/options/parser.yy" { if ((context->rc= memcached_parse_configure_file(*context->memc, (yyvsp[(3) - (3)].string).c_str, (yyvsp[(3) - (3)].string).size)) != MEMCACHED_SUCCESS) { @@ -1596,7 +1592,7 @@ yyreduce: case 12: /* Line 1464 of yacc.c */ -#line 203 "libmemcached/options/parser.yy" +#line 199 "libmemcached/options/parser.yy" { if (memcached_failed(context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(3) - (4)].number), (yyvsp[(4) - (4)].number)))) { @@ -1609,7 +1605,7 @@ yyreduce: case 13: /* Line 1464 of yacc.c */ -#line 211 "libmemcached/options/parser.yy" +#line 207 "libmemcached/options/parser.yy" { if (memcached_failed(context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(3) - (4)].number), (yyvsp[(4) - (4)].number)))) { @@ -1622,9 +1618,9 @@ yyreduce: case 14: /* Line 1464 of yacc.c */ -#line 219 "libmemcached/options/parser.yy" +#line 215 "libmemcached/options/parser.yy" { - if (memcached_failed(context->rc= memcached_server_add_unix_socket(context->memc, (yyvsp[(2) - (2)].string).c_str))) + if (memcached_failed(context->rc= memcached_server_add_unix_socket_with_weight(context->memc, (yyvsp[(2) - (3)].string).c_str, (yyvsp[(3) - (3)].number)))) { parser_abort(context, NULL); } @@ -1634,7 +1630,7 @@ yyreduce: case 15: /* Line 1464 of yacc.c */ -#line 226 "libmemcached/options/parser.yy" +#line 222 "libmemcached/options/parser.yy" { memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size); ;} @@ -1643,7 +1639,7 @@ yyreduce: case 16: /* Line 1464 of yacc.c */ -#line 230 "libmemcached/options/parser.yy" +#line 226 "libmemcached/options/parser.yy" { context->memc->configure.initial_pool_size= (yyvsp[(2) - (2)].number); ;} @@ -1652,7 +1648,7 @@ yyreduce: case 17: /* Line 1464 of yacc.c */ -#line 234 "libmemcached/options/parser.yy" +#line 230 "libmemcached/options/parser.yy" { context->memc->configure.max_pool_size= (yyvsp[(2) - (2)].number); ;} @@ -1661,7 +1657,7 @@ yyreduce: case 19: /* Line 1464 of yacc.c */ -#line 242 "libmemcached/options/parser.yy" +#line 238 "libmemcached/options/parser.yy" { if ((context->rc= memcached_set_namespace(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size)) != MEMCACHED_SUCCESS) { @@ -1673,7 +1669,7 @@ yyreduce: case 20: /* Line 1464 of yacc.c */ -#line 249 "libmemcached/options/parser.yy" +#line 245 "libmemcached/options/parser.yy" { if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (2)].distribution))) != MEMCACHED_SUCCESS) { @@ -1685,7 +1681,7 @@ yyreduce: case 21: /* Line 1464 of yacc.c */ -#line 256 "libmemcached/options/parser.yy" +#line 252 "libmemcached/options/parser.yy" { if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (4)].distribution))) != MEMCACHED_SUCCESS) { @@ -1701,7 +1697,7 @@ yyreduce: case 22: /* Line 1464 of yacc.c */ -#line 267 "libmemcached/options/parser.yy" +#line 263 "libmemcached/options/parser.yy" { if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, (yyvsp[(2) - (2)].hash))) != MEMCACHED_SUCCESS) { @@ -1713,7 +1709,7 @@ yyreduce: case 23: /* Line 1464 of yacc.c */ -#line 274 "libmemcached/options/parser.yy" +#line 270 "libmemcached/options/parser.yy" { if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (2)].behavior), (yyvsp[(2) - (2)].number))) != MEMCACHED_SUCCESS) { @@ -1725,7 +1721,7 @@ yyreduce: case 24: /* Line 1464 of yacc.c */ -#line 281 "libmemcached/options/parser.yy" +#line 277 "libmemcached/options/parser.yy" { if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (1)].behavior), true)) != MEMCACHED_SUCCESS) { @@ -1737,7 +1733,7 @@ yyreduce: case 25: /* Line 1464 of yacc.c */ -#line 288 "libmemcached/options/parser.yy" +#line 284 "libmemcached/options/parser.yy" { ;} break; @@ -1745,7 +1741,7 @@ yyreduce: case 26: /* Line 1464 of yacc.c */ -#line 294 "libmemcached/options/parser.yy" +#line 290 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS; ;} @@ -1754,7 +1750,7 @@ yyreduce: case 27: /* Line 1464 of yacc.c */ -#line 298 "libmemcached/options/parser.yy" +#line 294 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT; ;} @@ -1763,7 +1759,7 @@ yyreduce: case 28: /* Line 1464 of yacc.c */ -#line 302 "libmemcached/options/parser.yy" +#line 298 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK; ;} @@ -1772,7 +1768,7 @@ yyreduce: case 29: /* Line 1464 of yacc.c */ -#line 306 "libmemcached/options/parser.yy" +#line 302 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK; ;} @@ -1781,7 +1777,7 @@ yyreduce: case 30: /* Line 1464 of yacc.c */ -#line 310 "libmemcached/options/parser.yy" +#line 306 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH; ;} @@ -1790,7 +1786,7 @@ yyreduce: case 31: /* Line 1464 of yacc.c */ -#line 314 "libmemcached/options/parser.yy" +#line 310 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS; ;} @@ -1799,7 +1795,7 @@ yyreduce: case 32: /* Line 1464 of yacc.c */ -#line 318 "libmemcached/options/parser.yy" +#line 314 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT; ;} @@ -1808,7 +1804,7 @@ yyreduce: case 33: /* Line 1464 of yacc.c */ -#line 322 "libmemcached/options/parser.yy" +#line 318 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT; ;} @@ -1817,7 +1813,7 @@ yyreduce: case 34: /* Line 1464 of yacc.c */ -#line 326 "libmemcached/options/parser.yy" +#line 322 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT; ;} @@ -1826,7 +1822,7 @@ yyreduce: case 35: /* Line 1464 of yacc.c */ -#line 330 "libmemcached/options/parser.yy" +#line 326 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_SND_TIMEOUT; ;} @@ -1835,7 +1831,7 @@ yyreduce: case 36: /* Line 1464 of yacc.c */ -#line 334 "libmemcached/options/parser.yy" +#line 330 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE; ;} @@ -1844,7 +1840,7 @@ yyreduce: case 37: /* Line 1464 of yacc.c */ -#line 338 "libmemcached/options/parser.yy" +#line 334 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE; ;} @@ -1853,7 +1849,7 @@ yyreduce: case 38: /* Line 1464 of yacc.c */ -#line 345 "libmemcached/options/parser.yy" +#line 341 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL; ;} @@ -1862,7 +1858,7 @@ yyreduce: case 39: /* Line 1464 of yacc.c */ -#line 349 "libmemcached/options/parser.yy" +#line 345 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS; ;} @@ -1871,7 +1867,7 @@ yyreduce: case 40: /* Line 1464 of yacc.c */ -#line 353 "libmemcached/options/parser.yy" +#line 349 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY; ;} @@ -1880,7 +1876,7 @@ yyreduce: case 41: /* Line 1464 of yacc.c */ -#line 357 "libmemcached/options/parser.yy" +#line 353 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY; ;} @@ -1889,7 +1885,7 @@ yyreduce: case 42: /* Line 1464 of yacc.c */ -#line 361 "libmemcached/options/parser.yy" +#line 357 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ; ;} @@ -1898,7 +1894,7 @@ yyreduce: case 43: /* Line 1464 of yacc.c */ -#line 365 "libmemcached/options/parser.yy" +#line 361 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS; ;} @@ -1907,7 +1903,7 @@ yyreduce: case 44: /* Line 1464 of yacc.c */ -#line 369 "libmemcached/options/parser.yy" +#line 365 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS; ;} @@ -1916,7 +1912,7 @@ yyreduce: case 45: /* Line 1464 of yacc.c */ -#line 373 "libmemcached/options/parser.yy" +#line 369 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY; ;} @@ -1925,7 +1921,7 @@ yyreduce: case 46: /* Line 1464 of yacc.c */ -#line 377 "libmemcached/options/parser.yy" +#line 373 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE; ;} @@ -1934,7 +1930,7 @@ yyreduce: case 47: /* Line 1464 of yacc.c */ -#line 381 "libmemcached/options/parser.yy" +#line 377 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE; ;} @@ -1943,7 +1939,7 @@ yyreduce: case 48: /* Line 1464 of yacc.c */ -#line 385 "libmemcached/options/parser.yy" +#line 381 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP; ;} @@ -1952,7 +1948,7 @@ yyreduce: case 49: /* Line 1464 of yacc.c */ -#line 389 "libmemcached/options/parser.yy" +#line 385 "libmemcached/options/parser.yy" { (yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY; ;} @@ -1961,35 +1957,35 @@ yyreduce: case 50: /* Line 1464 of yacc.c */ -#line 395 "libmemcached/options/parser.yy" +#line 391 "libmemcached/options/parser.yy" { (yyval.number)= MEMCACHED_DEFAULT_PORT;;} break; case 51: /* Line 1464 of yacc.c */ -#line 397 "libmemcached/options/parser.yy" +#line 393 "libmemcached/options/parser.yy" { ;} break; case 52: /* Line 1464 of yacc.c */ -#line 401 "libmemcached/options/parser.yy" +#line 397 "libmemcached/options/parser.yy" { (yyval.number)= 1; ;} break; case 53: /* Line 1464 of yacc.c */ -#line 403 "libmemcached/options/parser.yy" +#line 399 "libmemcached/options/parser.yy" { ;} break; case 54: /* Line 1464 of yacc.c */ -#line 408 "libmemcached/options/parser.yy" +#line 404 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_MD5; ;} @@ -1998,7 +1994,7 @@ yyreduce: case 55: /* Line 1464 of yacc.c */ -#line 412 "libmemcached/options/parser.yy" +#line 408 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_CRC; ;} @@ -2007,7 +2003,7 @@ yyreduce: case 56: /* Line 1464 of yacc.c */ -#line 416 "libmemcached/options/parser.yy" +#line 412 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_FNV1_64; ;} @@ -2016,7 +2012,7 @@ yyreduce: case 57: /* Line 1464 of yacc.c */ -#line 420 "libmemcached/options/parser.yy" +#line 416 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_FNV1A_64; ;} @@ -2025,7 +2021,7 @@ yyreduce: case 58: /* Line 1464 of yacc.c */ -#line 424 "libmemcached/options/parser.yy" +#line 420 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_FNV1_32; ;} @@ -2034,7 +2030,7 @@ yyreduce: case 59: /* Line 1464 of yacc.c */ -#line 428 "libmemcached/options/parser.yy" +#line 424 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_FNV1A_32; ;} @@ -2043,7 +2039,7 @@ yyreduce: case 60: /* Line 1464 of yacc.c */ -#line 432 "libmemcached/options/parser.yy" +#line 428 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_HSIEH; ;} @@ -2052,7 +2048,7 @@ yyreduce: case 61: /* Line 1464 of yacc.c */ -#line 436 "libmemcached/options/parser.yy" +#line 432 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_MURMUR; ;} @@ -2061,7 +2057,7 @@ yyreduce: case 62: /* Line 1464 of yacc.c */ -#line 440 "libmemcached/options/parser.yy" +#line 436 "libmemcached/options/parser.yy" { (yyval.hash)= MEMCACHED_HASH_JENKINS; ;} @@ -2070,7 +2066,7 @@ yyreduce: case 63: /* Line 1464 of yacc.c */ -#line 447 "libmemcached/options/parser.yy" +#line 443 "libmemcached/options/parser.yy" { (yyval.string)= (yyvsp[(1) - (1)].string); ;} @@ -2079,17 +2075,20 @@ yyreduce: case 64: /* Line 1464 of yacc.c */ -#line 451 "libmemcached/options/parser.yy" +#line 447 "libmemcached/options/parser.yy" { + (yyval.string)= (yyvsp[(1) - (1)].string); + #if 0 (yyval.string).c_str= (yyvsp[(1) - (1)].string).c_str +1; // +1 to move use passed the initial quote (yyval.string).size= (yyvsp[(1) - (1)].string).size -2; // -2 removes the begin and end quote + #endif ;} break; case 65: /* Line 1464 of yacc.c */ -#line 459 "libmemcached/options/parser.yy" +#line 458 "libmemcached/options/parser.yy" { (yyval.distribution)= MEMCACHED_DISTRIBUTION_CONSISTENT; ;} @@ -2098,7 +2097,7 @@ yyreduce: case 66: /* Line 1464 of yacc.c */ -#line 463 "libmemcached/options/parser.yy" +#line 462 "libmemcached/options/parser.yy" { (yyval.distribution)= MEMCACHED_DISTRIBUTION_MODULA; ;} @@ -2107,7 +2106,7 @@ yyreduce: case 67: /* Line 1464 of yacc.c */ -#line 467 "libmemcached/options/parser.yy" +#line 466 "libmemcached/options/parser.yy" { (yyval.distribution)= MEMCACHED_DISTRIBUTION_RANDOM; ;} @@ -2116,7 +2115,7 @@ yyreduce: /* Line 1464 of yacc.c */ -#line 2120 "libmemcached/options/parser.cc" +#line 2119 "libmemcached/options/parser.cc" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -2328,7 +2327,7 @@ yyreturn: /* Line 1684 of yacc.c */ -#line 472 "libmemcached/options/parser.yy" +#line 471 "libmemcached/options/parser.yy" void Context::start()