Commit Graph

1137 Commits

Author SHA1 Message Date
Jonathan Turkanis
0288280dc1 menu fix from iostreams_dev
[SVN r43328]
2008-02-20 00:09:06 +00:00
Jonathan Turkanis
7194a92905 stringstreams are no longer closable; the semantics of close() for these devices was illconsidered
[SVN r43325]
2008-02-19 19:34:07 +00:00
Jonathan Turkanis
34ee5bdaa6 merged changes from iostreams_dev, revisions 43243-43298: overhaul of category_of and close(): stringstream is now dual_seekable; standard file streams and string streams are closable; public Boost.Iostreams streams and streambufs are closable; close() pops filtering streams and streambufs
[SVN r43299]
2008-02-18 05:48:13 +00:00
Jonathan Turkanis
5344f24a11 switched from <wchar.h> to <cwchar>, for stdcxx (which is conforming in this case)
[SVN r43243]
2008-02-13 19:42:10 +00:00
Jonathan Turkanis
f7b7dcd1af merged changes from iostreams_dev, revisions 43059-43238: better debug output for mapped file; fixed large_file_test.cpp under UNICODE on Windows
[SVN r43240]
2008-02-13 05:47:44 +00:00
Jonathan Turkanis
3842ee9808 fixed return value of read(), to correctly handle eof
[SVN r43239]
2008-02-13 05:43:39 +00:00
Daniel James
8f66029333 Merged revisions 43206,43208-43213 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r43206 | danieljames | 2008-02-10 09:55:03 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Fix some broken links.
........
  r43209 | danieljames | 2008-02-10 14:56:22 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Link to people pages on the website, as they've been removed from the download.
........
  r43210 | danieljames | 2008-02-10 15:02:17 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Point links to the pages that used to be in 'more' to the site.
........
  r43212 | danieljames | 2008-02-10 16:10:16 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Fix links on the home page as well.
........
  r43213 | danieljames | 2008-02-10 16:21:22 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Generated documentation which is no longer generated.
........


[SVN r43214]
2008-02-10 16:39:38 +00:00
Daniel James
20804cceee Point links to the pages that used to be in 'more' to the site.
[SVN r43210]
2008-02-10 15:02:17 +00:00
Daniel James
263ad52b55 Link to people pages on the website, as they've been removed from the download.
[SVN r43209]
2008-02-10 14:56:22 +00:00
Jonathan Turkanis
ecbd2bd5e8 merged changes from iostreams_dev, revisions 42962-43059: updated copyright notices
[SVN r43061]
2008-02-02 22:10:46 +00:00
Jonathan Turkanis
2ffbb03e07 merged changes from iostreams_dev, revisions 42947-42962: fixed tickets 1003, 1139, 1140, 1149
[SVN r42970]
2008-01-25 17:56:25 +00:00
Jonathan Turkanis
8aa731d9d4 merged changes from iostreams_dev, revisions 42825-42947
[SVN r42948]
2008-01-24 06:50:32 +00:00
Jonathan Turkanis
e76db8a77f full merge from trunk at 42837 of boost/iostreams and libs iostreams
[SVN r42838]
2008-01-18 02:03:40 +00:00
Jonathan Turkanis
1302ec994a replaced __IBMCPP__ with _AIX
[SVN r42825]
2008-01-16 20:46:56 +00:00
Jonathan Turkanis
2da5ab4ae2 botched last commit
[SVN r42813]
2008-01-16 01:16:36 +00:00
Jonathan Turkanis
190d77ec73 reverted last change except for doc fixes; regression was result of test runner's local patch
[SVN r42811]
2008-01-16 01:14:04 +00:00
Jonathan Turkanis
206e4c3a5c rewrote treatment of result_of in terms of a new (hopefully temporary) config macro BOOST_IOSTREAMS_NO_RESULT_OF; fixed docs
[SVN r42807]
2008-01-15 22:54:40 +00:00
Jonathan Turkanis
f05fc1b347 overhaul of dual_use filters: close() is now called just once; suppressed Borland/Dinkumware warnings in mapped_file.hpp
[SVN r42778]
2008-01-14 20:47:17 +00:00
Jonathan Turkanis
87c6e54846 full merge from trunk at 42712 of boost/iostreams and libs/iostreams
[SVN r42714]
2008-01-13 07:33:37 +00:00
Jonathan Turkanis
dda2d33f3f improved docs
[SVN r42713]
2008-01-13 07:17:07 +00:00
Jonathan Turkanis
3cbc8c29eb removed intel-darwin sepcific code, since it didn't work
[SVN r42707]
2008-01-12 20:20:35 +00:00
Jonathan Turkanis
4446a6998d corrected use of feature detection macros for AIX; simplified implementation slightly; updated docs
[SVN r42706]
2008-01-12 20:19:42 +00:00
Jonathan Turkanis
de4149a947 merged changes from iostreams_dev; fixes for IBM and more documentation
[SVN r42688]
2008-01-11 22:58:21 +00:00
Jonathan Turkanis
42d8be6eb4 another attempt to fix linking for compression tests on intel-darwin
[SVN r42684]
2008-01-11 19:12:22 +00:00
Jonathan Turkanis
3f1b2a1580 force static runtime-link for intel-darwin
[SVN r42672]
2008-01-11 01:35:46 +00:00
Jonathan Turkanis
bfa2424fb9 merged changes from branches/iostreams_dev, revisions 42645=42660; fix for Intel-darwin; removed dependence of file_descriptor_test and mapped_file_test on library boost_iostreams
[SVN r42670]
2008-01-11 00:02:36 +00:00
Jonathan Turkanis
fbf23059a6 replaced 2 occurrences of the identifier 'restrict' with BOOST_IOSTREAMS_RESTRICT
[SVN r42645]
2008-01-09 23:16:17 +00:00
Jonathan Turkanis
975356158b merged changes from branches/iostreams_dev, revisions 42602-42624: adding missing included to fix #1550; fix for positioning on IBM; fix for file_descriptor on POSIX; restructed the version range for the Borland workaround in large_file_test.cpp
[SVN r42625]
2008-01-08 22:25:01 +00:00
Jonathan Turkanis
0c21da55d2 removed unneeded headers, one of which (restrict.hpp) causes failures on IBM Visual Age
[SVN r42602]
2008-01-08 04:20:38 +00:00
Jonathan Turkanis
2d11830721 merged changes from branches/iostreams_dev revisions 42595-42599; applied Dinkumware implementation of positioning functions to IBM Visual Age; simplified and corrected implementation
[SVN r42600]
2008-01-08 03:49:23 +00:00
Jonathan Turkanis
bc7dcedcbd merged changes from branches/iostreams_dev, revisions 42565-42595:
- Simplified implementation with the help to the C-runtime function _get_osfhandle so that on Windows only a single HANDLE is stored and the POSIX-style implementation is never needed; added the handle_type on POSIX systems (typedef for int) and a function returning the underlying handle as an instance of handle_type
- fixed the bug described in ticket Ticket #1551 (stream_buffer::seekpos ignores openmode parameter)
- fixed test/operation_sequence_test.cpp file description

[SVN r42596]
2008-01-07 23:13:26 +00:00
Jonathan Turkanis
3e02e11442 merged changes from branches/iostreams_dev, revisions 42544-42544
- added "slice" as an alias for "restrict", for platforms on which "restrict" is a keyword
- attempted to configure file_descriptor for __IBMCPP__
- added better error output to stream_offset_64bit_test.cpp

[SVN r42565]
2008-01-07 05:20:32 +00:00
Jonathan Turkanis
f735f49547 copy.hpp:
fix for Visual Age: std::min was passed arguments of different types; replaced std:: min with conditional

detail/streambuf/indirect_streambuf.hpp: 

    removed trailing comma in enum definition

test/combine_test.cpp:
test/symmetric_filter_test.cpp:
test/compose_test.cpp:
test/close_test.cpp:
test/invert_test.cpp:
test/tee_test.cpp:
test/restrict_test.cpp:
test/Jamfile.v2:

    moved tests for close() into the test files for various adapters

[SVN r42544]
2008-01-06 18:32:05 +00:00
Jonathan Turkanis
f20888a667 full merge from trunk at 42510 of boost/iostreams and libs/iostreams
[SVN r42515]
2008-01-06 07:36:59 +00:00
Jonathan Turkanis
9ea25a989b merged changes from iostreams_dev, revisions 42441-42469; added 'std::' for Intel on Linux/Darwin; added STDCXX workaround for codecvt; fixed docs for invert.hpp
[SVN r42471]
2008-01-05 04:51:49 +00:00
Jonathan Turkanis
33aacdfe44 merged changes from iostreams_dev not handled by svnmerge for some reason; use BOOST_NO_RESULT_OF workaround even for late versions of Borland that supposedly have result_of; added 'std::' all over the place for Intel on Linux and Darwin
[SVN r42441]
2008-01-03 19:28:01 +00:00
Jonathan Turkanis
9cc19290e6 changes from iostreams_dev not merged by svnmerge for some reason; better error reporting for file_offset_64bit_test.cpp; added 'std::' all over the place for Intel on Linux and Darwin; commented out stream_state_test.cpp because it seems to be a test for the standard library, and it is not clear that the standard requires that the test pass
[SVN r42440]
2008-01-03 19:10:48 +00:00
Markus Schöpflin
ac978a1482 Modified spelling of my surname to avoid problems with non-ASCII characters.
[SVN r42436]
2008-01-03 10:04:39 +00:00
Jonathan Turkanis
ce094a70ca ported changes to large_file_test.cpp from branches/iostreams_dev revisions 42376-42380:
- added optimization for win32 (excpet Borland 5.8.2) using mapped files
    - replaced SetFilePointerEx with SetFilePointer
    - replaced BOOST_CHECK_MESSAGE with BOOST_REQUIRE_MESSAGE in test for file existence
    - changed file attributes passed to CreateFile; previous flags were the result of a haphazard attempt to speed up execution
    - added docs


[SVN r42381]
2007-12-30 22:35:46 +00:00
Jonathan Turkanis
65d2b290bf ported changes from branches/iostreams_dev revisions 42356-42376:
fixed ticket #525:
        detail/adapter/direct_adapter.hpp: 

    fixed ticket #822:
        detail/adapter/direct_adapter.hpp: 
        detail/adapter/range_adapter.hpp

    applied optimization from ticket #817:
        detail/streambuf/indirect_streambuf.hpp
        
    changed svn:keywords property:
        test/large_file_test.cpp

[SVN r42378]
2007-12-30 20:16:41 +00:00
Jonathan Turkanis
3db01ef7cb removed Boost.Build v1 residue
[SVN r42361]
2007-12-30 05:18:37 +00:00
Jonathan Turkanis
9dccd2482b ported changes from branches/iostreams_dev revisions 42343-42356
[SVN r42357]
2007-12-30 04:19:38 +00:00
Jonathan Turkanis
1753faf9e0 ported changes from branches/iostreams_dev revisions 42306-42342: reworking of low-level file access to address #824, plus rigorous tests for large seeks
[SVN r42343]
2007-12-29 19:50:22 +00:00
K. Noel Belcourt
e94024b747 Add missing iostreams files from iostreams_dev branch.
Re-enable these two tests.



[SVN r42311]
2007-12-27 00:37:52 +00:00
K. Noel Belcourt
91708aa511 Comment out these two tests
[ test-iostreams stream_offset_32bit_test.cpp ]
[ test-iostreams stream_offset_64bit_test.cpp ]

since, apparently, these source files didn't get 
added.



[SVN r42310]
2007-12-26 22:48:28 +00:00
Jonathan Turkanis
8c65fa7d15 ported changes from branches/iostreams_dev revisions 42265-42306
[SVN r42307]
2007-12-26 05:45:15 +00:00
Jonathan Turkanis
759f354fd3 last commit accidentally included a commented out #if directive
[SVN r42267]
2007-12-24 00:37:53 +00:00
Jonathan Turkanis
49ba093a28 ported changes from branches/iostreams_dev revisions 42144-42265
[SVN r42266]
2007-12-24 00:27:12 +00:00
Jonathan Turkanis
4f85a131de I. Changed signature and specification of boost::iostreams::close(),
and made corresponding changes throughout the iostreams library.
   New spec is:
   
   template<typename T>
   void close(T& t);

     Convenience function for closing a device; calls close(t, in) and 
     close(t, out).

   template<typename T>
   void close(T& t, openmode which);

   template<typename T, typename Sink>
   void close(T& t, Sink& snk, openmode which);

     These two functions should only be called by the library implementation
     or by advanced users. The openmode parameter must always equal in or 
     out, never in | out.

     There are three cases:

     1. If T is not closable and which == out, calls boost::iostreams::flush

     2. If T operates on a single sequence, and is NOT a dual-use filter:

        a. If which == in and the mode of T is convertible to input but
           not to output, calls t.close() (or t.close(snk))

        b. If which == out and the mode of T is not convertible to input or
           is convertible to input and to output, calls t.close() 
           (or t.close(snk))

        The effect of a. and b. is that for any T in this category, 
        close() is called exactly once.

     3. If T operates on two sequences or is a dual-use filter, calls
        t.close(which) (or t.close(snk, which))

     If multiple operations that might throw must be called in the course
     of closing a filter or device, all of the operations are attempted
     and the first exception thrown by any of the operations is rethrown

  The new test close_test.cpp contains 95 checks verifying that the operation
  behaves as sepcified.

  This affects the following files:

    chain.hpp
    close.hpp
    code_converter.hpp
    combine.hpp
    compose.hpp
    copy.hpp
    detail/adapter/basic_adapter.hpp [removed]
    detail/adapter/device_adapter.hpp [new]
    detail/adapter/direct_adapter.hpp
    detail/adapter/filter_adapter.hpp [new]
    detail/adapter/mode_adapter.hpp
    detail/broken_overload_resolution/stream_buffer.hpp
    detail/closer.hpp [removed]
    detail/config/limits.hpp
    detail/execute.hpp [new]
    detail/functional.hpp [new]
    detail/streambuf/direct_streambuf.hpp
    detail/streambuf/indirect_streambuf.hpp
    detail/streambuf/linked_streambuf.hpp
    detail/vc6/close.hpp
    device/null.hpp
    filter/aggregate.hpp
    filter/bzip2.hpp
    filter/gzip.hpp
    filter/line.hpp
    filter/newline.hpp
    filter/symmetric.hpp
    filter/test.hpp
    invert.hpp
    restrict.hpp
    tee.hpp
    example/finite_state_filter.hpp
    test/Jamfile.v2
    test/close_test.cpp [new]
    test/code_converter_test.cpp
    test/execute_test.cpp [new]
    test/operation_sequence_test.cpp [new]

II. When exceptions are caught and ignored, we now use catch (...)
    uniformly instead of catch (std::exception&). This affects the 
    following files:

    stream_buffer.hpp
    src/mapped_file.cpp

III. Unnecessary dependence on Boost.Range has been eliminated. This
     affects the following files:

    detail/is_iterator_range.hpp
    detail/resolve.hpp
    traits.hpp
    test/Jamfile.v2
    test/filtering_stream_test.cpp
    test/offset_test.cpp
    test/seek_test.hpp
    test/seekable_filter_test.cpp
    test/sequence_test.cpp [new]
    test/wide_stream_test.cpp

IV. There are several fixes to the documentation. This affects the
    following files:

    doc/classes/symmetric_filter.html
    doc/guide/concepts.html
    doc/guide/modes.html
    doc/tutorial/container_device.html [serious error in algorithm]
    doc/tutorial/dictionary_filters.html [unused member variable]
    doc/tutorial/multichar_filters.html

V. Other changes include:

    stream.hpp [missing include directive]
    example/container_device.hpp [serious error in algorithm]
    example/container_device_example.cpp [outdated naming]
    example/container_sink_example.cpp [outdated naming]
    example/container_source_example.cpp [outdated naming]
    example/dictionary_filter.hpp [unused member variable]
    test/compose_test.cpp [added comments]
    test/example_test.cpp [reformatted]

[SVN r42047]
2007-12-14 19:30:07 +00:00
Beman Dawes
149490bfd2 Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41370]
2007-11-25 18:38:02 +00:00