Browse code

Updating pwiz to 3_0_21263

Steffen Neumann authored on 23/09/2021 12:34:25
Showing1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,113 @@
1
+// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
+// (C) Copyright 2003-2007 Jonathan Turkanis
3
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
+
6
+// See http://www.boost.org/libs/iostreams for documentation.
7
+
8
+#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
+#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
+
11
+#if defined(_MSC_VER)
12
+# pragma once
13
+#endif      
14
+
15
+#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
+#include <boost/detail/workaround.hpp>
17
+#include <boost/iostreams/chain.hpp>
18
+#include <boost/iostreams/detail/access_control.hpp>
19
+#include <boost/iostreams/detail/config/wide_streams.hpp>
20
+#include <boost/iostreams/detail/streambuf.hpp>
21
+#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
+#include <boost/iostreams/detail/translate_int_type.hpp>
23
+#include <boost/iostreams/traits.hpp>
24
+#include <boost/noncopyable.hpp>
25
+
26
+namespace boost { namespace iostreams { namespace detail {
27
+
28
+//--------------Definition of chainbuf----------------------------------------//
29
+
30
+//
31
+// Template name: chainbuf.
32
+// Description: Stream buffer which operates by delegating to the first
33
+//      linked_streambuf in a chain.
34
+// Template parameters:
35
+//      Chain - The chain type.
36
+//
37
+template<typename Chain, typename Mode, typename Access>
38
+class chainbuf
39
+    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
+                 typename Chain::char_type,
41
+                 typename Chain::traits_type
42
+             ),
43
+      public access_control<typename Chain::client_type, Access>,
44
+      private noncopyable
45
+{
46
+private:
47
+    typedef access_control<chain_client<Chain>, Access>      client_type;
48
+public:
49
+    typedef typename Chain::char_type                        char_type;
50
+    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
+protected:
52
+    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
+    chainbuf() { client_type::set_chain(&chain_); }
54
+    int_type underflow() 
55
+        { sentry t(this); return translate(delegate().underflow()); }
56
+    int_type pbackfail(int_type c)
57
+        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
+    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
+        { sentry t(this); return delegate().xsgetn(s, n); }
60
+    int_type overflow(int_type c)
61
+        { sentry t(this); return translate(delegate().overflow(c)); }
62
+    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
+        { sentry t(this); return delegate().xsputn(s, n); }
64
+    int sync() { sentry t(this); return delegate().sync(); }
65
+    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
+                      BOOST_IOS::openmode which =
67
+                          BOOST_IOS::in | BOOST_IOS::out )
68
+        { sentry t(this); return delegate().seekoff(off, way, which); }
69
+    pos_type seekpos( pos_type sp,
70
+                      BOOST_IOS::openmode which =
71
+                          BOOST_IOS::in | BOOST_IOS::out )
72
+        { sentry t(this); return delegate().seekpos(sp, which); }
73
+protected:
74
+    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
+                 typename Chain::char_type,
76
+                 typename Chain::traits_type
77
+             )                                               base_type;
78
+private:
79
+
80
+    // Translate from std int_type to chain's int_type.
81
+    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
82
+    typedef typename Chain::traits_type                      chain_traits;
83
+    static typename chain_traits::int_type 
84
+    translate(typename std_traits::int_type c)
85
+        { return translate_int_type<std_traits, chain_traits>(c); }
86
+
87
+    delegate_type& delegate() 
88
+        { return static_cast<delegate_type&>(chain_.front()); }
89
+    void get_pointers()
90
+        {
91
+            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
92
+            this->setp(delegate().pbase(), delegate().epptr());
93
+            this->pbump((int) (delegate().pptr() - delegate().pbase()));
94
+        }
95
+    void set_pointers()
96
+        {
97
+            delegate().setg(this->eback(), this->gptr(), this->egptr());
98
+            delegate().setp(this->pbase(), this->epptr());
99
+            delegate().pbump((int) (this->pptr() - this->pbase()));
100
+        }
101
+    struct sentry {
102
+        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
103
+            { buf_->set_pointers(); }
104
+        ~sentry() { buf_->get_pointers(); }
105
+        chainbuf<Chain, Mode, Access>* buf_;
106
+    };
107
+    friend struct sentry;
108
+    Chain chain_;
109
+};
110
+
111
+} } } // End namespaces detail, iostreams, boost.
112
+
113
+#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
Browse code

drop old boost

From: Steffen Neumann <sneumann@ipb-halle.de>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@125184 bc3139a8-67e5-0310-9ffc-ced21a209358

l.gatto authored on 15/12/2016 10:41:45
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,116 +0,0 @@
1
-// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
-// (C) Copyright 2003-2007 Jonathan Turkanis
3
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
-
6
-// See http://www.boost.org/libs/iostreams for documentation.
7
-
8
-#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
-#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
-
11
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
-# pragma once
13
-#endif      
14
-
15
-#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
-#include <boost/detail/workaround.hpp>
17
-#include <boost/iostreams/chain.hpp>
18
-#include <boost/iostreams/detail/access_control.hpp>
19
-#include <boost/iostreams/detail/config/wide_streams.hpp>
20
-#include <boost/iostreams/detail/streambuf.hpp>
21
-#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
-#include <boost/iostreams/detail/translate_int_type.hpp>
23
-#include <boost/iostreams/traits.hpp>
24
-#include <boost/noncopyable.hpp>
25
-
26
-namespace boost { namespace iostreams { namespace detail {
27
-
28
-//--------------Definition of chainbuf----------------------------------------//
29
-
30
-//
31
-// Template name: chainbuf.
32
-// Description: Stream buffer which operates by delegating to the first
33
-//      linked_streambuf in a chain.
34
-// Template parameters:
35
-//      Chain - The chain type.
36
-//
37
-template<typename Chain, typename Mode, typename Access>
38
-class chainbuf
39
-    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
-                 typename Chain::char_type,
41
-                 typename Chain::traits_type
42
-             ),
43
-      public access_control<typename Chain::client_type, Access>,
44
-      private noncopyable
45
-{
46
-private:
47
-    typedef access_control<chain_client<Chain>, Access>      client_type;
48
-public:
49
-    typedef typename Chain::char_type                        char_type;
50
-    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
-protected:
52
-    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
-    chainbuf() { client_type::set_chain(&chain_); }
54
-    int_type underflow() 
55
-        { sentry t(this); return translate(delegate().underflow()); }
56
-    int_type pbackfail(int_type c)
57
-        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
-    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
-        { sentry t(this); return delegate().xsgetn(s, n); }
60
-    int_type overflow(int_type c)
61
-        { sentry t(this); return translate(delegate().overflow(c)); }
62
-    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
-        { sentry t(this); return delegate().xsputn(s, n); }
64
-    int sync() { sentry t(this); return delegate().sync(); }
65
-    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
-                      BOOST_IOS::openmode which =
67
-                          BOOST_IOS::in | BOOST_IOS::out )
68
-        { sentry t(this); return delegate().seekoff(off, way, which); }
69
-    pos_type seekpos( pos_type sp,
70
-                      BOOST_IOS::openmode which =
71
-                          BOOST_IOS::in | BOOST_IOS::out )
72
-        { sentry t(this); return delegate().seekpos(sp, which); }
73
-protected:
74
-    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
-                 typename Chain::char_type,
76
-                 typename Chain::traits_type
77
-             )                                               base_type;
78
-//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
-//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
-//#endif
81
-private:
82
-
83
-    // Translate from std int_type to chain's int_type.
84
-    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
-    typedef typename Chain::traits_type                      chain_traits;
86
-    static typename chain_traits::int_type 
87
-    translate(typename std_traits::int_type c)
88
-        { return translate_int_type<std_traits, chain_traits>(c); }
89
-
90
-    delegate_type& delegate() 
91
-        { return static_cast<delegate_type&>(chain_.front()); }
92
-    void get_pointers()
93
-        {
94
-            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
-            this->setp(delegate().pbase(), delegate().epptr());
96
-            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
-        }
98
-    void set_pointers()
99
-        {
100
-            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
-            delegate().setp(this->pbase(), this->epptr());
102
-            delegate().pbump((int) (this->pptr() - this->pbase()));
103
-        }
104
-    struct sentry {
105
-        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
-            { buf_->set_pointers(); }
107
-        ~sentry() { buf_->get_pointers(); }
108
-        chainbuf<Chain, Mode, Access>* buf_;
109
-    };
110
-    friend struct sentry;
111
-    Chain chain_;
112
-};
113
-
114
-} } } // End namespaces detail, iostreams, boost.
115
-
116
-#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
Browse code

checkout latest pwiz, ammend Makevars

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@125180 bc3139a8-67e5-0310-9ffc-ced21a209358

l.gatto authored on 15/12/2016 10:21:41
Showing1 changed files
... ...
@@ -1,116 +1,116 @@
1
-// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
-// (C) Copyright 2003-2007 Jonathan Turkanis
3
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
-
6
-// See http://www.boost.org/libs/iostreams for documentation.
7
-
8
-#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
-#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
-
11
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
-# pragma once
13
-#endif      
14
-
15
-#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
-#include <boost/detail/workaround.hpp>
17
-#include <boost/iostreams/chain.hpp>
18
-#include <boost/iostreams/detail/access_control.hpp>
19
-#include <boost/iostreams/detail/config/wide_streams.hpp>
20
-#include <boost/iostreams/detail/streambuf.hpp>
21
-#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
-#include <boost/iostreams/detail/translate_int_type.hpp>
23
-#include <boost/iostreams/traits.hpp>
24
-#include <boost/noncopyable.hpp>
25
-
26
-namespace boost { namespace iostreams { namespace detail {
27
-
28
-//--------------Definition of chainbuf----------------------------------------//
29
-
30
-//
31
-// Template name: chainbuf.
32
-// Description: Stream buffer which operates by delegating to the first
33
-//      linked_streambuf in a chain.
34
-// Template parameters:
35
-//      Chain - The chain type.
36
-//
37
-template<typename Chain, typename Mode, typename Access>
38
-class chainbuf
39
-    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
-                 typename Chain::char_type,
41
-                 typename Chain::traits_type
42
-             ),
43
-      public access_control<typename Chain::client_type, Access>,
44
-      private noncopyable
45
-{
46
-private:
47
-    typedef access_control<chain_client<Chain>, Access>      client_type;
48
-public:
49
-    typedef typename Chain::char_type                        char_type;
50
-    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
-protected:
52
-    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
-    chainbuf() { client_type::set_chain(&chain_); }
54
-    int_type underflow() 
55
-        { sentry t(this); return translate(delegate().underflow()); }
56
-    int_type pbackfail(int_type c)
57
-        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
-    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
-        { sentry t(this); return delegate().xsgetn(s, n); }
60
-    int_type overflow(int_type c)
61
-        { sentry t(this); return translate(delegate().overflow(c)); }
62
-    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
-        { sentry t(this); return delegate().xsputn(s, n); }
64
-    int sync() { sentry t(this); return delegate().sync(); }
65
-    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
-                      BOOST_IOS::openmode which =
67
-                          BOOST_IOS::in | BOOST_IOS::out )
68
-        { sentry t(this); return delegate().seekoff(off, way, which); }
69
-    pos_type seekpos( pos_type sp,
70
-                      BOOST_IOS::openmode which =
71
-                          BOOST_IOS::in | BOOST_IOS::out )
72
-        { sentry t(this); return delegate().seekpos(sp, which); }
73
-protected:
74
-    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
-                 typename Chain::char_type,
76
-                 typename Chain::traits_type
77
-             )                                               base_type;
78
-//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
-//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
-//#endif
81
-private:
82
-
83
-    // Translate from std int_type to chain's int_type.
84
-    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
-    typedef typename Chain::traits_type                      chain_traits;
86
-    static typename chain_traits::int_type 
87
-    translate(typename std_traits::int_type c)
88
-        { return translate_int_type<std_traits, chain_traits>(c); }
89
-
90
-    delegate_type& delegate() 
91
-        { return static_cast<delegate_type&>(chain_.front()); }
92
-    void get_pointers()
93
-        {
94
-            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
-            this->setp(delegate().pbase(), delegate().epptr());
96
-            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
-        }
98
-    void set_pointers()
99
-        {
100
-            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
-            delegate().setp(this->pbase(), this->epptr());
102
-            delegate().pbump((int) (this->pptr() - this->pbase()));
103
-        }
104
-    struct sentry {
105
-        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
-            { buf_->set_pointers(); }
107
-        ~sentry() { buf_->get_pointers(); }
108
-        chainbuf<Chain, Mode, Access>* buf_;
109
-    };
110
-    friend struct sentry;
111
-    Chain chain_;
112
-};
113
-
114
-} } } // End namespaces detail, iostreams, boost.
115
-
116
-#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
1
+// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
+// (C) Copyright 2003-2007 Jonathan Turkanis
3
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
+
6
+// See http://www.boost.org/libs/iostreams for documentation.
7
+
8
+#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
+#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
+
11
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
+# pragma once
13
+#endif      
14
+
15
+#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
+#include <boost/detail/workaround.hpp>
17
+#include <boost/iostreams/chain.hpp>
18
+#include <boost/iostreams/detail/access_control.hpp>
19
+#include <boost/iostreams/detail/config/wide_streams.hpp>
20
+#include <boost/iostreams/detail/streambuf.hpp>
21
+#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
+#include <boost/iostreams/detail/translate_int_type.hpp>
23
+#include <boost/iostreams/traits.hpp>
24
+#include <boost/noncopyable.hpp>
25
+
26
+namespace boost { namespace iostreams { namespace detail {
27
+
28
+//--------------Definition of chainbuf----------------------------------------//
29
+
30
+//
31
+// Template name: chainbuf.
32
+// Description: Stream buffer which operates by delegating to the first
33
+//      linked_streambuf in a chain.
34
+// Template parameters:
35
+//      Chain - The chain type.
36
+//
37
+template<typename Chain, typename Mode, typename Access>
38
+class chainbuf
39
+    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
+                 typename Chain::char_type,
41
+                 typename Chain::traits_type
42
+             ),
43
+      public access_control<typename Chain::client_type, Access>,
44
+      private noncopyable
45
+{
46
+private:
47
+    typedef access_control<chain_client<Chain>, Access>      client_type;
48
+public:
49
+    typedef typename Chain::char_type                        char_type;
50
+    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
+protected:
52
+    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
+    chainbuf() { client_type::set_chain(&chain_); }
54
+    int_type underflow() 
55
+        { sentry t(this); return translate(delegate().underflow()); }
56
+    int_type pbackfail(int_type c)
57
+        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
+    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
+        { sentry t(this); return delegate().xsgetn(s, n); }
60
+    int_type overflow(int_type c)
61
+        { sentry t(this); return translate(delegate().overflow(c)); }
62
+    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
+        { sentry t(this); return delegate().xsputn(s, n); }
64
+    int sync() { sentry t(this); return delegate().sync(); }
65
+    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
+                      BOOST_IOS::openmode which =
67
+                          BOOST_IOS::in | BOOST_IOS::out )
68
+        { sentry t(this); return delegate().seekoff(off, way, which); }
69
+    pos_type seekpos( pos_type sp,
70
+                      BOOST_IOS::openmode which =
71
+                          BOOST_IOS::in | BOOST_IOS::out )
72
+        { sentry t(this); return delegate().seekpos(sp, which); }
73
+protected:
74
+    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
+                 typename Chain::char_type,
76
+                 typename Chain::traits_type
77
+             )                                               base_type;
78
+//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
+//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
+//#endif
81
+private:
82
+
83
+    // Translate from std int_type to chain's int_type.
84
+    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
+    typedef typename Chain::traits_type                      chain_traits;
86
+    static typename chain_traits::int_type 
87
+    translate(typename std_traits::int_type c)
88
+        { return translate_int_type<std_traits, chain_traits>(c); }
89
+
90
+    delegate_type& delegate() 
91
+        { return static_cast<delegate_type&>(chain_.front()); }
92
+    void get_pointers()
93
+        {
94
+            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
+            this->setp(delegate().pbase(), delegate().epptr());
96
+            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
+        }
98
+    void set_pointers()
99
+        {
100
+            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
+            delegate().setp(this->pbase(), this->epptr());
102
+            delegate().pbump((int) (this->pptr() - this->pbase()));
103
+        }
104
+    struct sentry {
105
+        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
+            { buf_->set_pointers(); }
107
+        ~sentry() { buf_->get_pointers(); }
108
+        chainbuf<Chain, Mode, Access>* buf_;
109
+    };
110
+    friend struct sentry;
111
+    Chain chain_;
112
+};
113
+
114
+} } } // End namespaces detail, iostreams, boost.
115
+
116
+#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
Browse code

Commit made by the Bioconductor Git-SVN bridge.

Commit id: 0b3d4d9bb71e3ca5891b777610fc8dec103a6d61

Bumped version after KK's updates


Commit id: 9e04409b64757a177893d56c0300904f31945cb1

modified: src/pwiz/data/common/BinaryIndexStream.cpp modified: src/win/i386/libpwiz.a modified: src/win/x64/libpwiz.a


Commit id: f16b04258dc20bf3315beac99708e11728cfc12b

update precompiled lib for windows


Commit id: 5d56197f1148378d92e89b2d0a167e18c4b7ab2e

Bump version, tame .Rbuildignore


Commit id: 432da5bd294c9b87f7761e15bc814c3785c21abf

Merge remote-tracking branch 'origin/boost_159'


Commit id: 92be978bf72d90c2222a19ddf365f6d1acc9f20d

upadte Makevars


Commit id: ae75037a780cead56c4d20bedf822c94fb413677

upgrade to boost 1.5.9



git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@110126 bc3139a8-67e5-0310-9ffc-ced21a209358

s.neumann authored on 01/11/2015 22:33:47
Showing1 changed files
... ...
@@ -1,116 +1,116 @@
1
-// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
-// (C) Copyright 2003-2007 Jonathan Turkanis
3
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
-
6
-// See http://www.boost.org/libs/iostreams for documentation.
7
-
8
-#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
-#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
-
11
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
-# pragma once
13
-#endif      
14
-
15
-#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
-#include <boost/detail/workaround.hpp>
17
-#include <boost/iostreams/chain.hpp>
18
-#include <boost/iostreams/detail/access_control.hpp>
19
-#include <boost/iostreams/detail/config/wide_streams.hpp>
20
-#include <boost/iostreams/detail/streambuf.hpp>
21
-#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
-#include <boost/iostreams/detail/translate_int_type.hpp>
23
-#include <boost/iostreams/traits.hpp>
24
-#include <boost/noncopyable.hpp>
25
-
26
-namespace boost { namespace iostreams { namespace detail {
27
-
28
-//--------------Definition of chainbuf----------------------------------------//
29
-
30
-//
31
-// Template name: chainbuf.
32
-// Description: Stream buffer which operates by delegating to the first
33
-//      linked_streambuf in a chain.
34
-// Template parameters:
35
-//      Chain - The chain type.
36
-//
37
-template<typename Chain, typename Mode, typename Access>
38
-class chainbuf
39
-    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
-                 typename Chain::char_type,
41
-                 typename Chain::traits_type
42
-             ),
43
-      public access_control<typename Chain::client_type, Access>,
44
-      private noncopyable
45
-{
46
-private:
47
-    typedef access_control<chain_client<Chain>, Access>      client_type;
48
-public:
49
-    typedef typename Chain::char_type                        char_type;
50
-    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
-protected:
52
-    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
-    chainbuf() { client_type::set_chain(&chain_); }
54
-    int_type underflow() 
55
-        { sentry t(this); return translate(delegate().underflow()); }
56
-    int_type pbackfail(int_type c)
57
-        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
-    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
-        { sentry t(this); return delegate().xsgetn(s, n); }
60
-    int_type overflow(int_type c)
61
-        { sentry t(this); return translate(delegate().overflow(c)); }
62
-    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
-        { sentry t(this); return delegate().xsputn(s, n); }
64
-    int sync() { sentry t(this); return delegate().sync(); }
65
-    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
-                      BOOST_IOS::openmode which =
67
-                          BOOST_IOS::in | BOOST_IOS::out )
68
-        { sentry t(this); return delegate().seekoff(off, way, which); }
69
-    pos_type seekpos( pos_type sp,
70
-                      BOOST_IOS::openmode which =
71
-                          BOOST_IOS::in | BOOST_IOS::out )
72
-        { sentry t(this); return delegate().seekpos(sp, which); }
73
-protected:
74
-    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
-                 typename Chain::char_type,
76
-                 typename Chain::traits_type
77
-             )                                               base_type;
78
-//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
-//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
-//#endif
81
-private:
82
-
83
-    // Translate from std int_type to chain's int_type.
84
-    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
-    typedef typename Chain::traits_type                      chain_traits;
86
-    static typename chain_traits::int_type 
87
-    translate(typename std_traits::int_type c)
88
-        { return translate_int_type<std_traits, chain_traits>(c); }
89
-
90
-    delegate_type& delegate() 
91
-        { return static_cast<delegate_type&>(chain_.front()); }
92
-    void get_pointers()
93
-        {
94
-            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
-            this->setp(delegate().pbase(), delegate().epptr());
96
-            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
-        }
98
-    void set_pointers()
99
-        {
100
-            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
-            delegate().setp(this->pbase(), this->epptr());
102
-            delegate().pbump((int) (this->pptr() - this->pbase()));
103
-        }
104
-    struct sentry {
105
-        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
-            { buf_->set_pointers(); }
107
-        ~sentry() { buf_->get_pointers(); }
108
-        chainbuf<Chain, Mode, Access>* buf_;
109
-    };
110
-    friend struct sentry;
111
-    Chain chain_;
112
-};
113
-
114
-} } } // End namespaces detail, iostreams, boost.
115
-
116
-#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
1
+// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
+// (C) Copyright 2003-2007 Jonathan Turkanis
3
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
+
6
+// See http://www.boost.org/libs/iostreams for documentation.
7
+
8
+#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
+#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
+
11
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
+# pragma once
13
+#endif      
14
+
15
+#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
+#include <boost/detail/workaround.hpp>
17
+#include <boost/iostreams/chain.hpp>
18
+#include <boost/iostreams/detail/access_control.hpp>
19
+#include <boost/iostreams/detail/config/wide_streams.hpp>
20
+#include <boost/iostreams/detail/streambuf.hpp>
21
+#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
+#include <boost/iostreams/detail/translate_int_type.hpp>
23
+#include <boost/iostreams/traits.hpp>
24
+#include <boost/noncopyable.hpp>
25
+
26
+namespace boost { namespace iostreams { namespace detail {
27
+
28
+//--------------Definition of chainbuf----------------------------------------//
29
+
30
+//
31
+// Template name: chainbuf.
32
+// Description: Stream buffer which operates by delegating to the first
33
+//      linked_streambuf in a chain.
34
+// Template parameters:
35
+//      Chain - The chain type.
36
+//
37
+template<typename Chain, typename Mode, typename Access>
38
+class chainbuf
39
+    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
+                 typename Chain::char_type,
41
+                 typename Chain::traits_type
42
+             ),
43
+      public access_control<typename Chain::client_type, Access>,
44
+      private noncopyable
45
+{
46
+private:
47
+    typedef access_control<chain_client<Chain>, Access>      client_type;
48
+public:
49
+    typedef typename Chain::char_type                        char_type;
50
+    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
+protected:
52
+    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
+    chainbuf() { client_type::set_chain(&chain_); }
54
+    int_type underflow() 
55
+        { sentry t(this); return translate(delegate().underflow()); }
56
+    int_type pbackfail(int_type c)
57
+        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
+    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
+        { sentry t(this); return delegate().xsgetn(s, n); }
60
+    int_type overflow(int_type c)
61
+        { sentry t(this); return translate(delegate().overflow(c)); }
62
+    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
+        { sentry t(this); return delegate().xsputn(s, n); }
64
+    int sync() { sentry t(this); return delegate().sync(); }
65
+    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
+                      BOOST_IOS::openmode which =
67
+                          BOOST_IOS::in | BOOST_IOS::out )
68
+        { sentry t(this); return delegate().seekoff(off, way, which); }
69
+    pos_type seekpos( pos_type sp,
70
+                      BOOST_IOS::openmode which =
71
+                          BOOST_IOS::in | BOOST_IOS::out )
72
+        { sentry t(this); return delegate().seekpos(sp, which); }
73
+protected:
74
+    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
+                 typename Chain::char_type,
76
+                 typename Chain::traits_type
77
+             )                                               base_type;
78
+//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
+//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
+//#endif
81
+private:
82
+
83
+    // Translate from std int_type to chain's int_type.
84
+    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
+    typedef typename Chain::traits_type                      chain_traits;
86
+    static typename chain_traits::int_type 
87
+    translate(typename std_traits::int_type c)
88
+        { return translate_int_type<std_traits, chain_traits>(c); }
89
+
90
+    delegate_type& delegate() 
91
+        { return static_cast<delegate_type&>(chain_.front()); }
92
+    void get_pointers()
93
+        {
94
+            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
+            this->setp(delegate().pbase(), delegate().epptr());
96
+            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
+        }
98
+    void set_pointers()
99
+        {
100
+            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
+            delegate().setp(this->pbase(), this->epptr());
102
+            delegate().pbump((int) (this->pptr() - this->pbase()));
103
+        }
104
+    struct sentry {
105
+        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
+            { buf_->set_pointers(); }
107
+        ~sentry() { buf_->get_pointers(); }
108
+        chainbuf<Chain, Mode, Access>* buf_;
109
+    };
110
+    friend struct sentry;
111
+    Chain chain_;
112
+};
113
+
114
+} } } // End namespaces detail, iostreams, boost.
115
+
116
+#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
Browse code

Mavericks support

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@90716 bc3139a8-67e5-0310-9ffc-ced21a209358

l.gatto authored on 26/05/2014 19:55:15
Showing1 changed files
... ...
@@ -31,7 +31,7 @@ namespace boost { namespace iostreams { namespace detail {
31 31
 // Template name: chainbuf.
32 32
 // Description: Stream buffer which operates by delegating to the first
33 33
 //      linked_streambuf in a chain.
34
-// Template paramters:
34
+// Template parameters:
35 35
 //      Chain - The chain type.
36 36
 //
37 37
 template<typename Chain, typename Mode, typename Access>
Browse code

Added the mzR package to the repository.

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@57456 bc3139a8-67e5-0310-9ffc-ced21a209358

c.wong authored on 15/08/2011 19:53:29
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,116 @@
1
+// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2
+// (C) Copyright 2003-2007 Jonathan Turkanis
3
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
4
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
+
6
+// See http://www.boost.org/libs/iostreams for documentation.
7
+
8
+#ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
9
+#define BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED
10
+
11
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
12
+# pragma once
13
+#endif      
14
+
15
+#include <boost/config.hpp>                    // BOOST_MSVC, template friends.
16
+#include <boost/detail/workaround.hpp>
17
+#include <boost/iostreams/chain.hpp>
18
+#include <boost/iostreams/detail/access_control.hpp>
19
+#include <boost/iostreams/detail/config/wide_streams.hpp>
20
+#include <boost/iostreams/detail/streambuf.hpp>
21
+#include <boost/iostreams/detail/streambuf/linked_streambuf.hpp>
22
+#include <boost/iostreams/detail/translate_int_type.hpp>
23
+#include <boost/iostreams/traits.hpp>
24
+#include <boost/noncopyable.hpp>
25
+
26
+namespace boost { namespace iostreams { namespace detail {
27
+
28
+//--------------Definition of chainbuf----------------------------------------//
29
+
30
+//
31
+// Template name: chainbuf.
32
+// Description: Stream buffer which operates by delegating to the first
33
+//      linked_streambuf in a chain.
34
+// Template paramters:
35
+//      Chain - The chain type.
36
+//
37
+template<typename Chain, typename Mode, typename Access>
38
+class chainbuf
39
+    : public BOOST_IOSTREAMS_BASIC_STREAMBUF(
40
+                 typename Chain::char_type,
41
+                 typename Chain::traits_type
42
+             ),
43
+      public access_control<typename Chain::client_type, Access>,
44
+      private noncopyable
45
+{
46
+private:
47
+    typedef access_control<chain_client<Chain>, Access>      client_type;
48
+public:
49
+    typedef typename Chain::char_type                        char_type;
50
+    BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(typename Chain::traits_type)
51
+protected:
52
+    typedef linked_streambuf<char_type, traits_type>         delegate_type;
53
+    chainbuf() { client_type::set_chain(&chain_); }
54
+    int_type underflow() 
55
+        { sentry t(this); return translate(delegate().underflow()); }
56
+    int_type pbackfail(int_type c)
57
+        { sentry t(this); return translate(delegate().pbackfail(c)); }
58
+    std::streamsize xsgetn(char_type* s, std::streamsize n)
59
+        { sentry t(this); return delegate().xsgetn(s, n); }
60
+    int_type overflow(int_type c)
61
+        { sentry t(this); return translate(delegate().overflow(c)); }
62
+    std::streamsize xsputn(const char_type* s, std::streamsize n)
63
+        { sentry t(this); return delegate().xsputn(s, n); }
64
+    int sync() { sentry t(this); return delegate().sync(); }
65
+    pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
66
+                      BOOST_IOS::openmode which =
67
+                          BOOST_IOS::in | BOOST_IOS::out )
68
+        { sentry t(this); return delegate().seekoff(off, way, which); }
69
+    pos_type seekpos( pos_type sp,
70
+                      BOOST_IOS::openmode which =
71
+                          BOOST_IOS::in | BOOST_IOS::out )
72
+        { sentry t(this); return delegate().seekpos(sp, which); }
73
+protected:
74
+    typedef BOOST_IOSTREAMS_BASIC_STREAMBUF(
75
+                 typename Chain::char_type,
76
+                 typename Chain::traits_type
77
+             )                                               base_type;
78
+//#if !BOOST_WORKAROUND(__GNUC__, == 2)                                 
79
+//    BOOST_IOSTREAMS_USING_PROTECTED_STREAMBUF_MEMBERS(base_type)
80
+//#endif
81
+private:
82
+
83
+    // Translate from std int_type to chain's int_type.
84
+    typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type)           std_traits;
85
+    typedef typename Chain::traits_type                      chain_traits;
86
+    static typename chain_traits::int_type 
87
+    translate(typename std_traits::int_type c)
88
+        { return translate_int_type<std_traits, chain_traits>(c); }
89
+
90
+    delegate_type& delegate() 
91
+        { return static_cast<delegate_type&>(chain_.front()); }
92
+    void get_pointers()
93
+        {
94
+            this->setg(delegate().eback(), delegate().gptr(), delegate().egptr());
95
+            this->setp(delegate().pbase(), delegate().epptr());
96
+            this->pbump((int) (delegate().pptr() - delegate().pbase()));
97
+        }
98
+    void set_pointers()
99
+        {
100
+            delegate().setg(this->eback(), this->gptr(), this->egptr());
101
+            delegate().setp(this->pbase(), this->epptr());
102
+            delegate().pbump((int) (this->pptr() - this->pbase()));
103
+        }
104
+    struct sentry {
105
+        sentry(chainbuf<Chain, Mode, Access>* buf) : buf_(buf)
106
+            { buf_->set_pointers(); }
107
+        ~sentry() { buf_->get_pointers(); }
108
+        chainbuf<Chain, Mode, Access>* buf_;
109
+    };
110
+    friend struct sentry;
111
+    Chain chain_;
112
+};
113
+
114
+} } } // End namespaces detail, iostreams, boost.
115
+
116
+#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAINBUF_HPP_INCLUDED