~trond-norbye/libmemcached/fragment-read-write

« back to all changes in this revision

Viewing changes to libmemcached/options/parser.cc

  • Committer: Brian Aker
  • Date: 2011-05-24 20:43:14 UTC
  • mfrom: (929.1.110 libmemcached-build)
  • Revision ID: brian@tangent.org-20110524204314-9ag1kkk4c1a6b3z3
Merge in local trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
#include <libmemcached/common.h>
86
86
#include <libmemcached/options/context.h>
87
 
#include <libmemcached/options/string.h>
88
87
#include <libmemcached/options/symbol.h>
89
88
#include <libmemcached/options/scanner.h>
90
89
 
103
102
 
104
103
 
105
104
/* Line 189 of yacc.c  */
106
 
#line 107 "libmemcached/options/parser.cc"
 
105
#line 106 "libmemcached/options/parser.cc"
107
106
 
108
107
/* Enabling traces.  */
109
108
#ifndef YYDEBUG
214
213
 
215
214
 
216
215
/* Line 264 of yacc.c  */
217
 
#line 218 "libmemcached/options/parser.cc"
 
216
#line 217 "libmemcached/options/parser.cc"
218
217
 
219
218
#ifdef short
220
219
# undef short
523
522
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
524
523
static const yytype_uint16 yyrline[] =
525
524
{
526
 
       0,   156,   156,   157,   161,   163,   165,   167,   172,   177,
527
 
     181,   185,   196,   204,   212,   216,   220,   224,   228,   235,
528
 
     242,   253,   260,   267,   274,   280,   284,   288,   292,   296,
529
 
     300,   304,   308,   312,   316,   320,   324,   331,   335,   339,
530
 
     343,   347,   351,   355,   359,   363,   367,   371,   375,   382,
531
 
     383,   388,   389,   394,   398,   402,   406,   410,   414,   418,
532
 
     422,   426,   433,   437,   445,   449,   453
 
525
       0,   155,   155,   156,   160,   162,   164,   166,   171,   176,
 
526
     180,   184,   195,   203,   211,   215,   219,   223,   227,   234,
 
527
     241,   252,   259,   266,   273,   279,   283,   287,   291,   295,
 
528
     299,   303,   307,   311,   315,   319,   323,   330,   334,   338,
 
529
     342,   346,   350,   354,   358,   362,   366,   370,   374,   381,
 
530
     382,   387,   388,   393,   397,   401,   405,   409,   413,   417,
 
531
     421,   425,   432,   436,   444,   448,   452
533
532
};
534
533
#endif
535
534
 
1521
1520
        case 4:
1522
1521
 
1523
1522
/* Line 1464 of yacc.c  */
1524
 
#line 162 "libmemcached/options/parser.yy"
 
1523
#line 161 "libmemcached/options/parser.yy"
1525
1524
    { ;}
1526
1525
    break;
1527
1526
 
1528
1527
  case 5:
1529
1528
 
1530
1529
/* Line 1464 of yacc.c  */
1531
 
#line 164 "libmemcached/options/parser.yy"
 
1530
#line 163 "libmemcached/options/parser.yy"
1532
1531
    { ;}
1533
1532
    break;
1534
1533
 
1535
1534
  case 6:
1536
1535
 
1537
1536
/* Line 1464 of yacc.c  */
1538
 
#line 166 "libmemcached/options/parser.yy"
 
1537
#line 165 "libmemcached/options/parser.yy"
1539
1538
    { ;}
1540
1539
    break;
1541
1540
 
1542
1541
  case 7:
1543
1542
 
1544
1543
/* Line 1464 of yacc.c  */
1545
 
#line 168 "libmemcached/options/parser.yy"
 
1544
#line 167 "libmemcached/options/parser.yy"
1546
1545
    {
1547
1546
            context->set_end();
1548
1547
            YYACCEPT;
1552
1551
  case 8:
1553
1552
 
1554
1553
/* Line 1464 of yacc.c  */
1555
 
#line 173 "libmemcached/options/parser.yy"
 
1554
#line 172 "libmemcached/options/parser.yy"
1556
1555
    {
1557
1556
            context->rc= MEMCACHED_PARSE_USER_ERROR;
1558
1557
            parser_abort(context, NULL);
1562
1561
  case 9:
1563
1562
 
1564
1563
/* Line 1464 of yacc.c  */
1565
 
#line 178 "libmemcached/options/parser.yy"
 
1564
#line 177 "libmemcached/options/parser.yy"
1566
1565
    {
1567
1566
            memcached_reset(context->memc);
1568
1567
          ;}
1571
1570
  case 10:
1572
1571
 
1573
1572
/* Line 1464 of yacc.c  */
1574
 
#line 182 "libmemcached/options/parser.yy"
 
1573
#line 181 "libmemcached/options/parser.yy"
1575
1574
    {
1576
1575
            yydebug= 1;
1577
1576
          ;}
1580
1579
  case 11:
1581
1580
 
1582
1581
/* Line 1464 of yacc.c  */
1583
 
#line 186 "libmemcached/options/parser.yy"
 
1582
#line 185 "libmemcached/options/parser.yy"
1584
1583
    {
1585
 
            if ((context->rc= memcached_parse_configure_file(context->memc, (yyvsp[(3) - (3)].string).c_str, (yyvsp[(3) - (3)].string).length)) != MEMCACHED_SUCCESS)
 
1584
            if ((context->rc= memcached_parse_configure_file(context->memc, (yyvsp[(3) - (3)].string).c_str, (yyvsp[(3) - (3)].string).size)) != MEMCACHED_SUCCESS)
1586
1585
            {
1587
1586
              parser_abort(context, NULL);
1588
1587
            }
1592
1591
  case 12:
1593
1592
 
1594
1593
/* Line 1464 of yacc.c  */
1595
 
#line 197 "libmemcached/options/parser.yy"
 
1594
#line 196 "libmemcached/options/parser.yy"
1596
1595
    {
1597
1596
            if ((context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(2) - (4)].server).port, (yyvsp[(2) - (4)].server).weight)) != MEMCACHED_SUCCESS)
1598
1597
            {
1605
1604
  case 13:
1606
1605
 
1607
1606
/* Line 1464 of yacc.c  */
1608
 
#line 205 "libmemcached/options/parser.yy"
 
1607
#line 204 "libmemcached/options/parser.yy"
1609
1608
    {
1610
1609
            if ((context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(2) - (4)].server).port, (yyvsp[(2) - (4)].server).weight)) != MEMCACHED_SUCCESS)
1611
1610
            {
1618
1617
  case 14:
1619
1618
 
1620
1619
/* Line 1464 of yacc.c  */
1621
 
#line 213 "libmemcached/options/parser.yy"
 
1620
#line 212 "libmemcached/options/parser.yy"
1622
1621
    {
1623
 
            memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).length);
 
1622
            memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size);
1624
1623
          ;}
1625
1624
    break;
1626
1625
 
1627
1626
  case 15:
1628
1627
 
1629
1628
/* Line 1464 of yacc.c  */
1630
 
#line 217 "libmemcached/options/parser.yy"
 
1629
#line 216 "libmemcached/options/parser.yy"
1631
1630
    {
1632
1631
            context->memc->configure.initial_pool_size= (yyvsp[(2) - (2)].number);
1633
1632
          ;}
1636
1635
  case 16:
1637
1636
 
1638
1637
/* Line 1464 of yacc.c  */
1639
 
#line 221 "libmemcached/options/parser.yy"
 
1638
#line 220 "libmemcached/options/parser.yy"
1640
1639
    {
1641
1640
            context->memc->configure.max_pool_size= (yyvsp[(2) - (2)].number);
1642
1641
          ;}
1645
1644
  case 18:
1646
1645
 
1647
1646
/* Line 1464 of yacc.c  */
1648
 
#line 229 "libmemcached/options/parser.yy"
 
1647
#line 228 "libmemcached/options/parser.yy"
1649
1648
    {
1650
 
            if ((context->rc= memcached_set_prefix_key(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).length)) != MEMCACHED_SUCCESS)
 
1649
            if ((context->rc= memcached_set_prefix_key(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).size)) != MEMCACHED_SUCCESS)
1651
1650
            {
1652
1651
              parser_abort(context, NULL);;
1653
1652
            }
1657
1656
  case 19:
1658
1657
 
1659
1658
/* Line 1464 of yacc.c  */
1660
 
#line 236 "libmemcached/options/parser.yy"
 
1659
#line 235 "libmemcached/options/parser.yy"
1661
1660
    {
1662
1661
            if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (2)].distribution))) != MEMCACHED_SUCCESS)
1663
1662
            {
1669
1668
  case 20:
1670
1669
 
1671
1670
/* Line 1464 of yacc.c  */
1672
 
#line 243 "libmemcached/options/parser.yy"
 
1671
#line 242 "libmemcached/options/parser.yy"
1673
1672
    {
1674
1673
            if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (4)].distribution))) != MEMCACHED_SUCCESS)
1675
1674
            {
1685
1684
  case 21:
1686
1685
 
1687
1686
/* Line 1464 of yacc.c  */
1688
 
#line 254 "libmemcached/options/parser.yy"
 
1687
#line 253 "libmemcached/options/parser.yy"
1689
1688
    {
1690
1689
            if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, (yyvsp[(2) - (2)].hash))) != MEMCACHED_SUCCESS)
1691
1690
            {
1697
1696
  case 22:
1698
1697
 
1699
1698
/* Line 1464 of yacc.c  */
1700
 
#line 261 "libmemcached/options/parser.yy"
 
1699
#line 260 "libmemcached/options/parser.yy"
1701
1700
    {
1702
1701
            if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (2)].behavior), (yyvsp[(2) - (2)].number))) != MEMCACHED_SUCCESS)
1703
1702
            {
1709
1708
  case 23:
1710
1709
 
1711
1710
/* Line 1464 of yacc.c  */
1712
 
#line 268 "libmemcached/options/parser.yy"
 
1711
#line 267 "libmemcached/options/parser.yy"
1713
1712
    {
1714
1713
            if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (1)].behavior), true)) != MEMCACHED_SUCCESS)
1715
1714
            {
1721
1720
  case 24:
1722
1721
 
1723
1722
/* Line 1464 of yacc.c  */
1724
 
#line 275 "libmemcached/options/parser.yy"
 
1723
#line 274 "libmemcached/options/parser.yy"
1725
1724
    {
1726
1725
          ;}
1727
1726
    break;
1729
1728
  case 25:
1730
1729
 
1731
1730
/* Line 1464 of yacc.c  */
1732
 
#line 281 "libmemcached/options/parser.yy"
 
1731
#line 280 "libmemcached/options/parser.yy"
1733
1732
    {
1734
1733
            (yyval.behavior)= MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS;
1735
1734
          ;}
1738
1737
  case 26:
1739
1738
 
1740
1739
/* Line 1464 of yacc.c  */
1741
 
#line 285 "libmemcached/options/parser.yy"
 
1740
#line 284 "libmemcached/options/parser.yy"
1742
1741
    {
1743
1742
            (yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT;
1744
1743
          ;}
1747
1746
  case 27:
1748
1747
 
1749
1748
/* Line 1464 of yacc.c  */
1750
 
#line 289 "libmemcached/options/parser.yy"
 
1749
#line 288 "libmemcached/options/parser.yy"
1751
1750
    {
1752
1751
            (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK;
1753
1752
          ;}
1756
1755
  case 28:
1757
1756
 
1758
1757
/* Line 1464 of yacc.c  */
1759
 
#line 293 "libmemcached/options/parser.yy"
 
1758
#line 292 "libmemcached/options/parser.yy"
1760
1759
    {
1761
1760
            (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK;
1762
1761
          ;}
1765
1764
  case 29:
1766
1765
 
1767
1766
/* Line 1464 of yacc.c  */
1768
 
#line 297 "libmemcached/options/parser.yy"
 
1767
#line 296 "libmemcached/options/parser.yy"
1769
1768
    {
1770
1769
            (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH;
1771
1770
          ;}
1774
1773
  case 30:
1775
1774
 
1776
1775
/* Line 1464 of yacc.c  */
1777
 
#line 301 "libmemcached/options/parser.yy"
 
1776
#line 300 "libmemcached/options/parser.yy"
1778
1777
    {
1779
1778
            (yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS;
1780
1779
          ;}
1783
1782
  case 31:
1784
1783
 
1785
1784
/* Line 1464 of yacc.c  */
1786
 
#line 305 "libmemcached/options/parser.yy"
 
1785
#line 304 "libmemcached/options/parser.yy"
1787
1786
    {
1788
1787
            (yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT;
1789
1788
          ;}
1792
1791
  case 32:
1793
1792
 
1794
1793
/* Line 1464 of yacc.c  */
1795
 
#line 309 "libmemcached/options/parser.yy"
 
1794
#line 308 "libmemcached/options/parser.yy"
1796
1795
    {
1797
1796
            (yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT;
1798
1797
          ;}
1801
1800
  case 33:
1802
1801
 
1803
1802
/* Line 1464 of yacc.c  */
1804
 
#line 313 "libmemcached/options/parser.yy"
 
1803
#line 312 "libmemcached/options/parser.yy"
1805
1804
    {
1806
1805
            (yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT;
1807
1806
          ;}
1810
1809
  case 34:
1811
1810
 
1812
1811
/* Line 1464 of yacc.c  */
1813
 
#line 317 "libmemcached/options/parser.yy"
 
1812
#line 316 "libmemcached/options/parser.yy"
1814
1813
    {
1815
1814
            (yyval.behavior)= MEMCACHED_BEHAVIOR_SND_TIMEOUT;
1816
1815
          ;}
1819
1818
  case 35:
1820
1819
 
1821
1820
/* Line 1464 of yacc.c  */
1822
 
#line 321 "libmemcached/options/parser.yy"
 
1821
#line 320 "libmemcached/options/parser.yy"
1823
1822
    {
1824
1823
            (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE;
1825
1824
          ;}
1828
1827
  case 36:
1829
1828
 
1830
1829
/* Line 1464 of yacc.c  */
1831
 
#line 325 "libmemcached/options/parser.yy"
 
1830
#line 324 "libmemcached/options/parser.yy"
1832
1831
    {
1833
1832
            (yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE;
1834
1833
          ;}
1837
1836
  case 37:
1838
1837
 
1839
1838
/* Line 1464 of yacc.c  */
1840
 
#line 332 "libmemcached/options/parser.yy"
 
1839
#line 331 "libmemcached/options/parser.yy"
1841
1840
    {
1842
1841
            (yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL;
1843
1842
          ;}
1846
1845
  case 38:
1847
1846
 
1848
1847
/* Line 1464 of yacc.c  */
1849
 
#line 336 "libmemcached/options/parser.yy"
 
1848
#line 335 "libmemcached/options/parser.yy"
1850
1849
    {
1851
1850
            (yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
1852
1851
          ;}
1855
1854
  case 39:
1856
1855
 
1857
1856
/* Line 1464 of yacc.c  */
1858
 
#line 340 "libmemcached/options/parser.yy"
 
1857
#line 339 "libmemcached/options/parser.yy"
1859
1858
    {
1860
1859
            (yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
1861
1860
          ;}
1864
1863
  case 40:
1865
1864
 
1866
1865
/* Line 1464 of yacc.c  */
1867
 
#line 344 "libmemcached/options/parser.yy"
 
1866
#line 343 "libmemcached/options/parser.yy"
1868
1867
    {
1869
1868
            (yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY;
1870
1869
          ;}
1873
1872
  case 41:
1874
1873
 
1875
1874
/* Line 1464 of yacc.c  */
1876
 
#line 348 "libmemcached/options/parser.yy"
 
1875
#line 347 "libmemcached/options/parser.yy"
1877
1876
    {
1878
1877
            (yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ;
1879
1878
          ;}
1882
1881
  case 42:
1883
1882
 
1884
1883
/* Line 1464 of yacc.c  */
1885
 
#line 352 "libmemcached/options/parser.yy"
 
1884
#line 351 "libmemcached/options/parser.yy"
1886
1885
    {
1887
1886
            (yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS;
1888
1887
          ;}
1891
1890
  case 43:
1892
1891
 
1893
1892
/* Line 1464 of yacc.c  */
1894
 
#line 356 "libmemcached/options/parser.yy"
 
1893
#line 355 "libmemcached/options/parser.yy"
1895
1894
    {
1896
1895
            (yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS;
1897
1896
          ;}
1900
1899
  case 44:
1901
1900
 
1902
1901
/* Line 1464 of yacc.c  */
1903
 
#line 360 "libmemcached/options/parser.yy"
 
1902
#line 359 "libmemcached/options/parser.yy"
1904
1903
    {
1905
1904
            (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY;
1906
1905
          ;}
1909
1908
  case 45:
1910
1909
 
1911
1910
/* Line 1464 of yacc.c  */
1912
 
#line 364 "libmemcached/options/parser.yy"
 
1911
#line 363 "libmemcached/options/parser.yy"
1913
1912
    {
1914
1913
            (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE;
1915
1914
          ;}
1918
1917
  case 46:
1919
1918
 
1920
1919
/* Line 1464 of yacc.c  */
1921
 
#line 368 "libmemcached/options/parser.yy"
 
1920
#line 367 "libmemcached/options/parser.yy"
1922
1921
    {
1923
1922
            (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE;
1924
1923
          ;}
1927
1926
  case 47:
1928
1927
 
1929
1928
/* Line 1464 of yacc.c  */
1930
 
#line 372 "libmemcached/options/parser.yy"
 
1929
#line 371 "libmemcached/options/parser.yy"
1931
1930
    {
1932
1931
            (yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP;
1933
1932
          ;}
1936
1935
  case 48:
1937
1936
 
1938
1937
/* Line 1464 of yacc.c  */
1939
 
#line 376 "libmemcached/options/parser.yy"
 
1938
#line 375 "libmemcached/options/parser.yy"
1940
1939
    {
1941
1940
            (yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY;
1942
1941
          ;}
1945
1944
  case 49:
1946
1945
 
1947
1946
/* Line 1464 of yacc.c  */
1948
 
#line 382 "libmemcached/options/parser.yy"
 
1947
#line 381 "libmemcached/options/parser.yy"
1949
1948
    { ;}
1950
1949
    break;
1951
1950
 
1952
1951
  case 50:
1953
1952
 
1954
1953
/* Line 1464 of yacc.c  */
1955
 
#line 384 "libmemcached/options/parser.yy"
 
1954
#line 383 "libmemcached/options/parser.yy"
1956
1955
    { ;}
1957
1956
    break;
1958
1957
 
1959
1958
  case 51:
1960
1959
 
1961
1960
/* Line 1464 of yacc.c  */
1962
 
#line 388 "libmemcached/options/parser.yy"
 
1961
#line 387 "libmemcached/options/parser.yy"
1963
1962
    { ;}
1964
1963
    break;
1965
1964
 
1966
1965
  case 52:
1967
1966
 
1968
1967
/* Line 1464 of yacc.c  */
1969
 
#line 390 "libmemcached/options/parser.yy"
 
1968
#line 389 "libmemcached/options/parser.yy"
1970
1969
    { ;}
1971
1970
    break;
1972
1971
 
1973
1972
  case 53:
1974
1973
 
1975
1974
/* Line 1464 of yacc.c  */
1976
 
#line 395 "libmemcached/options/parser.yy"
 
1975
#line 394 "libmemcached/options/parser.yy"
1977
1976
    {
1978
1977
            (yyval.hash)= MEMCACHED_HASH_MD5;
1979
1978
          ;}
1982
1981
  case 54:
1983
1982
 
1984
1983
/* Line 1464 of yacc.c  */
1985
 
#line 399 "libmemcached/options/parser.yy"
 
1984
#line 398 "libmemcached/options/parser.yy"
1986
1985
    {
1987
1986
            (yyval.hash)= MEMCACHED_HASH_CRC;
1988
1987
          ;}
1991
1990
  case 55:
1992
1991
 
1993
1992
/* Line 1464 of yacc.c  */
1994
 
#line 403 "libmemcached/options/parser.yy"
 
1993
#line 402 "libmemcached/options/parser.yy"
1995
1994
    {
1996
1995
            (yyval.hash)= MEMCACHED_HASH_FNV1_64;
1997
1996
          ;}
2000
1999
  case 56:
2001
2000
 
2002
2001
/* Line 1464 of yacc.c  */
2003
 
#line 407 "libmemcached/options/parser.yy"
 
2002
#line 406 "libmemcached/options/parser.yy"
2004
2003
    {
2005
2004
            (yyval.hash)= MEMCACHED_HASH_FNV1A_64;
2006
2005
          ;}
2009
2008
  case 57:
2010
2009
 
2011
2010
/* Line 1464 of yacc.c  */
2012
 
#line 411 "libmemcached/options/parser.yy"
 
2011
#line 410 "libmemcached/options/parser.yy"
2013
2012
    {
2014
2013
            (yyval.hash)= MEMCACHED_HASH_FNV1_32;
2015
2014
          ;}
2018
2017
  case 58:
2019
2018
 
2020
2019
/* Line 1464 of yacc.c  */
2021
 
#line 415 "libmemcached/options/parser.yy"
 
2020
#line 414 "libmemcached/options/parser.yy"
2022
2021
    {
2023
2022
            (yyval.hash)= MEMCACHED_HASH_FNV1A_32;
2024
2023
          ;}
2027
2026
  case 59:
2028
2027
 
2029
2028
/* Line 1464 of yacc.c  */
2030
 
#line 419 "libmemcached/options/parser.yy"
 
2029
#line 418 "libmemcached/options/parser.yy"
2031
2030
    {
2032
2031
            (yyval.hash)= MEMCACHED_HASH_HSIEH;
2033
2032
          ;}
2036
2035
  case 60:
2037
2036
 
2038
2037
/* Line 1464 of yacc.c  */
2039
 
#line 423 "libmemcached/options/parser.yy"
 
2038
#line 422 "libmemcached/options/parser.yy"
2040
2039
    {
2041
2040
            (yyval.hash)= MEMCACHED_HASH_MURMUR;
2042
2041
          ;}
2045
2044
  case 61:
2046
2045
 
2047
2046
/* Line 1464 of yacc.c  */
2048
 
#line 427 "libmemcached/options/parser.yy"
 
2047
#line 426 "libmemcached/options/parser.yy"
2049
2048
    {
2050
2049
            (yyval.hash)= MEMCACHED_HASH_JENKINS;
2051
2050
          ;}
2054
2053
  case 62:
2055
2054
 
2056
2055
/* Line 1464 of yacc.c  */
2057
 
#line 434 "libmemcached/options/parser.yy"
 
2056
#line 433 "libmemcached/options/parser.yy"
2058
2057
    {
2059
2058
            (yyval.string)= (yyvsp[(1) - (1)].string);
2060
2059
          ;}
2063
2062
  case 63:
2064
2063
 
2065
2064
/* Line 1464 of yacc.c  */
2066
 
#line 438 "libmemcached/options/parser.yy"
 
2065
#line 437 "libmemcached/options/parser.yy"
2067
2066
    {
2068
2067
            (yyval.string).c_str= (yyvsp[(1) - (1)].string).c_str +1; // +1 to move use passed the initial quote
2069
 
            (yyval.string).length= (yyvsp[(1) - (1)].string).length -1; // -1 removes the end quote
 
2068
            (yyval.string).size= (yyvsp[(1) - (1)].string).size -2; // -2 removes the begin and end quote
2070
2069
          ;}
2071
2070
    break;
2072
2071
 
2073
2072
  case 64:
2074
2073
 
2075
2074
/* Line 1464 of yacc.c  */
2076
 
#line 446 "libmemcached/options/parser.yy"
 
2075
#line 445 "libmemcached/options/parser.yy"
2077
2076
    {
2078
2077
            (yyval.distribution)= MEMCACHED_DISTRIBUTION_CONSISTENT;
2079
2078
          ;}
2082
2081
  case 65:
2083
2082
 
2084
2083
/* Line 1464 of yacc.c  */
2085
 
#line 450 "libmemcached/options/parser.yy"
 
2084
#line 449 "libmemcached/options/parser.yy"
2086
2085
    {
2087
2086
            (yyval.distribution)= MEMCACHED_DISTRIBUTION_MODULA;
2088
2087
          ;}
2091
2090
  case 66:
2092
2091
 
2093
2092
/* Line 1464 of yacc.c  */
2094
 
#line 454 "libmemcached/options/parser.yy"
 
2093
#line 453 "libmemcached/options/parser.yy"
2095
2094
    {
2096
2095
            (yyval.distribution)= MEMCACHED_DISTRIBUTION_RANDOM;
2097
2096
          ;}
2100
2099
 
2101
2100
 
2102
2101
/* Line 1464 of yacc.c  */
2103
 
#line 2104 "libmemcached/options/parser.cc"
 
2102
#line 2103 "libmemcached/options/parser.cc"
2104
2103
      default: break;
2105
2104
    }
2106
2105
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
2312
2311
 
2313
2312
 
2314
2313
/* Line 1684 of yacc.c  */
2315
 
#line 459 "libmemcached/options/parser.yy"
 
2314
#line 458 "libmemcached/options/parser.yy"
2316
2315
 
2317
2316
 
2318
2317
void Context::start()