Updates from ddm4
[m6w6/libmemcached] / libmemcached / csl / parser.cc
index 9ad1e6590aa9daaa10558341c8ed6647578ddd99..6653819bcf8aac96f5201c29b185af9d01bb2301 100644 (file)
 #endif
 
 #ifndef __INTEL_COMPILER
+#ifndef __clang__
 #pragma GCC diagnostic ignored "-Wlogical-op"
 #endif
+#endif
 
 int conf_lex(YYSTYPE* lvalp, void* scanner);
 
@@ -119,7 +121,7 @@ inline void __config_error(Context *context, yyscan_t *scanner, const char *erro
 
 
 /* Line 268 of yacc.c  */
-#line 123 "libmemcached/csl/parser.cc"
+#line 125 "libmemcached/csl/parser.cc"
 
 /* Enabling traces.  */
 #ifndef YYDEBUG
@@ -232,7 +234,7 @@ inline void __config_error(Context *context, yyscan_t *scanner, const char *erro
 
 
 /* Line 343 of yacc.c  */
-#line 236 "libmemcached/csl/parser.cc"
+#line 238 "libmemcached/csl/parser.cc"
 
 #ifdef short
 # undef short
@@ -545,13 +547,13 @@ static const yytype_int8 yyrhs[] =
 /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
 static const yytype_uint16 yyrline[] =
 {
-       0,   193,   193,   194,   198,   200,   202,   204,   209,   214,
-     218,   222,   233,   243,   253,   262,   266,   270,   274,   278,
-     290,   294,   307,   320,   327,   334,   343,   349,   353,   357,
-     361,   365,   369,   373,   377,   381,   385,   389,   393,   400,
-     404,   408,   412,   416,   420,   424,   428,   432,   436,   440,
-     444,   451,   452,   457,   458,   463,   467,   471,   475,   479,
-     483,   487,   491,   495,   502,   506,   513,   517,   521
+       0,   195,   195,   196,   200,   202,   204,   206,   211,   216,
+     220,   224,   235,   245,   255,   264,   268,   272,   276,   280,
+     292,   296,   309,   322,   329,   336,   345,   351,   355,   359,
+     363,   367,   371,   375,   379,   383,   387,   391,   395,   402,
+     406,   410,   414,   418,   422,   426,   430,   434,   438,   442,
+     446,   453,   454,   459,   460,   465,   469,   473,   477,   481,
+     485,   489,   493,   497,   504,   508,   515,   519,   523
 };
 #endif
 
@@ -1562,28 +1564,28 @@ yyreduce:
         case 4:
 
 /* Line 1806 of yacc.c  */
-#line 199 "libmemcached/csl/parser.yy"
+#line 201 "libmemcached/csl/parser.yy"
     { }
     break;
 
   case 5:
 
 /* Line 1806 of yacc.c  */
-#line 201 "libmemcached/csl/parser.yy"
+#line 203 "libmemcached/csl/parser.yy"
     { }
     break;
 
   case 6:
 
 /* Line 1806 of yacc.c  */
-#line 203 "libmemcached/csl/parser.yy"
+#line 205 "libmemcached/csl/parser.yy"
     { }
     break;
 
   case 7:
 
 /* Line 1806 of yacc.c  */
-#line 205 "libmemcached/csl/parser.yy"
+#line 207 "libmemcached/csl/parser.yy"
     {
             context->set_end();
             YYACCEPT;
@@ -1593,7 +1595,7 @@ yyreduce:
   case 8:
 
 /* Line 1806 of yacc.c  */
-#line 210 "libmemcached/csl/parser.yy"
+#line 212 "libmemcached/csl/parser.yy"
     {
             context->rc= MEMCACHED_PARSE_USER_ERROR;
             parser_abort(context, "ERROR called directly");
@@ -1603,7 +1605,7 @@ yyreduce:
   case 9:
 
 /* Line 1806 of yacc.c  */
-#line 215 "libmemcached/csl/parser.yy"
+#line 217 "libmemcached/csl/parser.yy"
     {
             memcached_reset(context->memc);
           }
@@ -1612,7 +1614,7 @@ yyreduce:
   case 10:
 
 /* Line 1806 of yacc.c  */
-#line 219 "libmemcached/csl/parser.yy"
+#line 221 "libmemcached/csl/parser.yy"
     {
             yydebug= 1;
           }
@@ -1621,7 +1623,7 @@ yyreduce:
   case 11:
 
 /* Line 1806 of yacc.c  */
-#line 223 "libmemcached/csl/parser.yy"
+#line 225 "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)
             {
@@ -1633,7 +1635,7 @@ yyreduce:
   case 12:
 
 /* Line 1806 of yacc.c  */
-#line 234 "libmemcached/csl/parser.yy"
+#line 236 "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)))))
             {
@@ -1648,7 +1650,7 @@ yyreduce:
   case 13:
 
 /* Line 1806 of yacc.c  */
-#line 244 "libmemcached/csl/parser.yy"
+#line 246 "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)))))
             {
@@ -1663,7 +1665,7 @@ yyreduce:
   case 14:
 
 /* Line 1806 of yacc.c  */
-#line 254 "libmemcached/csl/parser.yy"
+#line 256 "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)))))
             {
@@ -1677,7 +1679,7 @@ yyreduce:
   case 15:
 
 /* Line 1806 of yacc.c  */
-#line 263 "libmemcached/csl/parser.yy"
+#line 265 "libmemcached/csl/parser.yy"
     {
             memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size);
           }
@@ -1686,7 +1688,7 @@ yyreduce:
   case 16:
 
 /* Line 1806 of yacc.c  */
-#line 267 "libmemcached/csl/parser.yy"
+#line 269 "libmemcached/csl/parser.yy"
     {
             context->memc->configure.initial_pool_size= uint32_t((yyvsp[(2) - (2)].number));
           }
@@ -1695,7 +1697,7 @@ yyreduce:
   case 17:
 
 /* Line 1806 of yacc.c  */
-#line 271 "libmemcached/csl/parser.yy"
+#line 273 "libmemcached/csl/parser.yy"
     {
             context->memc->configure.max_pool_size= uint32_t((yyvsp[(2) - (2)].number));
           }
@@ -1704,7 +1706,7 @@ yyreduce:
   case 19:
 
 /* Line 1806 of yacc.c  */
-#line 279 "libmemcached/csl/parser.yy"
+#line 281 "libmemcached/csl/parser.yy"
     {
             if (memcached_callback_get(context->memc, MEMCACHED_CALLBACK_PREFIX_KEY, NULL))
             {
@@ -1721,7 +1723,7 @@ yyreduce:
   case 20:
 
 /* Line 1806 of yacc.c  */
-#line 291 "libmemcached/csl/parser.yy"
+#line 293 "libmemcached/csl/parser.yy"
     {
             memcached_flag(*context->memc, MEMCACHED_FLAG_IS_FETCHING_VERSION, true);
           }
@@ -1730,7 +1732,7 @@ yyreduce:
   case 21:
 
 /* Line 1806 of yacc.c  */
-#line 295 "libmemcached/csl/parser.yy"
+#line 297 "libmemcached/csl/parser.yy"
     {
             // Check to see if DISTRIBUTION has already been set
             if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (2)].distribution))) != MEMCACHED_SUCCESS)
@@ -1748,7 +1750,7 @@ yyreduce:
   case 22:
 
 /* Line 1806 of yacc.c  */
-#line 308 "libmemcached/csl/parser.yy"
+#line 310 "libmemcached/csl/parser.yy"
     {
             // Check to see if DISTRIBUTION has already been set
             if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (4)].distribution))) != MEMCACHED_SUCCESS)
@@ -1766,7 +1768,7 @@ yyreduce:
   case 23:
 
 /* Line 1806 of yacc.c  */
-#line 321 "libmemcached/csl/parser.yy"
+#line 323 "libmemcached/csl/parser.yy"
     {
             if (context->set_hash((yyvsp[(2) - (2)].hash)) == false)
             {
@@ -1778,7 +1780,7 @@ yyreduce:
   case 24:
 
 /* Line 1806 of yacc.c  */
-#line 328 "libmemcached/csl/parser.yy"
+#line 330 "libmemcached/csl/parser.yy"
     {
             if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (2)].behavior), (yyvsp[(2) - (2)].number))) != MEMCACHED_SUCCESS)
             {
@@ -1790,7 +1792,7 @@ yyreduce:
   case 25:
 
 /* Line 1806 of yacc.c  */
-#line 335 "libmemcached/csl/parser.yy"
+#line 337 "libmemcached/csl/parser.yy"
     {
             if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (1)].behavior), true)) != MEMCACHED_SUCCESS)
             {
@@ -1804,7 +1806,7 @@ yyreduce:
   case 26:
 
 /* Line 1806 of yacc.c  */
-#line 344 "libmemcached/csl/parser.yy"
+#line 346 "libmemcached/csl/parser.yy"
     {
           }
     break;
@@ -1812,7 +1814,7 @@ yyreduce:
   case 27:
 
 /* Line 1806 of yacc.c  */
-#line 350 "libmemcached/csl/parser.yy"
+#line 352 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS;
           }
@@ -1821,7 +1823,7 @@ yyreduce:
   case 28:
 
 /* Line 1806 of yacc.c  */
-#line 354 "libmemcached/csl/parser.yy"
+#line 356 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT;
           }
@@ -1830,7 +1832,7 @@ yyreduce:
   case 29:
 
 /* Line 1806 of yacc.c  */
-#line 358 "libmemcached/csl/parser.yy"
+#line 360 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK;
           }
@@ -1839,7 +1841,7 @@ yyreduce:
   case 30:
 
 /* Line 1806 of yacc.c  */
-#line 362 "libmemcached/csl/parser.yy"
+#line 364 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK;
           }
@@ -1848,7 +1850,7 @@ yyreduce:
   case 31:
 
 /* Line 1806 of yacc.c  */
-#line 366 "libmemcached/csl/parser.yy"
+#line 368 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH;
           }
@@ -1857,7 +1859,7 @@ yyreduce:
   case 32:
 
 /* Line 1806 of yacc.c  */
-#line 370 "libmemcached/csl/parser.yy"
+#line 372 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS;
           }
@@ -1866,7 +1868,7 @@ yyreduce:
   case 33:
 
 /* Line 1806 of yacc.c  */
-#line 374 "libmemcached/csl/parser.yy"
+#line 376 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT;
           }
@@ -1875,7 +1877,7 @@ yyreduce:
   case 34:
 
 /* Line 1806 of yacc.c  */
-#line 378 "libmemcached/csl/parser.yy"
+#line 380 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT;
           }
@@ -1884,7 +1886,7 @@ yyreduce:
   case 35:
 
 /* Line 1806 of yacc.c  */
-#line 382 "libmemcached/csl/parser.yy"
+#line 384 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT;
           }
@@ -1893,7 +1895,7 @@ yyreduce:
   case 36:
 
 /* Line 1806 of yacc.c  */
-#line 386 "libmemcached/csl/parser.yy"
+#line 388 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_SND_TIMEOUT;
           }
@@ -1902,7 +1904,7 @@ yyreduce:
   case 37:
 
 /* Line 1806 of yacc.c  */
-#line 390 "libmemcached/csl/parser.yy"
+#line 392 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE;
           }
@@ -1911,7 +1913,7 @@ yyreduce:
   case 38:
 
 /* Line 1806 of yacc.c  */
-#line 394 "libmemcached/csl/parser.yy"
+#line 396 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE;
           }
@@ -1920,7 +1922,7 @@ yyreduce:
   case 39:
 
 /* Line 1806 of yacc.c  */
-#line 401 "libmemcached/csl/parser.yy"
+#line 403 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL;
           }
@@ -1929,7 +1931,7 @@ yyreduce:
   case 40:
 
 /* Line 1806 of yacc.c  */
-#line 405 "libmemcached/csl/parser.yy"
+#line 407 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
           }
@@ -1938,7 +1940,7 @@ yyreduce:
   case 41:
 
 /* Line 1806 of yacc.c  */
-#line 409 "libmemcached/csl/parser.yy"
+#line 411 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
           }
@@ -1947,7 +1949,7 @@ yyreduce:
   case 42:
 
 /* Line 1806 of yacc.c  */
-#line 413 "libmemcached/csl/parser.yy"
+#line 415 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY;
           }
@@ -1956,7 +1958,7 @@ yyreduce:
   case 43:
 
 /* Line 1806 of yacc.c  */
-#line 417 "libmemcached/csl/parser.yy"
+#line 419 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ;
           }
@@ -1965,7 +1967,7 @@ yyreduce:
   case 44:
 
 /* Line 1806 of yacc.c  */
-#line 421 "libmemcached/csl/parser.yy"
+#line 423 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS;
           }
@@ -1974,7 +1976,7 @@ yyreduce:
   case 45:
 
 /* Line 1806 of yacc.c  */
-#line 425 "libmemcached/csl/parser.yy"
+#line 427 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS;
           }
@@ -1983,7 +1985,7 @@ yyreduce:
   case 46:
 
 /* Line 1806 of yacc.c  */
-#line 429 "libmemcached/csl/parser.yy"
+#line 431 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY;
           }
@@ -1992,7 +1994,7 @@ yyreduce:
   case 47:
 
 /* Line 1806 of yacc.c  */
-#line 433 "libmemcached/csl/parser.yy"
+#line 435 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE;
           }
@@ -2001,7 +2003,7 @@ yyreduce:
   case 48:
 
 /* Line 1806 of yacc.c  */
-#line 437 "libmemcached/csl/parser.yy"
+#line 439 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE;
           }
@@ -2010,7 +2012,7 @@ yyreduce:
   case 49:
 
 /* Line 1806 of yacc.c  */
-#line 441 "libmemcached/csl/parser.yy"
+#line 443 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP;
           }
@@ -2019,7 +2021,7 @@ yyreduce:
   case 50:
 
 /* Line 1806 of yacc.c  */
-#line 445 "libmemcached/csl/parser.yy"
+#line 447 "libmemcached/csl/parser.yy"
     {
             (yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY;
           }
@@ -2028,35 +2030,35 @@ yyreduce:
   case 51:
 
 /* Line 1806 of yacc.c  */
-#line 451 "libmemcached/csl/parser.yy"
+#line 453 "libmemcached/csl/parser.yy"
     { (yyval.number)= MEMCACHED_DEFAULT_PORT;}
     break;
 
   case 52:
 
 /* Line 1806 of yacc.c  */
-#line 453 "libmemcached/csl/parser.yy"
+#line 455 "libmemcached/csl/parser.yy"
     { }
     break;
 
   case 53:
 
 /* Line 1806 of yacc.c  */
-#line 457 "libmemcached/csl/parser.yy"
+#line 459 "libmemcached/csl/parser.yy"
     { (yyval.number)= 1; }
     break;
 
   case 54:
 
 /* Line 1806 of yacc.c  */
-#line 459 "libmemcached/csl/parser.yy"
+#line 461 "libmemcached/csl/parser.yy"
     { }
     break;
 
   case 55:
 
 /* Line 1806 of yacc.c  */
-#line 464 "libmemcached/csl/parser.yy"
+#line 466 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_MD5;
           }
@@ -2065,7 +2067,7 @@ yyreduce:
   case 56:
 
 /* Line 1806 of yacc.c  */
-#line 468 "libmemcached/csl/parser.yy"
+#line 470 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_CRC;
           }
@@ -2074,7 +2076,7 @@ yyreduce:
   case 57:
 
 /* Line 1806 of yacc.c  */
-#line 472 "libmemcached/csl/parser.yy"
+#line 474 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_FNV1_64;
           }
@@ -2083,7 +2085,7 @@ yyreduce:
   case 58:
 
 /* Line 1806 of yacc.c  */
-#line 476 "libmemcached/csl/parser.yy"
+#line 478 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_FNV1A_64;
           }
@@ -2092,7 +2094,7 @@ yyreduce:
   case 59:
 
 /* Line 1806 of yacc.c  */
-#line 480 "libmemcached/csl/parser.yy"
+#line 482 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_FNV1_32;
           }
@@ -2101,7 +2103,7 @@ yyreduce:
   case 60:
 
 /* Line 1806 of yacc.c  */
-#line 484 "libmemcached/csl/parser.yy"
+#line 486 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_FNV1A_32;
           }
@@ -2110,7 +2112,7 @@ yyreduce:
   case 61:
 
 /* Line 1806 of yacc.c  */
-#line 488 "libmemcached/csl/parser.yy"
+#line 490 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_HSIEH;
           }
@@ -2119,7 +2121,7 @@ yyreduce:
   case 62:
 
 /* Line 1806 of yacc.c  */
-#line 492 "libmemcached/csl/parser.yy"
+#line 494 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_MURMUR;
           }
@@ -2128,7 +2130,7 @@ yyreduce:
   case 63:
 
 /* Line 1806 of yacc.c  */
-#line 496 "libmemcached/csl/parser.yy"
+#line 498 "libmemcached/csl/parser.yy"
     {
             (yyval.hash)= MEMCACHED_HASH_JENKINS;
           }
@@ -2137,7 +2139,7 @@ yyreduce:
   case 64:
 
 /* Line 1806 of yacc.c  */
-#line 503 "libmemcached/csl/parser.yy"
+#line 505 "libmemcached/csl/parser.yy"
     {
             (yyval.string)= (yyvsp[(1) - (1)].string);
           }
@@ -2146,7 +2148,7 @@ yyreduce:
   case 65:
 
 /* Line 1806 of yacc.c  */
-#line 507 "libmemcached/csl/parser.yy"
+#line 509 "libmemcached/csl/parser.yy"
     {
             (yyval.string)= (yyvsp[(1) - (1)].string);
           }
@@ -2155,7 +2157,7 @@ yyreduce:
   case 66:
 
 /* Line 1806 of yacc.c  */
-#line 514 "libmemcached/csl/parser.yy"
+#line 516 "libmemcached/csl/parser.yy"
     {
             (yyval.distribution)= MEMCACHED_DISTRIBUTION_CONSISTENT;
           }
@@ -2164,7 +2166,7 @@ yyreduce:
   case 67:
 
 /* Line 1806 of yacc.c  */
-#line 518 "libmemcached/csl/parser.yy"
+#line 520 "libmemcached/csl/parser.yy"
     {
             (yyval.distribution)= MEMCACHED_DISTRIBUTION_MODULA;
           }
@@ -2173,7 +2175,7 @@ yyreduce:
   case 68:
 
 /* Line 1806 of yacc.c  */
-#line 522 "libmemcached/csl/parser.yy"
+#line 524 "libmemcached/csl/parser.yy"
     {
             (yyval.distribution)= MEMCACHED_DISTRIBUTION_RANDOM;
           }
@@ -2182,7 +2184,7 @@ yyreduce:
 
 
 /* Line 1806 of yacc.c  */
-#line 2186 "libmemcached/csl/parser.cc"
+#line 2188 "libmemcached/csl/parser.cc"
       default: break;
     }
   /* User semantic actions sometimes alter yychar, and that requires
@@ -2413,7 +2415,7 @@ yyreturn:
 
 
 /* Line 2067 of yacc.c  */
-#line 527 "libmemcached/csl/parser.yy"
+#line 529 "libmemcached/csl/parser.yy"
  
 
 void Context::start()