Browse code

Adding winapi

Steffen Neumann authored on 26/11/2021 22:31:46
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,24 @@
1
+/*
2
+ * Copyright 2017 Andrey Semashev
3
+ *
4
+ * Distributed under the Boost Software License, Version 1.0.
5
+ * See http://www.boost.org/LICENSE_1_0.txt
6
+ *
7
+ * This header is deprecated, use boost/winapi/error_handling.hpp instead.
8
+ */
9
+
10
+#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
+#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
12
+
13
+#include <boost/config/header_deprecated.hpp>
14
+
15
+BOOST_HEADER_DEPRECATED("<boost/winapi/error_handling.hpp>")
16
+
17
+#include <boost/winapi/error_handling.hpp>
18
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
19
+
20
+#ifdef BOOST_HAS_PRAGMA_ONCE
21
+#pragma once
22
+#endif
23
+
24
+#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
Browse code

remove (hopefully) unused directories

Steffen Neumann authored on 23/09/2021 15:21:20
Showing 1 changed files
1 1
deleted file mode 100755
... ...
@@ -1,24 +0,0 @@
1
-/*
2
- * Copyright 2017 Andrey Semashev
3
- *
4
- * Distributed under the Boost Software License, Version 1.0.
5
- * See http://www.boost.org/LICENSE_1_0.txt
6
- *
7
- * This header is deprecated, use boost/winapi/error_handling.hpp instead.
8
- */
9
-
10
-#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
-#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
12
-
13
-#include <boost/config/header_deprecated.hpp>
14
-
15
-BOOST_HEADER_DEPRECATED("<boost/winapi/error_handling.hpp>")
16
-
17
-#include <boost/winapi/error_handling.hpp>
18
-#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
19
-
20
-#ifdef BOOST_HAS_PRAGMA_ONCE
21
-#pragma once
22
-#endif
23
-
24
-#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
Browse code

Updating pwiz to 3_0_21263

Steffen Neumann authored on 23/09/2021 12:34:25
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,24 @@
1
+/*
2
+ * Copyright 2017 Andrey Semashev
3
+ *
4
+ * Distributed under the Boost Software License, Version 1.0.
5
+ * See http://www.boost.org/LICENSE_1_0.txt
6
+ *
7
+ * This header is deprecated, use boost/winapi/error_handling.hpp instead.
8
+ */
9
+
10
+#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
+#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
12
+
13
+#include <boost/config/header_deprecated.hpp>
14
+
15
+BOOST_HEADER_DEPRECATED("<boost/winapi/error_handling.hpp>")
16
+
17
+#include <boost/winapi/error_handling.hpp>
18
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
19
+
20
+#ifdef BOOST_HAS_PRAGMA_ONCE
21
+#pragma once
22
+#endif
23
+
24
+#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
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
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,93 +0,0 @@
1
-//  error_handling.hpp  --------------------------------------------------------------//
2
-
3
-//  Copyright 2010 Vicente J. Botet Escriba
4
-
5
-//  Distributed under the Boost Software License, Version 1.0.
6
-//  See http://www.boost.org/LICENSE_1_0.txt
7
-
8
-
9
-#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
-#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
-
12
-#include <boost/detail/winapi/basic_types.hpp>
13
-#include <boost/detail/winapi/GetCurrentThread.hpp>
14
-
15
-#ifdef BOOST_HAS_PRAGMA_ONCE
16
-#pragma once
17
-#endif
18
-
19
-namespace boost {
20
-namespace detail {
21
-namespace winapi {
22
-
23
-#if defined( BOOST_USE_WINDOWS_H )
24
-    using ::FormatMessageA;
25
-    using ::FormatMessageW;
26
-
27
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
-    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
-
35
-    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
-    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
-
38
-    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
-        return MAKELANGID(p,s);
41
-    }
42
-#else
43
-extern "C" {
44
-    //                using ::FormatMessageA;
45
-    __declspec(dllimport)
46
-    DWORD_
47
-    WINAPI
48
-    FormatMessageA(
49
-        DWORD_ dwFlags,
50
-        LPCVOID_ lpSource,
51
-        DWORD_ dwMessageId,
52
-        DWORD_ dwLanguageId,
53
-        LPSTR_ lpBuffer,
54
-        DWORD_ nSize,
55
-        va_list *Arguments
56
-        );
57
-
58
-    //                using ::FormatMessageW;
59
-    __declspec(dllimport)
60
-    DWORD_
61
-    WINAPI
62
-    FormatMessageW(
63
-        DWORD_ dwFlags,
64
-        LPCVOID_ lpSource,
65
-        DWORD_ dwMessageId,
66
-        DWORD_ dwLanguageId,
67
-        LPWSTR_ lpBuffer,
68
-        DWORD_ nSize,
69
-        va_list *Arguments
70
-        );
71
-
72
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
-    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
-
80
-    const char LANG_NEUTRAL_=                  0x00;
81
-    const char LANG_INVARIANT_=                0x7f;
82
-
83
-    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
-        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
-    }
87
-
88
-}
89
-#endif
90
-}
91
-}
92
-}
93
-#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
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
Showing 1 changed files
... ...
@@ -1,93 +1,93 @@
1
-//  error_handling.hpp  --------------------------------------------------------------//
2
-
3
-//  Copyright 2010 Vicente J. Botet Escriba
4
-
5
-//  Distributed under the Boost Software License, Version 1.0.
6
-//  See http://www.boost.org/LICENSE_1_0.txt
7
-
8
-
9
-#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
-#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
-
12
-#include <boost/detail/winapi/basic_types.hpp>
13
-#include <boost/detail/winapi/GetCurrentThread.hpp>
14
-
15
-#ifdef BOOST_HAS_PRAGMA_ONCE
16
-#pragma once
17
-#endif
18
-
19
-namespace boost {
20
-namespace detail {
21
-namespace winapi {
22
-
23
-#if defined( BOOST_USE_WINDOWS_H )
24
-    using ::FormatMessageA;
25
-    using ::FormatMessageW;
26
-
27
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
-    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
-
35
-    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
-    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
-
38
-    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
-        return MAKELANGID(p,s);
41
-    }
42
-#else
43
-extern "C" {
44
-    //                using ::FormatMessageA;
45
-    __declspec(dllimport)
46
-    DWORD_
47
-    WINAPI
48
-    FormatMessageA(
49
-        DWORD_ dwFlags,
50
-        LPCVOID_ lpSource,
51
-        DWORD_ dwMessageId,
52
-        DWORD_ dwLanguageId,
53
-        LPSTR_ lpBuffer,
54
-        DWORD_ nSize,
55
-        va_list *Arguments
56
-        );
57
-
58
-    //                using ::FormatMessageW;
59
-    __declspec(dllimport)
60
-    DWORD_
61
-    WINAPI
62
-    FormatMessageW(
63
-        DWORD_ dwFlags,
64
-        LPCVOID_ lpSource,
65
-        DWORD_ dwMessageId,
66
-        DWORD_ dwLanguageId,
67
-        LPWSTR_ lpBuffer,
68
-        DWORD_ nSize,
69
-        va_list *Arguments
70
-        );
71
-
72
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
-    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
-
80
-    const char LANG_NEUTRAL_=                  0x00;
81
-    const char LANG_INVARIANT_=                0x7f;
82
-
83
-    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
-        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
-    }
87
-
88
-}
89
-#endif
90
-}
91
-}
92
-}
93
-#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
1
+//  error_handling.hpp  --------------------------------------------------------------//
2
+
3
+//  Copyright 2010 Vicente J. Botet Escriba
4
+
5
+//  Distributed under the Boost Software License, Version 1.0.
6
+//  See http://www.boost.org/LICENSE_1_0.txt
7
+
8
+
9
+#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
+#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
+
12
+#include <boost/detail/winapi/basic_types.hpp>
13
+#include <boost/detail/winapi/GetCurrentThread.hpp>
14
+
15
+#ifdef BOOST_HAS_PRAGMA_ONCE
16
+#pragma once
17
+#endif
18
+
19
+namespace boost {
20
+namespace detail {
21
+namespace winapi {
22
+
23
+#if defined( BOOST_USE_WINDOWS_H )
24
+    using ::FormatMessageA;
25
+    using ::FormatMessageW;
26
+
27
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
+    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
+
35
+    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
+    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
+
38
+    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
+        return MAKELANGID(p,s);
41
+    }
42
+#else
43
+extern "C" {
44
+    //                using ::FormatMessageA;
45
+    __declspec(dllimport)
46
+    DWORD_
47
+    WINAPI
48
+    FormatMessageA(
49
+        DWORD_ dwFlags,
50
+        LPCVOID_ lpSource,
51
+        DWORD_ dwMessageId,
52
+        DWORD_ dwLanguageId,
53
+        LPSTR_ lpBuffer,
54
+        DWORD_ nSize,
55
+        va_list *Arguments
56
+        );
57
+
58
+    //                using ::FormatMessageW;
59
+    __declspec(dllimport)
60
+    DWORD_
61
+    WINAPI
62
+    FormatMessageW(
63
+        DWORD_ dwFlags,
64
+        LPCVOID_ lpSource,
65
+        DWORD_ dwMessageId,
66
+        DWORD_ dwLanguageId,
67
+        LPWSTR_ lpBuffer,
68
+        DWORD_ nSize,
69
+        va_list *Arguments
70
+        );
71
+
72
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
+    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
+
80
+    const char LANG_NEUTRAL_=                  0x00;
81
+    const char LANG_INVARIANT_=                0x7f;
82
+
83
+    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
+        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
+    }
87
+
88
+}
89
+#endif
90
+}
91
+}
92
+}
93
+#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
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
Showing 1 changed files
... ...
@@ -1,93 +1,93 @@
1
-//  error_handling.hpp  --------------------------------------------------------------//
2
-
3
-//  Copyright 2010 Vicente J. Botet Escriba
4
-
5
-//  Distributed under the Boost Software License, Version 1.0.
6
-//  See http://www.boost.org/LICENSE_1_0.txt
7
-
8
-
9
-#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
-#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
-
12
-#include <boost/detail/winapi/basic_types.hpp>
13
-#include <boost/detail/winapi/GetCurrentThread.hpp>
14
-
15
-#ifdef BOOST_HAS_PRAGMA_ONCE
16
-#pragma once
17
-#endif
18
-
19
-namespace boost {
20
-namespace detail {
21
-namespace winapi {
22
-
23
-#if defined( BOOST_USE_WINDOWS_H )
24
-    using ::FormatMessageA;
25
-    using ::FormatMessageW;
26
-
27
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
-    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
-
35
-    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
-    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
-
38
-    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
-        return MAKELANGID(p,s);
41
-    }
42
-#else
43
-extern "C" {
44
-    //                using ::FormatMessageA;
45
-    __declspec(dllimport)
46
-    DWORD_
47
-    WINAPI
48
-    FormatMessageA(
49
-        DWORD_ dwFlags,
50
-        LPCVOID_ lpSource,
51
-        DWORD_ dwMessageId,
52
-        DWORD_ dwLanguageId,
53
-        LPSTR_ lpBuffer,
54
-        DWORD_ nSize,
55
-        va_list *Arguments
56
-        );
57
-
58
-    //                using ::FormatMessageW;
59
-    __declspec(dllimport)
60
-    DWORD_
61
-    WINAPI
62
-    FormatMessageW(
63
-        DWORD_ dwFlags,
64
-        LPCVOID_ lpSource,
65
-        DWORD_ dwMessageId,
66
-        DWORD_ dwLanguageId,
67
-        LPWSTR_ lpBuffer,
68
-        DWORD_ nSize,
69
-        va_list *Arguments
70
-        );
71
-
72
-    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
-    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
-    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
-    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
-    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
-    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
-    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
-
80
-    const char LANG_NEUTRAL_=                  0x00;
81
-    const char LANG_INVARIANT_=                0x7f;
82
-
83
-    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
-    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
-        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
-    }
87
-
88
-}
89
-#endif
90
-}
91
-}
92
-}
93
-#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
1
+//  error_handling.hpp  --------------------------------------------------------------//
2
+
3
+//  Copyright 2010 Vicente J. Botet Escriba
4
+
5
+//  Distributed under the Boost Software License, Version 1.0.
6
+//  See http://www.boost.org/LICENSE_1_0.txt
7
+
8
+
9
+#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
+#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
+
12
+#include <boost/detail/winapi/basic_types.hpp>
13
+#include <boost/detail/winapi/GetCurrentThread.hpp>
14
+
15
+#ifdef BOOST_HAS_PRAGMA_ONCE
16
+#pragma once
17
+#endif
18
+
19
+namespace boost {
20
+namespace detail {
21
+namespace winapi {
22
+
23
+#if defined( BOOST_USE_WINDOWS_H )
24
+    using ::FormatMessageA;
25
+    using ::FormatMessageW;
26
+
27
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
+    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
+
35
+    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
+    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
+
38
+    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
+        return MAKELANGID(p,s);
41
+    }
42
+#else
43
+extern "C" {
44
+    //                using ::FormatMessageA;
45
+    __declspec(dllimport)
46
+    DWORD_
47
+    WINAPI
48
+    FormatMessageA(
49
+        DWORD_ dwFlags,
50
+        LPCVOID_ lpSource,
51
+        DWORD_ dwMessageId,
52
+        DWORD_ dwLanguageId,
53
+        LPSTR_ lpBuffer,
54
+        DWORD_ nSize,
55
+        va_list *Arguments
56
+        );
57
+
58
+    //                using ::FormatMessageW;
59
+    __declspec(dllimport)
60
+    DWORD_
61
+    WINAPI
62
+    FormatMessageW(
63
+        DWORD_ dwFlags,
64
+        LPCVOID_ lpSource,
65
+        DWORD_ dwMessageId,
66
+        DWORD_ dwLanguageId,
67
+        LPWSTR_ lpBuffer,
68
+        DWORD_ nSize,
69
+        va_list *Arguments
70
+        );
71
+
72
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
+    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
+
80
+    const char LANG_NEUTRAL_=                  0x00;
81
+    const char LANG_INVARIANT_=                0x7f;
82
+
83
+    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
+        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
+    }
87
+
88
+}
89
+#endif
90
+}
91
+}
92
+}
93
+#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
Browse code

adding missing files

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

l.gatto authored on 28/05/2014 00:29:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,93 @@
1
+//  error_handling.hpp  --------------------------------------------------------------//
2
+
3
+//  Copyright 2010 Vicente J. Botet Escriba
4
+
5
+//  Distributed under the Boost Software License, Version 1.0.
6
+//  See http://www.boost.org/LICENSE_1_0.txt
7
+
8
+
9
+#ifndef BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
10
+#define BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP
11
+
12
+#include <boost/detail/winapi/basic_types.hpp>
13
+#include <boost/detail/winapi/GetCurrentThread.hpp>
14
+
15
+#ifdef BOOST_HAS_PRAGMA_ONCE
16
+#pragma once
17
+#endif
18
+
19
+namespace boost {
20
+namespace detail {
21
+namespace winapi {
22
+
23
+#if defined( BOOST_USE_WINDOWS_H )
24
+    using ::FormatMessageA;
25
+    using ::FormatMessageW;
26
+
27
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= FORMAT_MESSAGE_ALLOCATE_BUFFER;
28
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  FORMAT_MESSAGE_IGNORE_INSERTS;
29
+    const int FORMAT_MESSAGE_FROM_STRING_=     FORMAT_MESSAGE_FROM_STRING;
30
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    FORMAT_MESSAGE_FROM_HMODULE;
31
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     FORMAT_MESSAGE_FROM_SYSTEM;
32
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  FORMAT_MESSAGE_ARGUMENT_ARRAY;
33
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  FORMAT_MESSAGE_MAX_WIDTH_MASK;
34
+
35
+    const char LANG_NEUTRAL_=                  LANG_NEUTRAL;
36
+    const char LANG_INVARIANT_=                LANG_INVARIANT;
37
+
38
+    const char SUBLANG_DEFAULT_=               SUBLANG_DEFAULT;    // user default
39
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
40
+        return MAKELANGID(p,s);
41
+    }
42
+#else
43
+extern "C" {
44
+    //                using ::FormatMessageA;
45
+    __declspec(dllimport)
46
+    DWORD_
47
+    WINAPI
48
+    FormatMessageA(
49
+        DWORD_ dwFlags,
50
+        LPCVOID_ lpSource,
51
+        DWORD_ dwMessageId,
52
+        DWORD_ dwLanguageId,
53
+        LPSTR_ lpBuffer,
54
+        DWORD_ nSize,
55
+        va_list *Arguments
56
+        );
57
+
58
+    //                using ::FormatMessageW;
59
+    __declspec(dllimport)
60
+    DWORD_
61
+    WINAPI
62
+    FormatMessageW(
63
+        DWORD_ dwFlags,
64
+        LPCVOID_ lpSource,
65
+        DWORD_ dwMessageId,
66
+        DWORD_ dwLanguageId,
67
+        LPWSTR_ lpBuffer,
68
+        DWORD_ nSize,
69
+        va_list *Arguments
70
+        );
71
+
72
+    const int FORMAT_MESSAGE_ALLOCATE_BUFFER_= 0x00000100;
73
+    const int FORMAT_MESSAGE_IGNORE_INSERTS_=  0x00000200;
74
+    const int FORMAT_MESSAGE_FROM_STRING_=     0x00000400;
75
+    const int FORMAT_MESSAGE_FROM_HMODULE_=    0x00000800;
76
+    const int FORMAT_MESSAGE_FROM_SYSTEM_=     0x00001000;
77
+    const int FORMAT_MESSAGE_ARGUMENT_ARRAY_=  0x00002000;
78
+    const int FORMAT_MESSAGE_MAX_WIDTH_MASK_=  0x000000FF;
79
+
80
+    const char LANG_NEUTRAL_=                  0x00;
81
+    const char LANG_INVARIANT_=                0x7f;
82
+
83
+    const char SUBLANG_DEFAULT_=               0x01;    // user default
84
+    inline WORD_ MAKELANGID_(WORD_ p, WORD_ s) {
85
+        return ((((WORD_  )(s)) << 10) | (WORD_  )(p));
86
+    }
87
+
88
+}
89
+#endif
90
+}
91
+}
92
+}
93
+#endif // BOOST_DETAIL_WINAPI_ERROR_HANDLING_HPP