Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita947e52

Browse files
committed
Attempts at build time optimization.
* Breaking up Boost.Spirit include files.* Adding simplified modular headers.
1 parent9ffb3b1 commita947e52

File tree

9 files changed

+54
-8
lines changed

9 files changed

+54
-8
lines changed

‎boost/network/include/http/client.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2+
#defineBOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
3+
4+
// Copyright 2009 Dean Michael Berris
5+
// Distributed under the Boost Software License, Version 1.0.
6+
// (See accompanying file LICENSE_1_0.txt or copy at
7+
// http://www.boost.org/LICENSE_1_0.txt)
8+
//
9+
// This is the modular include file for using the HTTP Client
10+
11+
#include<boost/network/protocol/http/client.hpp>
12+
13+
#endif// BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
14+

‎boost/network/include/message.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef BOOST_NETWORK_INCLUDE_MESSAGE_HPP_
2+
#defineBOOST_NETWORK_INCLUDE_MESSAGE_HPP_
3+
4+
// Copyright 2009 Dean Michael Berris
5+
// Distributed under the Boost Software License, Version 1.0.
6+
// (See accompanying file LICENSE_1_0.txt or copy at
7+
// http://www.boost.org/LICENSE_1_0.txt)
8+
//
9+
// This is the modular include file for using the basic message type
10+
11+
#include<boost/network/message.hpp>
12+
13+
#endif// BOOST_NETWORK_INCLUDE_MESSAGE_HPP_
14+

‎boost/network/uri/basic_uri.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9-
#include<boost/spirit/home/qi.hpp>
109
#include<boost/fusion/adapted/std_pair.hpp>
11-
#include<boost/spirit/home/phoenix.hpp>
1210
#include<boost/range.hpp>
1311

1412
#include<boost/network/tags.hpp>

‎boost/network/uri/detail/parse_uri.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
#include<boost/fusion/tuple.hpp>
1010
#include<boost/network/uri/detail/uri_parts.hpp>
1111

12+
#include<boost/spirit/include/qi_core.hpp>
13+
#include<boost/spirit/include/qi_sequence.hpp>
14+
#include<boost/spirit/include/qi_parse.hpp>
15+
#include<boost/spirit/include/qi_char_.hpp>
16+
#include<boost/spirit/include/qi_lexeme.hpp>
17+
1218
namespaceboost {namespacenetwork {namespaceuri {
1319

1420
namespacedetail {
@@ -33,7 +39,7 @@ namespace boost { namespace network { namespace uri {
3339
bool ok =qi::parse(
3440
start_, end_,
3541
(
36-
(qi::alpha > *(qi::alnum |qi::char_("+.-")))
42+
qi::lexeme[(qi::alpha >> *(qi::alnum |qi::char_("+.-")))]
3743
>>':'
3844
>>
3945
+(qi::char_ - (qi::cntrl | qi::space))

‎boost/network/uri/http/detail/parse_specific.hpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
#include<boost/network/uri/detail/parse_uri.hpp>
1212
#include<boost/network/traits/string.hpp>
1313

14+
#include<boost/spirit/include/qi_core.hpp>
15+
#include<boost/spirit/include/qi_sequence.hpp>
16+
#include<boost/spirit/include/qi_raw.hpp>
17+
#include<boost/spirit/include/qi_plus.hpp>
18+
#include<boost/spirit/include/qi_parse.hpp>
19+
#include<boost/spirit/include/qi_char_.hpp>
20+
#include<boost/spirit/include/qi_uint.hpp>
21+
#include<boost/spirit/include/qi_lexeme.hpp>
22+
#include<boost/spirit/include/qi_eps.hpp>
23+
#include<boost/spirit/include/qi_optional.hpp>
24+
#include<boost/spirit/include/phoenix_operator.hpp>
25+
#include<boost/spirit/include/support_ascii.hpp>
26+
#include<boost/spirit/include/support_argument.hpp>
27+
1428
namespaceboost {namespacenetwork {namespaceuri {
1529

1630
namespacedetail {
@@ -101,7 +115,7 @@ namespace boost { namespace network { namespace uri {
101115
>> -qi::lexeme[qi::raw[*(unreserved | pct_encoded | sub_delims |qi::char_(":"))] >>'@']
102116
>> hostname
103117
>> -qi::lexeme[':' >> qi::ushort_]
104-
>> -qi::lexeme['/' > qi::raw[*pchar >> *('/' > *pchar)]]
118+
>> -qi::lexeme['/' >> qi::raw[*pchar >> *('/' > *pchar)]]
105119
>> -qi::lexeme['?' >> qi::raw[*(pchar |qi::char_("/?"))]]
106120
>> -qi::lexeme['#' >> qi::raw[*(pchar |qi::char_("/?"))]]
107121
),

‎libs/network/test/http_1_0_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#defineBOOST_TEST_MODULE http1.0 test
88
#include<boost/config/warning_disable.hpp>
99
#include<boost/test/unit_test.hpp>
10-
#include<boost/network.hpp>
10+
#include<boost/network/include/http/client.hpp>
1111
#include<iostream>
1212
#include<boost/mpl/list.hpp>
1313

‎libs/network/test/http_1_1_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#defineBOOST_TEST_MODULE http1.1 test
88
#include<boost/config/warning_disable.hpp>
99
#include<boost/test/unit_test.hpp>
10-
#include<boost/network.hpp>
10+
#include<boost/network/include/http/client.hpp>
1111
#include<iostream>
1212
#include<boost/mpl/list.hpp>
1313

‎libs/network/test/http_localhost_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include<boost/config/warning_disable.hpp>
1313
#include<boost/config.hpp>
1414
#include<boost/test/unit_test.hpp>
15-
#include<boost/network.hpp>
15+
#include<boost/network/include/http/client.hpp>
1616
#include<boost/cast.hpp>
1717
#include<string>
1818
#include<fstream>

‎libs/network/test/message_transform_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#defineBOOST_TEST_MODULE message test
88
#include<boost/config/warning_disable.hpp>
99
#include<boost/test/unit_test.hpp>
10-
#include<boost/network.hpp>
10+
#include<boost/network/include/message.hpp>
1111
#include<algorithm>
1212

1313
BOOST_AUTO_TEST_CASE ( message_transform_toupper ) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp