r2corba 1.4.1 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES +15 -1
- data/LICENSE +5 -5
- data/README.rdoc +62 -0
- data/THANKS +7 -5
- data/bin/r2corba +1 -1
- data/bin/ridlc +1 -1
- data/bin/rins +1 -1
- data/ext/extload/extload.c +5 -6
- data/ext/libr2tao/any.cpp +1 -2
- data/ext/libr2tao/exception.cpp +0 -1
- data/ext/libr2tao/exception.h +0 -2
- data/ext/libr2tao/longdouble.cpp +0 -1
- data/ext/libr2tao/longdouble.h +0 -1
- data/ext/libr2tao/object.cpp +4 -4
- data/ext/libr2tao/object.h +0 -1
- data/ext/libr2tao/orb.cpp +8 -9
- data/ext/libr2tao/orb.h +0 -1
- data/ext/libr2tao/r2tao_export.h +1 -2
- data/ext/libr2tao/r2tao_ext.h +0 -13
- data/ext/libr2tao/required.cpp +3 -22
- data/ext/libr2tao/required.h +14 -51
- data/ext/libr2tao/typecode.cpp +0 -1
- data/ext/libr2tao/typecode.h +0 -1
- data/ext/libr2tao/values.cpp +13 -14
- data/ext/libr2tao/values.h +20 -23
- data/ext/librpoa/iortable.cpp +3 -3
- data/ext/librpoa/poa.cpp +7 -7
- data/ext/librpoa/poa.h +0 -1
- data/ext/librpoa/rpoa_export.h +0 -1
- data/ext/librpoa/servant.cpp +17 -92
- data/ext/librpoa/servant.h +13 -36
- data/ext/librpol/policies.cpp +0 -1
- data/ext/librpol/policies.h +0 -1
- data/ext/librpol/rpol_export.h +0 -1
- data/lib/corba.rb +0 -1
- data/lib/corba/cbase/IORMap.rb +0 -1
- data/lib/corba/cbase/ORB.rb +15 -10
- data/lib/corba/cbase/Request.rb +1 -2
- data/lib/corba/cbase/Streams.rb +2 -3
- data/lib/corba/cbase/Stub.rb +0 -1
- data/lib/corba/cbase/Typecode.rb +6 -7
- data/lib/corba/cbase/Values.rb +0 -1
- data/lib/corba/cbase/exception.rb +2 -3
- data/lib/corba/cbase/poa.rb +0 -1
- data/lib/corba/cbase/policies.rb +2 -3
- data/lib/corba/cbase/post_require.rb +1 -2
- data/lib/corba/cbase/require.rb +2 -1
- data/lib/corba/cmds/base.rb +1 -2
- data/lib/corba/cmds/test.rb +0 -1
- data/lib/corba/common/Any.rb +1 -2
- data/lib/corba/common/IDL.rb +5 -9
- data/lib/corba/common/ORB.rb +2 -3
- data/lib/corba/common/Object.rb +5 -3
- data/lib/corba/common/Request.rb +1 -2
- data/lib/corba/common/Servant.rb +0 -1
- data/lib/corba/common/Struct.rb +1 -2
- data/lib/corba/common/Stub.rb +1 -2
- data/lib/corba/common/Typecode.rb +56 -57
- data/lib/corba/common/Union.rb +1 -2
- data/lib/corba/common/Values.rb +1 -2
- data/lib/corba/common/const.rb +2 -3
- data/lib/corba/common/exception.rb +0 -1
- data/lib/corba/common/require.rb +8 -1
- data/lib/corba/common/version.rb +3 -4
- data/lib/corba/idl/IDL.rb +0 -1
- data/lib/corba/idl/IORTable.pidl +0 -1
- data/lib/corba/idl/TAO_Ext.pidl +0 -1
- data/lib/corba/idl/require.rb +0 -1
- data/lib/corba/jbase/Any.rb +24 -25
- data/lib/corba/jbase/IORMap.rb +1 -2
- data/lib/corba/jbase/ORB.rb +17 -5
- data/lib/corba/jbase/Object.rb +12 -12
- data/lib/corba/jbase/Request.rb +6 -7
- data/lib/corba/jbase/Servant.rb +14 -14
- data/lib/corba/jbase/ServerRequest.rb +8 -9
- data/lib/corba/jbase/Streams.rb +4 -5
- data/lib/corba/jbase/Stub.rb +0 -1
- data/lib/corba/jbase/Typecode.rb +14 -15
- data/lib/corba/jbase/Values.rb +0 -1
- data/lib/corba/jbase/exception.rb +1 -2
- data/lib/corba/jbase/poa.rb +3 -4
- data/lib/corba/jbase/policies.rb +4 -5
- data/lib/corba/jbase/post_require.rb +0 -1
- data/lib/corba/jbase/require.rb +7 -5
- data/lib/corba/naming.rb +0 -1
- data/lib/corba/naming_service.rb +0 -1
- data/lib/corba/poa.rb +1 -2
- data/lib/corba/policies.rb +1 -2
- data/lib/corba/require.rb +2 -3
- data/lib/corba/svcs/ins/cos_naming.rb +64 -67
- data/lib/corba/svcs/ins/ins.rb +24 -25
- data/lib/corba/svcs/ins/naming_service.rb +3 -4
- data/lib/ridlbe/ruby/config.rb +55 -58
- data/lib/ridlbe/ruby/require.rb +0 -1
- data/lib/ridlbe/ruby/walker.rb +38 -38
- data/mkrf_conf_srcgem.rb +16 -12
- data/rakelib/bin.rake +2 -3
- data/rakelib/bin.rb +4 -5
- data/rakelib/build.rake +21 -21
- data/rakelib/config.rake +1 -2
- data/rakelib/config.rb +114 -22
- data/rakelib/ext.rake +16 -16
- data/rakelib/ext.rb +18 -49
- data/rakelib/ext_r2tao.rb +38 -25
- data/rakelib/gem.rake +86 -47
- data/rakelib/gem.rb +14 -15
- data/rakelib/package.rake +1 -2
- data/rakelib/test.rake +0 -1
- data/test/BiDirectional/Test.idl +0 -1
- data/test/BiDirectional/client.rb +4 -5
- data/test/BiDirectional/run_test.rb +1 -2
- data/test/BiDirectional/server.rb +4 -6
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
- data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
- data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
- data/test/Collocation/Diamond.idl +0 -1
- data/test/Collocation/run_test.rb +0 -1
- data/test/Collocation/test.rb +2 -3
- data/test/Connect_Timeout/Test.idl +0 -1
- data/test/Connect_Timeout/client.rb +3 -5
- data/test/Connect_Timeout/run_test.rb +0 -1
- data/test/DII/Test.idl +0 -1
- data/test/DII/client.rb +5 -6
- data/test/DII/run_test.rb +1 -2
- data/test/DII/server.rb +3 -4
- data/test/DSI/Test.idl +0 -1
- data/test/DSI/client.rb +3 -4
- data/test/DSI/run_test.rb +1 -2
- data/test/DSI/server.rb +3 -4
- data/test/Exceptions/Test.idl +0 -1
- data/test/Exceptions/client.rb +5 -6
- data/test/Exceptions/run_test.rb +1 -2
- data/test/Exceptions/server.rb +3 -4
- data/test/Hello/Test.idl +0 -1
- data/test/Hello/client.rb +3 -4
- data/test/Hello/run_test.rb +1 -2
- data/test/Hello/server.rb +3 -4
- data/test/IDL_Test/Test.idl +4 -1
- data/test/IDL_Test/client.rb +6 -5
- data/test/IDL_Test/run_test.rb +1 -2
- data/test/IDL_Test/server.rb +8 -4
- data/test/IORMap/Test.idl +0 -1
- data/test/IORMap/client.rb +3 -4
- data/test/IORMap/run_test.rb +1 -2
- data/test/IORMap/server.rb +4 -5
- data/test/IORTable/Test.idl +0 -1
- data/test/IORTable/client.rb +3 -4
- data/test/IORTable/run_test.rb +1 -2
- data/test/IORTable/server.rb +4 -5
- data/test/Implicit_Conversion/Test.idl +0 -1
- data/test/Implicit_Conversion/client.rb +4 -5
- data/test/Implicit_Conversion/run_test.rb +1 -2
- data/test/Implicit_Conversion/server.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
- data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
- data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
- data/test/Multi_Threading/Simple/Test.idl +1 -2
- data/test/Multi_Threading/Simple/client.rb +18 -14
- data/test/Multi_Threading/Simple/run_test.rb +1 -2
- data/test/Multi_Threading/Simple/server.rb +6 -7
- data/test/Multi_Threading/Threads/Test.idl +0 -4
- data/test/Multi_Threading/Threads/client.rb +10 -13
- data/test/Multi_Threading/Threads/run_test.rb +1 -2
- data/test/Multi_Threading/Threads/server.rb +5 -8
- data/test/Multi_Threading/Threads/watchdog.rb +3 -3
- data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
- data/test/Multiple_Servant_Interfaces/client.rb +3 -4
- data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
- data/test/Multiple_Servant_Interfaces/server.rb +3 -4
- data/test/Nil/Test.idl +0 -1
- data/test/Nil/run_test.rb +0 -1
- data/test/Nil/test.rb +11 -9
- data/test/OBV/AbstractInterface/client.rb +3 -4
- data/test/OBV/AbstractInterface/run_test.rb +1 -2
- data/test/OBV/AbstractInterface/server.rb +3 -4
- data/test/OBV/AbstractInterface/test.idl +0 -1
- data/test/OBV/Custom/OBV_impl.rb +0 -1
- data/test/OBV/Custom/client.rb +3 -4
- data/test/OBV/Custom/run_test.rb +1 -2
- data/test/OBV/Custom/server.rb +3 -4
- data/test/OBV/Simple/OBV_impl.rb +0 -1
- data/test/OBV/Simple/client.rb +3 -4
- data/test/OBV/Simple/run_test.rb +1 -2
- data/test/OBV/Simple/server.rb +3 -4
- data/test/OBV/Simple_Event/Event_impl.rb +0 -1
- data/test/OBV/Simple_Event/client.rb +3 -4
- data/test/OBV/Simple_Event/run_test.rb +1 -2
- data/test/OBV/Simple_Event/server.rb +3 -4
- data/test/OBV/Supports/client.rb +3 -4
- data/test/OBV/Supports/run_test.rb +1 -2
- data/test/OBV/Supports/server.rb +3 -4
- data/test/OBV/Supports/supports.idl +0 -1
- data/test/OBV/Supports/supports_impl.rb +0 -1
- data/test/OBV/Tree/client.rb +3 -4
- data/test/OBV/Tree/run_test.rb +1 -2
- data/test/OBV/Tree/server.rb +3 -4
- data/test/OBV/Tree/test.idl +0 -1
- data/test/OBV/Truncatable/Extra.idl +0 -1
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
- data/test/OBV/Truncatable/client.rb +4 -5
- data/test/OBV/Truncatable/run_test.rb +1 -2
- data/test/OBV/Truncatable/server.rb +3 -4
- data/test/OBV/ValueBox/client.rb +44 -45
- data/test/OBV/ValueBox/run_test.rb +1 -2
- data/test/OBV/ValueBox/server.rb +29 -29
- data/test/Object/Test.idl +0 -1
- data/test/Object/client.rb +33 -25
- data/test/Object/run_test.rb +1 -2
- data/test/Object/server.rb +3 -4
- data/test/POA/run_test.rb +0 -1
- data/test/POA/test.rb +4 -5
- data/test/Param_Test/client.rb +8 -9
- data/test/Param_Test/run_test.rb +1 -2
- data/test/Param_Test/server.rb +7 -8
- data/test/Performance/Simple/Test.idl +0 -1
- data/test/Performance/Simple/client.rb +3 -4
- data/test/Performance/Simple/run_test.rb +1 -2
- data/test/Performance/Simple/server.rb +3 -4
- data/test/Policies/Test.idl +0 -1
- data/test/Policies/run_test.rb +0 -1
- data/test/Policies/test.rb +2 -4
- data/test/Timeout/client.rb +6 -7
- data/test/Timeout/run_test.rb +1 -2
- data/test/Timeout/server.rb +4 -5
- data/test/Timeout/test.idl +0 -1
- data/test/lib/assert.rb +0 -2
- data/test/lib/test.rb +15 -17
- data/test/test_runner.rb +6 -8
- metadata +221 -222
- data/README +0 -62
- data/ext/librpoa/srvreq_fix.cpp +0 -283
- data/ext/librpoa/srvreq_fix.h +0 -149
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e920ffb5c3121f0f590343fd78737a1f18af807b6800812880e7d59a8d81586
|
4
|
+
data.tar.gz: 7b285e71aefed6353b2b28405e6a5b970705f27c2397fb5acea0e922dedbee48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 791e4da7b7477da1b3c63e75040b1d690816e669be8e9d9d7607daaec2612a80001413dbb3a30ce683d2e89573f6379068676fe91ee82157d74a437d78cc4239
|
7
|
+
data.tar.gz: d61caa1200c08e3e4f96f3fea2626fba209d16e47c7a91932177c700f00aff0d7937903051b4a269b30de79e62fb07c186d2f3aae6178619382e3936fd6b6307
|
data/CHANGES
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
|
2
|
-
Current version: 1.
|
2
|
+
Current version: 1.5.1
|
3
|
+
|
4
|
+
Changes since version 1.4.1:
|
5
|
+
|
6
|
+
o Added support for MRI Ruby 2.1.x & 2.2.x (32 & 64 bits)
|
7
|
+
|
8
|
+
o Added support for TAO <= 2.3.1
|
9
|
+
|
10
|
+
o Added support for JRuby <= 1.7.19
|
11
|
+
|
12
|
+
o Added support for JacORB <= 3.5
|
13
|
+
|
14
|
+
o Upgraded RIDL frontend to 2.5.5
|
15
|
+
|
16
|
+
o Officially drop MRI Ruby < 1.9 support
|
3
17
|
|
4
18
|
Changes since version 1.3.1:
|
5
19
|
|
data/LICENSE
CHANGED
@@ -8,12 +8,12 @@ written in Ruby, C++ and Java. It is designed to provide a CORBA mapping for
|
|
8
8
|
the Ruby programming language.
|
9
9
|
Instead of going for a complete native Ruby mapping implementing a native
|
10
10
|
Ruby ORB, R2CORBA aims at providing CORBA functionality through a Ruby
|
11
|
-
extension using the DII and DSI interfaces of an existing CORBA ORB
|
11
|
+
extension using the DII and DSI interfaces of an existing CORBA ORB
|
12
12
|
implementation.
|
13
13
|
There are currently two flavors of this extension available:
|
14
|
-
o an MRI Ruby extension written in Ruby and C/C++ using TAO
|
15
|
-
(The ACE ORB; see http://www.
|
16
|
-
o a JRuby extension written in Ruby and Java using JacORB
|
14
|
+
o an MRI Ruby extension written in Ruby and C/C++ using TAO
|
15
|
+
(The ACE ORB; see http://www.dre.vanderbilt.edu/~schmidt/TAO.html).
|
16
|
+
o a JRuby extension written in Ruby and Java using JacORB
|
17
17
|
(http://www.jacorb.org/index.html).
|
18
18
|
A native Ruby implementation of an OMG IDL compiler supplements this
|
19
19
|
extension and provides powerful features like direct inclusion of IDL
|
@@ -56,4 +56,4 @@ IN NO EVENT WILL REMEDY IT OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE
|
|
56
56
|
FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL
|
57
57
|
DAMAGES, EVEN IF REMEDY IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
58
58
|
|
59
|
-
R2CORBA is Copyright Remedy IT.
|
59
|
+
R2CORBA is Copyright Remedy IT. Duiven, The Netherlands, 2006-2019.
|
data/README.rdoc
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
{<img src="https://badge.fury.io/rb/r2corba.svg" alt="Gem Version" />}[https://rubygems.org/gems/r2corba]
|
2
|
+
{<img src="https://www.codefactor.io/repository/github/remedyit/r2corba/badge" alt="CodeFactor" />}[https://www.codefactor.io/repository/github/remedyit/r2corba]
|
3
|
+
{<img src="https://github.com/RemedyIT/r2corba/workflows/linux/badge.svg" alt="Linux CI" />}[https://github.com/RemedyIT/r2corba/actions?query=workflow%3Alinux]
|
4
|
+
{<img src="https://github.com/RemedyIT/r2corba/workflows/windows/badge.svg" alt="Windows CI" />}[https://github.com/RemedyIT/r2corba/actions?query=workflow%3Awindows]
|
5
|
+
|
6
|
+
= R2CORBA
|
7
|
+
|
8
|
+
== Description
|
9
|
+
|
10
|
+
R2CORBA (Ruby2CORBA) is a {CORBA}[https://www.omg.org/spec/CORBA] language mapping implementation for the {Ruby programming language}[https://www.ruby-lang.org].
|
11
|
+
|
12
|
+
== Synopsis
|
13
|
+
|
14
|
+
R2CORBA provides a complete implementation of the standard OMG Ruby CORBA Language Mapping ({RCLM}[https://www.omg.org/spec/RCLM]) compliant with the latest version of the CORBA standard.
|
15
|
+
|
16
|
+
R2CORBA includes:
|
17
|
+
|
18
|
+
* an RCLM compliant RIDL code generator backend
|
19
|
+
* an RCLM compliant API
|
20
|
+
* multiple ORB implementations through an extension framework
|
21
|
+
|
22
|
+
Instead of going for a complete native Ruby mapping implementing a native Ruby ORB, R2CORBA aims at providing CORBA functionality through a Ruby extension using the DII and DSI interfaces of an existing CORBA ORB implementation. There are currently two flavors of this extension available:
|
23
|
+
|
24
|
+
* an MRI Ruby extension written in Ruby and C/C++ using {TAO}[https://www.remedy.nl/opensource/tao.html]
|
25
|
+
* a JRuby extension written in Ruby and Java using {JacORB}[https://www.remedy.nl/opensource/jacorb.html]
|
26
|
+
|
27
|
+
The {RIDL}[https://www.remedy.nl/opensource/ridl.html] based, native Ruby implementation of an OMG \IDL compiler supplements this extension and provides powerful features like direct inclusion of \IDL language modules into your Ruby programs without the need of explicit, separate stub generation.
|
28
|
+
|
29
|
+
== How to get R2CORBA
|
30
|
+
|
31
|
+
Execute
|
32
|
+
|
33
|
+
gem install r2corba
|
34
|
+
|
35
|
+
to install R2CORBA as a gem.
|
36
|
+
|
37
|
+
== Bugs
|
38
|
+
|
39
|
+
If you find a bug, please report it at the R2CORBA project's {issue tracker}[https://github.com/RemedyIT/r2corba/issues].
|
40
|
+
|
41
|
+
== License
|
42
|
+
|
43
|
+
R2CORBA is Copyright (c) 2007-2021 Remedy IT Expertise BV, The Netherlands.
|
44
|
+
|
45
|
+
It is free software, and may be redistributed under the terms specified in the link:LICENSE file.
|
46
|
+
|
47
|
+
== Acknowledgments
|
48
|
+
|
49
|
+
See the link:THANKS file.
|
50
|
+
|
51
|
+
== Warranty
|
52
|
+
|
53
|
+
This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.
|
54
|
+
|
55
|
+
== Releasing new r2corba gems
|
56
|
+
|
57
|
+
A new r2corba ruby gem release can be made by incrementing the R2CORBA version in link:lib/corba/common/version.rb and create a new release on {github}[https://github.com/RemedyIT/r2corba/releases] matching the new version (for example v1.6.0). The github {Ruby Gem Release}[https://github.com/RemedyIT/r2corba/actions?query=workflow%3A%22Ruby+Gem+Release%22] action will automatically create a new {r2corba}[https://www.rubygems.org/gems/r2corba] and {taosource}[https://www.rubygems.org/gems/taosource] gem and push these to Rubygems.org.
|
58
|
+
|
59
|
+
A new R2CORBA taosource gem can be created by executing
|
60
|
+
|
61
|
+
rake r2corba:gem:taogem
|
62
|
+
|
data/THANKS
CHANGED
@@ -15,7 +15,7 @@ Our thanks go to:
|
|
15
15
|
OS abstraction and multiplatform compatibility of this software
|
16
16
|
make it an ideal ingredient for a Ruby CORBA implementation.
|
17
17
|
|
18
|
-
* The people of the JacORB development team (a.o. Gerald Brose and
|
18
|
+
* The people of the JacORB development team (a.o. Gerald Brose and
|
19
19
|
Andre Spiegel) and all their collaborators for creating a high-
|
20
20
|
performance, multi threaded and spec compliant ORB for the
|
21
21
|
Java environment.
|
@@ -26,7 +26,7 @@ Our thanks go to:
|
|
26
26
|
2001 (incl. RINN and Ruby-Orbit) which has helped us in many ways
|
27
27
|
to create R2CORBA.
|
28
28
|
|
29
|
-
* Paul Brannan of Automated Trading Desk, LLC for his
|
29
|
+
* Paul Brannan of Automated Trading Desk, LLC for his insightful
|
30
30
|
comments on the first release of the Ruby CORBA language mapping.
|
31
31
|
|
32
32
|
* Renato Lucindo and Eider Oliveira for their remarks and fixes for
|
@@ -36,7 +36,7 @@ Our thanks go to:
|
|
36
36
|
|
37
37
|
* William Otte for his patches for the Mac OSX port.
|
38
38
|
|
39
|
-
* David MacMahon for his comments and tests, especially with regard to
|
39
|
+
* David MacMahon for his comments and tests, especially with regard to
|
40
40
|
omniORBpy interoperability.
|
41
41
|
|
42
42
|
* David MacMahon for his Multi_Threading/Threads test.
|
@@ -46,7 +46,9 @@ Our thanks go to:
|
|
46
46
|
|
47
47
|
* Karsten Richter for reporting a bug in union implicit default
|
48
48
|
handling and providing a partial patch and regression test.
|
49
|
-
|
49
|
+
|
50
50
|
* Grant Birchmeier for reporting the RIDL logger bug (triggered
|
51
51
|
by an unknown pragma)
|
52
|
-
|
52
|
+
|
53
|
+
* Andrey Mramornov for reporting and testing the R2CORBA build
|
54
|
+
problems on Ubuntu.
|
data/bin/r2corba
CHANGED
data/bin/ridlc
CHANGED
data/bin/rins
CHANGED
data/ext/extload/extload.c
CHANGED
@@ -9,13 +9,12 @@ static TCHAR *pszPathEnd = 0;
|
|
9
9
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
10
10
|
{
|
11
11
|
(void)lpvReserved;
|
12
|
-
size_t len;
|
13
12
|
|
14
13
|
if (fdwReason == DLL_PROCESS_ATTACH)
|
15
14
|
{
|
16
15
|
GetModuleFileName(hinstDLL, &szModulePath[0], MAX_PATH);
|
17
16
|
/* find last path separator and cut off path to get foldername incl. last separator */
|
18
|
-
len = strlen (&szModulePath[0]);
|
17
|
+
size_t len = strlen (&szModulePath[0]);
|
19
18
|
while (len > 0 && szModulePath[--len] != '\\') ;
|
20
19
|
pszPathEnd = &szModulePath[len+1];
|
21
20
|
*pszPathEnd = '\0';
|
@@ -23,16 +22,15 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
23
22
|
return TRUE;
|
24
23
|
}
|
25
24
|
|
26
|
-
typedef void (WINAPI *TExtInit)(
|
25
|
+
typedef void (WINAPI *TExtInit)();
|
27
26
|
|
28
27
|
#define DEF_EXTENSION_INIT(LIBNAME) \
|
29
28
|
__declspec (dllexport) void Init_ ## LIBNAME ## w() \
|
30
29
|
{ \
|
31
|
-
const char *pszLibName; \
|
32
30
|
HMODULE hlib; \
|
33
31
|
TExtInit pfInit; \
|
34
32
|
\
|
35
|
-
pszLibName = #LIBNAME ".so"; \
|
33
|
+
const char *pszLibName = #LIBNAME ".so"; \
|
36
34
|
strcat (&szModulePath[0], pszLibName); \
|
37
35
|
if (NULL == (hlib = LoadLibraryEx(szModulePath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH))) \
|
38
36
|
{ \
|
@@ -41,7 +39,8 @@ __declspec (dllexport) void Init_ ## LIBNAME ## w() \
|
|
41
39
|
strcat (&szModulePath[0], pszLibName); \
|
42
40
|
if (NULL == (hlib = LoadLibraryEx(szModulePath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH))) \
|
43
41
|
{ \
|
44
|
-
|
42
|
+
DWORD dwError = GetLastError(); \
|
43
|
+
printf("ERROR: extload failed to load %s.so and %s, error code %lu\n", #LIBNAME, szModulePath, dwError); \
|
45
44
|
return; \
|
46
45
|
} \
|
47
46
|
} \
|
data/ext/libr2tao/any.cpp
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
|
14
13
|
#include "required.h"
|
@@ -715,8 +714,8 @@ R2TAO_EXPORT void r2tao_Ruby2Any(CORBA::Any& _any, CORBA::TypeCode_ptr _tc, VALU
|
|
715
714
|
// autowrap valuebox values
|
716
715
|
rval = r2tao_wrap_Valuebox (rval, _tc);
|
717
716
|
}
|
718
|
-
// fall through
|
719
717
|
}
|
718
|
+
// fall through
|
720
719
|
case CORBA::tk_value:
|
721
720
|
case CORBA::tk_event:
|
722
721
|
{
|
data/ext/libr2tao/exception.cpp
CHANGED
data/ext/libr2tao/exception.h
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
|
14
13
|
#ifndef __R2TAO_EXCEPTION_H
|
@@ -23,7 +22,6 @@
|
|
23
22
|
* see 19.16 "Mapping for Exception Types" and 19.22 "Handling Exceptions".
|
24
23
|
*
|
25
24
|
*/
|
26
|
-
|
27
25
|
#define R2TAO_TRY try
|
28
26
|
#define R2TAO_CATCH \
|
29
27
|
catch (const CORBA::SystemException& sex) \
|
data/ext/libr2tao/longdouble.cpp
CHANGED
data/ext/libr2tao/longdouble.h
CHANGED
data/ext/libr2tao/object.cpp
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
|
14
13
|
#include "required.h"
|
@@ -20,6 +19,7 @@
|
|
20
19
|
#include "object.h"
|
21
20
|
#include "exception.h"
|
22
21
|
#include "orb.h"
|
22
|
+
#include <memory>
|
23
23
|
|
24
24
|
R2TAO_EXPORT VALUE r2corba_cObject = 0;
|
25
25
|
R2TAO_EXPORT VALUE r2tao_cObject = 0;
|
@@ -562,7 +562,7 @@ public:
|
|
562
562
|
: req_ (req),
|
563
563
|
exception_ (false),
|
564
564
|
corba_ex_ (0) {}
|
565
|
-
virtual ~R2TAO_Request_BlockedRegionCaller ();
|
565
|
+
virtual ~R2TAO_Request_BlockedRegionCaller () noexcept(false);
|
566
566
|
|
567
567
|
VALUE call ();
|
568
568
|
|
@@ -578,13 +578,13 @@ protected:
|
|
578
578
|
CORBA::Exception* corba_ex_;
|
579
579
|
};
|
580
580
|
|
581
|
-
R2TAO_Request_BlockedRegionCaller::~R2TAO_Request_BlockedRegionCaller()
|
581
|
+
R2TAO_Request_BlockedRegionCaller::~R2TAO_Request_BlockedRegionCaller() noexcept(false)
|
582
582
|
{
|
583
583
|
if (this->exception_)
|
584
584
|
{
|
585
585
|
if (corba_ex_)
|
586
586
|
{
|
587
|
-
|
587
|
+
std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
|
588
588
|
corba_ex_->_raise ();
|
589
589
|
}
|
590
590
|
else
|
data/ext/libr2tao/object.h
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
#ifndef __R2TAO_OBJECT_H
|
14
13
|
#define __R2TAO_OBJECT_H
|
data/ext/libr2tao/orb.cpp
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
|
14
13
|
#include "orb.h"
|
@@ -21,7 +20,7 @@
|
|
21
20
|
#include "ace/Reactor.h"
|
22
21
|
#include "ace/Signal.h"
|
23
22
|
#include "ace/Sig_Handler.h"
|
24
|
-
#include
|
23
|
+
#include <memory>
|
25
24
|
|
26
25
|
#define RUBY_INVOKE_FUNC RUBY_ALLOC_FUNC
|
27
26
|
|
@@ -243,7 +242,7 @@ VALUE rCORBA_ORB_init(int _argc, VALUE *_argv, VALUE /*klass*/) {
|
|
243
242
|
char **argv;
|
244
243
|
int i;
|
245
244
|
CORBA::ORB_var orb;
|
246
|
-
|
245
|
+
std::unique_ptr<char*> argv_safe;
|
247
246
|
|
248
247
|
rb_scan_args(_argc, _argv, "02", &v0, &v1);
|
249
248
|
|
@@ -458,7 +457,7 @@ public:
|
|
458
457
|
timeout_ (&to),
|
459
458
|
exception_ (false),
|
460
459
|
corba_ex_ (0) {}
|
461
|
-
virtual ~R2TAO_ORB_BlockedRegionCaller ();
|
460
|
+
virtual ~R2TAO_ORB_BlockedRegionCaller () noexcept(false);
|
462
461
|
|
463
462
|
VALUE call (bool with_unblock=true);
|
464
463
|
|
@@ -478,13 +477,13 @@ protected:
|
|
478
477
|
CORBA::Exception* corba_ex_;
|
479
478
|
};
|
480
479
|
|
481
|
-
R2TAO_ORB_BlockedRegionCaller::~R2TAO_ORB_BlockedRegionCaller()
|
480
|
+
R2TAO_ORB_BlockedRegionCaller::~R2TAO_ORB_BlockedRegionCaller() noexcept(false)
|
482
481
|
{
|
483
482
|
if (this->exception_)
|
484
483
|
{
|
485
484
|
if (corba_ex_)
|
486
485
|
{
|
487
|
-
|
486
|
+
std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
|
488
487
|
corba_ex_->_raise ();
|
489
488
|
}
|
490
489
|
else
|
@@ -569,7 +568,7 @@ public:
|
|
569
568
|
: R2TAO_ORB_BlockedRegionCaller (orb), sg_(sg) {}
|
570
569
|
R2TAO_ORB_BlockedWorkPending (R2CSigGuard& sg, CORBA::ORB_ptr orb, ACE_Time_Value& to)
|
571
570
|
: R2TAO_ORB_BlockedRegionCaller (orb, to), sg_(sg) {}
|
572
|
-
virtual ~R2TAO_ORB_BlockedWorkPending ();
|
571
|
+
virtual ~R2TAO_ORB_BlockedWorkPending () noexcept(false);
|
573
572
|
|
574
573
|
protected:
|
575
574
|
virtual VALUE do_exec ();
|
@@ -578,7 +577,7 @@ private:
|
|
578
577
|
R2CSigGuard& sg_;
|
579
578
|
};
|
580
579
|
|
581
|
-
R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending()
|
580
|
+
R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending() noexcept(false)
|
582
581
|
{
|
583
582
|
if (this->exception_)
|
584
583
|
{
|
@@ -586,7 +585,7 @@ R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending()
|
|
586
585
|
try {
|
587
586
|
if (corba_ex_)
|
588
587
|
{
|
589
|
-
|
588
|
+
std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
|
590
589
|
corba_ex_->_raise ();
|
591
590
|
}
|
592
591
|
else
|
data/ext/libr2tao/orb.h
CHANGED
data/ext/libr2tao/r2tao_export.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// -*- C++ -*-
|
2
2
|
/*--------------------------------------------------------------------
|
3
|
-
#
|
3
|
+
# r2tao_export.h - R2TAO CORBA basic support
|
4
4
|
#
|
5
5
|
# Author: Martin Corino
|
6
6
|
#
|
@@ -9,7 +9,6 @@
|
|
9
9
|
# included with this program.
|
10
10
|
#
|
11
11
|
# Copyright (c) Remedy IT Expertise BV
|
12
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
13
12
|
#------------------------------------------------------------------*/
|
14
13
|
#ifndef R2TAO_EXPORT_H
|
15
14
|
#define R2TAO_EXPORT_H
|
data/ext/libr2tao/r2tao_ext.h
CHANGED
@@ -8,15 +8,10 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#------------------------------------------------------------------*/
|
13
12
|
#ifndef __R2TAO_EXT_H
|
14
13
|
#define __R2TAO_EXT_H
|
15
14
|
|
16
|
-
#if defined (__cplusplus)
|
17
|
-
};
|
18
|
-
#endif
|
19
|
-
|
20
15
|
#if defined (OLD_MSC_VER)
|
21
16
|
// un-fudge the version macro here that was fudged
|
22
17
|
// in required.h otherwise ACE will complain
|
@@ -24,15 +19,7 @@
|
|
24
19
|
#define _MSC_VER OLD_MSC_VER
|
25
20
|
#endif
|
26
21
|
|
27
|
-
#include <ace/pre.h>
|
28
|
-
|
29
22
|
#include <ace/config-all.h>
|
30
23
|
|
31
|
-
#include <ace/post.h>
|
32
|
-
|
33
|
-
#if defined (__cplusplus)
|
34
|
-
extern "C" {
|
35
|
-
#endif
|
36
|
-
|
37
24
|
#endif
|
38
25
|
|