Remove BOOST_VERSION checks

fix #722
This commit is contained in:
Vinnie Falco committed 2018-01-12 12:30:39 -08:00
1 parent be14786550
commit 3546eff033
14 files changed
+53 -97

No files matched your search

@@ -148,7 +148,7 @@ loop:
return 0;
}
state_ = state::start_line;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case state::start_line:
{
@@ -179,7 +179,7 @@ loop:
ec = error::need_more;
goto done;
}
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case state::fields:
@@ -212,7 +212,7 @@ loop:
if(ec)
goto done;
state_ = state::body;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case state::body:
BOOST_ASSERT(! skip_);
@@ -227,7 +227,7 @@ loop:
if(ec)
goto done;
state_ = state::body_to_eof;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case state::body_to_eof:
BOOST_ASSERT(! skip_);
@@ -241,7 +241,7 @@ loop:
if(ec)
goto done;
state_ = state::chunk_header;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case state::chunk_header:
parse_chunk_header(p, n, ec);
+12 -12
View File
@@ -102,7 +102,7 @@ next(error_code& ec, Visit&& visit)
if(m_.chunked())
goto go_init_c;
s_ = do_init;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case do_init:
@@ -125,7 +125,7 @@ next(error_code& ec, Visit&& visit)
fwr_->get(),
result->first);
s_ = do_header;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case do_header:
@@ -135,14 +135,14 @@ next(error_code& ec, Visit&& visit)
go_header_only:
v_.template emplace<1>(fwr_->get());
s_ = do_header_only;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_header_only:
do_visit<1>(ec, visit);
break;
case do_body:
s_ = do_body + 1;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_body + 1:
{
@@ -154,7 +154,7 @@ next(error_code& ec, Visit&& visit)
more_ = result->second;
v_.template emplace<3>(result->first);
s_ = do_body + 2;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case do_body + 2:
@@ -165,7 +165,7 @@ next(error_code& ec, Visit&& visit)
go_init_c:
s_ = do_init_c;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_init_c:
{
wr_.init(ec);
@@ -206,7 +206,7 @@ next(error_code& ec, Visit&& visit)
result->first,
chunk_crlf{});
s_ = do_header_c;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case do_header_c:
@@ -222,7 +222,7 @@ next(error_code& ec, Visit&& visit)
case do_body_c:
s_ = do_body_c + 1;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_body_c + 1:
{
@@ -255,7 +255,7 @@ next(error_code& ec, Visit&& visit)
result->first,
chunk_crlf{});
s_ = do_body_c + 2;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
}
case do_body_c + 2:
@@ -264,14 +264,14 @@ next(error_code& ec, Visit&& visit)
go_body_final_c:
s_ = do_body_final_c;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_body_final_c:
do_visit<6>(ec, visit);
break;
go_all_c:
s_ = do_all_c;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_all_c:
do_visit<7>(ec, visit);
break;
@@ -284,7 +284,7 @@ next(error_code& ec, Visit&& visit)
boost::asio::const_buffer{nullptr, 0},
chunk_crlf{});
s_ = do_final_c + 1;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case do_final_c + 1:
do_visit<8>(ec, visit);
+4 -4
View File
@@ -28,7 +28,7 @@ int_to_status(unsigned v)
case status::continue_:
case status::switching_protocols:
case status::processing:
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
// 2xx
case status::ok:
@@ -41,7 +41,7 @@ int_to_status(unsigned v)
case status::multi_status:
case status::already_reported:
case status::im_used:
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
// 3xx
case status::multiple_choices:
@@ -52,7 +52,7 @@ int_to_status(unsigned v)
case status::use_proxy:
case status::temporary_redirect:
case status::permanent_redirect:
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
// 4xx
case status::bad_request:
@@ -84,7 +84,7 @@ int_to_status(unsigned v)
case status::connection_closed_without_response:
case status::unavailable_for_legal_reasons:
case status::client_closed_request:
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
// 5xx
case status::internal_server_error:
+3 -3
View File
@@ -159,7 +159,7 @@ string_to_verb(string_view v)
return verb::connect;
if(eq(v, "PY"))
return verb::copy;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
default:
break;
@@ -220,7 +220,7 @@ string_to_verb(string_view v)
case 'O':
if(eq(v, "VE"))
return verb::move;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
default:
break;
@@ -264,7 +264,7 @@ string_to_verb(string_view v)
return verb::purge;
if(eq(v, "T"))
return verb::put;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
default:
break;
+1 -1
View File
@@ -280,7 +280,7 @@ operator()(
case 2:
state_ = 3;
BOOST_BEAST_FALLTHROUGH;
BOOST_FALLTHROUGH;
case 3:
{