r2corba 1.4.1 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +15 -1
  3. data/LICENSE +5 -5
  4. data/README.rdoc +62 -0
  5. data/THANKS +7 -5
  6. data/bin/r2corba +1 -1
  7. data/bin/ridlc +1 -1
  8. data/bin/rins +1 -1
  9. data/ext/extload/extload.c +5 -6
  10. data/ext/libr2tao/any.cpp +1 -2
  11. data/ext/libr2tao/exception.cpp +0 -1
  12. data/ext/libr2tao/exception.h +0 -2
  13. data/ext/libr2tao/longdouble.cpp +0 -1
  14. data/ext/libr2tao/longdouble.h +0 -1
  15. data/ext/libr2tao/object.cpp +4 -4
  16. data/ext/libr2tao/object.h +0 -1
  17. data/ext/libr2tao/orb.cpp +8 -9
  18. data/ext/libr2tao/orb.h +0 -1
  19. data/ext/libr2tao/r2tao_export.h +1 -2
  20. data/ext/libr2tao/r2tao_ext.h +0 -13
  21. data/ext/libr2tao/required.cpp +3 -22
  22. data/ext/libr2tao/required.h +14 -51
  23. data/ext/libr2tao/typecode.cpp +0 -1
  24. data/ext/libr2tao/typecode.h +0 -1
  25. data/ext/libr2tao/values.cpp +13 -14
  26. data/ext/libr2tao/values.h +20 -23
  27. data/ext/librpoa/iortable.cpp +3 -3
  28. data/ext/librpoa/poa.cpp +7 -7
  29. data/ext/librpoa/poa.h +0 -1
  30. data/ext/librpoa/rpoa_export.h +0 -1
  31. data/ext/librpoa/servant.cpp +17 -92
  32. data/ext/librpoa/servant.h +13 -36
  33. data/ext/librpol/policies.cpp +0 -1
  34. data/ext/librpol/policies.h +0 -1
  35. data/ext/librpol/rpol_export.h +0 -1
  36. data/lib/corba.rb +0 -1
  37. data/lib/corba/cbase/IORMap.rb +0 -1
  38. data/lib/corba/cbase/ORB.rb +15 -10
  39. data/lib/corba/cbase/Request.rb +1 -2
  40. data/lib/corba/cbase/Streams.rb +2 -3
  41. data/lib/corba/cbase/Stub.rb +0 -1
  42. data/lib/corba/cbase/Typecode.rb +6 -7
  43. data/lib/corba/cbase/Values.rb +0 -1
  44. data/lib/corba/cbase/exception.rb +2 -3
  45. data/lib/corba/cbase/poa.rb +0 -1
  46. data/lib/corba/cbase/policies.rb +2 -3
  47. data/lib/corba/cbase/post_require.rb +1 -2
  48. data/lib/corba/cbase/require.rb +2 -1
  49. data/lib/corba/cmds/base.rb +1 -2
  50. data/lib/corba/cmds/test.rb +0 -1
  51. data/lib/corba/common/Any.rb +1 -2
  52. data/lib/corba/common/IDL.rb +5 -9
  53. data/lib/corba/common/ORB.rb +2 -3
  54. data/lib/corba/common/Object.rb +5 -3
  55. data/lib/corba/common/Request.rb +1 -2
  56. data/lib/corba/common/Servant.rb +0 -1
  57. data/lib/corba/common/Struct.rb +1 -2
  58. data/lib/corba/common/Stub.rb +1 -2
  59. data/lib/corba/common/Typecode.rb +56 -57
  60. data/lib/corba/common/Union.rb +1 -2
  61. data/lib/corba/common/Values.rb +1 -2
  62. data/lib/corba/common/const.rb +2 -3
  63. data/lib/corba/common/exception.rb +0 -1
  64. data/lib/corba/common/require.rb +8 -1
  65. data/lib/corba/common/version.rb +3 -4
  66. data/lib/corba/idl/IDL.rb +0 -1
  67. data/lib/corba/idl/IORTable.pidl +0 -1
  68. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  69. data/lib/corba/idl/require.rb +0 -1
  70. data/lib/corba/jbase/Any.rb +24 -25
  71. data/lib/corba/jbase/IORMap.rb +1 -2
  72. data/lib/corba/jbase/ORB.rb +17 -5
  73. data/lib/corba/jbase/Object.rb +12 -12
  74. data/lib/corba/jbase/Request.rb +6 -7
  75. data/lib/corba/jbase/Servant.rb +14 -14
  76. data/lib/corba/jbase/ServerRequest.rb +8 -9
  77. data/lib/corba/jbase/Streams.rb +4 -5
  78. data/lib/corba/jbase/Stub.rb +0 -1
  79. data/lib/corba/jbase/Typecode.rb +14 -15
  80. data/lib/corba/jbase/Values.rb +0 -1
  81. data/lib/corba/jbase/exception.rb +1 -2
  82. data/lib/corba/jbase/poa.rb +3 -4
  83. data/lib/corba/jbase/policies.rb +4 -5
  84. data/lib/corba/jbase/post_require.rb +0 -1
  85. data/lib/corba/jbase/require.rb +7 -5
  86. data/lib/corba/naming.rb +0 -1
  87. data/lib/corba/naming_service.rb +0 -1
  88. data/lib/corba/poa.rb +1 -2
  89. data/lib/corba/policies.rb +1 -2
  90. data/lib/corba/require.rb +2 -3
  91. data/lib/corba/svcs/ins/cos_naming.rb +64 -67
  92. data/lib/corba/svcs/ins/ins.rb +24 -25
  93. data/lib/corba/svcs/ins/naming_service.rb +3 -4
  94. data/lib/ridlbe/ruby/config.rb +55 -58
  95. data/lib/ridlbe/ruby/require.rb +0 -1
  96. data/lib/ridlbe/ruby/walker.rb +38 -38
  97. data/mkrf_conf_srcgem.rb +16 -12
  98. data/rakelib/bin.rake +2 -3
  99. data/rakelib/bin.rb +4 -5
  100. data/rakelib/build.rake +21 -21
  101. data/rakelib/config.rake +1 -2
  102. data/rakelib/config.rb +114 -22
  103. data/rakelib/ext.rake +16 -16
  104. data/rakelib/ext.rb +18 -49
  105. data/rakelib/ext_r2tao.rb +38 -25
  106. data/rakelib/gem.rake +86 -47
  107. data/rakelib/gem.rb +14 -15
  108. data/rakelib/package.rake +1 -2
  109. data/rakelib/test.rake +0 -1
  110. data/test/BiDirectional/Test.idl +0 -1
  111. data/test/BiDirectional/client.rb +4 -5
  112. data/test/BiDirectional/run_test.rb +1 -2
  113. data/test/BiDirectional/server.rb +4 -6
  114. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  115. data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
  116. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
  117. data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
  118. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  119. data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
  120. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
  121. data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
  122. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  123. data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
  124. data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
  125. data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
  126. data/test/Collocation/Diamond.idl +0 -1
  127. data/test/Collocation/run_test.rb +0 -1
  128. data/test/Collocation/test.rb +2 -3
  129. data/test/Connect_Timeout/Test.idl +0 -1
  130. data/test/Connect_Timeout/client.rb +3 -5
  131. data/test/Connect_Timeout/run_test.rb +0 -1
  132. data/test/DII/Test.idl +0 -1
  133. data/test/DII/client.rb +5 -6
  134. data/test/DII/run_test.rb +1 -2
  135. data/test/DII/server.rb +3 -4
  136. data/test/DSI/Test.idl +0 -1
  137. data/test/DSI/client.rb +3 -4
  138. data/test/DSI/run_test.rb +1 -2
  139. data/test/DSI/server.rb +3 -4
  140. data/test/Exceptions/Test.idl +0 -1
  141. data/test/Exceptions/client.rb +5 -6
  142. data/test/Exceptions/run_test.rb +1 -2
  143. data/test/Exceptions/server.rb +3 -4
  144. data/test/Hello/Test.idl +0 -1
  145. data/test/Hello/client.rb +3 -4
  146. data/test/Hello/run_test.rb +1 -2
  147. data/test/Hello/server.rb +3 -4
  148. data/test/IDL_Test/Test.idl +4 -1
  149. data/test/IDL_Test/client.rb +6 -5
  150. data/test/IDL_Test/run_test.rb +1 -2
  151. data/test/IDL_Test/server.rb +8 -4
  152. data/test/IORMap/Test.idl +0 -1
  153. data/test/IORMap/client.rb +3 -4
  154. data/test/IORMap/run_test.rb +1 -2
  155. data/test/IORMap/server.rb +4 -5
  156. data/test/IORTable/Test.idl +0 -1
  157. data/test/IORTable/client.rb +3 -4
  158. data/test/IORTable/run_test.rb +1 -2
  159. data/test/IORTable/server.rb +4 -5
  160. data/test/Implicit_Conversion/Test.idl +0 -1
  161. data/test/Implicit_Conversion/client.rb +4 -5
  162. data/test/Implicit_Conversion/run_test.rb +1 -2
  163. data/test/Implicit_Conversion/server.rb +3 -4
  164. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  165. data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
  166. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
  167. data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
  168. data/test/Multi_Threading/Simple/Test.idl +1 -2
  169. data/test/Multi_Threading/Simple/client.rb +18 -14
  170. data/test/Multi_Threading/Simple/run_test.rb +1 -2
  171. data/test/Multi_Threading/Simple/server.rb +6 -7
  172. data/test/Multi_Threading/Threads/Test.idl +0 -4
  173. data/test/Multi_Threading/Threads/client.rb +10 -13
  174. data/test/Multi_Threading/Threads/run_test.rb +1 -2
  175. data/test/Multi_Threading/Threads/server.rb +5 -8
  176. data/test/Multi_Threading/Threads/watchdog.rb +3 -3
  177. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  178. data/test/Multiple_Servant_Interfaces/client.rb +3 -4
  179. data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
  180. data/test/Multiple_Servant_Interfaces/server.rb +3 -4
  181. data/test/Nil/Test.idl +0 -1
  182. data/test/Nil/run_test.rb +0 -1
  183. data/test/Nil/test.rb +11 -9
  184. data/test/OBV/AbstractInterface/client.rb +3 -4
  185. data/test/OBV/AbstractInterface/run_test.rb +1 -2
  186. data/test/OBV/AbstractInterface/server.rb +3 -4
  187. data/test/OBV/AbstractInterface/test.idl +0 -1
  188. data/test/OBV/Custom/OBV_impl.rb +0 -1
  189. data/test/OBV/Custom/client.rb +3 -4
  190. data/test/OBV/Custom/run_test.rb +1 -2
  191. data/test/OBV/Custom/server.rb +3 -4
  192. data/test/OBV/Simple/OBV_impl.rb +0 -1
  193. data/test/OBV/Simple/client.rb +3 -4
  194. data/test/OBV/Simple/run_test.rb +1 -2
  195. data/test/OBV/Simple/server.rb +3 -4
  196. data/test/OBV/Simple_Event/Event_impl.rb +0 -1
  197. data/test/OBV/Simple_Event/client.rb +3 -4
  198. data/test/OBV/Simple_Event/run_test.rb +1 -2
  199. data/test/OBV/Simple_Event/server.rb +3 -4
  200. data/test/OBV/Supports/client.rb +3 -4
  201. data/test/OBV/Supports/run_test.rb +1 -2
  202. data/test/OBV/Supports/server.rb +3 -4
  203. data/test/OBV/Supports/supports.idl +0 -1
  204. data/test/OBV/Supports/supports_impl.rb +0 -1
  205. data/test/OBV/Tree/client.rb +3 -4
  206. data/test/OBV/Tree/run_test.rb +1 -2
  207. data/test/OBV/Tree/server.rb +3 -4
  208. data/test/OBV/Tree/test.idl +0 -1
  209. data/test/OBV/Truncatable/Extra.idl +0 -1
  210. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  211. data/test/OBV/Truncatable/client.rb +4 -5
  212. data/test/OBV/Truncatable/run_test.rb +1 -2
  213. data/test/OBV/Truncatable/server.rb +3 -4
  214. data/test/OBV/ValueBox/client.rb +44 -45
  215. data/test/OBV/ValueBox/run_test.rb +1 -2
  216. data/test/OBV/ValueBox/server.rb +29 -29
  217. data/test/Object/Test.idl +0 -1
  218. data/test/Object/client.rb +33 -25
  219. data/test/Object/run_test.rb +1 -2
  220. data/test/Object/server.rb +3 -4
  221. data/test/POA/run_test.rb +0 -1
  222. data/test/POA/test.rb +4 -5
  223. data/test/Param_Test/client.rb +8 -9
  224. data/test/Param_Test/run_test.rb +1 -2
  225. data/test/Param_Test/server.rb +7 -8
  226. data/test/Performance/Simple/Test.idl +0 -1
  227. data/test/Performance/Simple/client.rb +3 -4
  228. data/test/Performance/Simple/run_test.rb +1 -2
  229. data/test/Performance/Simple/server.rb +3 -4
  230. data/test/Policies/Test.idl +0 -1
  231. data/test/Policies/run_test.rb +0 -1
  232. data/test/Policies/test.rb +2 -4
  233. data/test/Timeout/client.rb +6 -7
  234. data/test/Timeout/run_test.rb +1 -2
  235. data/test/Timeout/server.rb +4 -5
  236. data/test/Timeout/test.idl +0 -1
  237. data/test/lib/assert.rb +0 -2
  238. data/test/lib/test.rb +15 -17
  239. data/test/test_runner.rb +6 -8
  240. metadata +221 -222
  241. data/README +0 -62
  242. data/ext/librpoa/srvreq_fix.cpp +0 -283
  243. data/ext/librpoa/srvreq_fix.h +0 -149
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 63353bb76dd72a205b4029f34d89b56f739ca9e9
4
- data.tar.gz: 8420f0951c31aa1da62aebd37ff55da02b4bc4bd
2
+ SHA256:
3
+ metadata.gz: 3e920ffb5c3121f0f590343fd78737a1f18af807b6800812880e7d59a8d81586
4
+ data.tar.gz: 7b285e71aefed6353b2b28405e6a5b970705f27c2397fb5acea0e922dedbee48
5
5
  SHA512:
6
- metadata.gz: 6c5449dc83cb39fff21241ce0ad8693826d8022b815f909ae53128e60f8653156c7efcfb26b3ed3c5b33f1dcae0278f3f3f873ff695dcdf49b219b54cb7fb71c
7
- data.tar.gz: e750d0cd1241d05b2cefefe73b13fa73db54820aa3f53f3dff40557af6a93e8a808535116999171bb283fdc60ccec6445557a2ee84c5d314e71b26f176786fcf
6
+ metadata.gz: 791e4da7b7477da1b3c63e75040b1d690816e669be8e9d9d7607daaec2612a80001413dbb3a30ce683d2e89573f6379068676fe91ee82157d74a437d78cc4239
7
+ data.tar.gz: d61caa1200c08e3e4f96f3fea2626fba209d16e47c7a91932177c700f00aff0d7937903051b4a269b30de79e62fb07c186d2f3aae6178619382e3936fd6b6307
data/CHANGES CHANGED
@@ -1,5 +1,19 @@
1
1
 
2
- Current version: 1.4.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.cs.wustl.edu/~schmidt/TAO.html).
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. Nijkerk, The Netherlands, 2006-2013.
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 insightfull
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
@@ -1,4 +1,4 @@
1
- #!/bin/env ruby
1
+ #!/usr/bin/env ruby
2
2
  #---------------------------------
3
3
  # This file is generated
4
4
  #---------------------------------
data/bin/ridlc CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/env ruby
1
+ #!/usr/bin/env ruby
2
2
  #---------------------------------
3
3
  # This file is generated
4
4
  #---------------------------------
data/bin/rins CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/env ruby
1
+ #!/usr/bin/env ruby
2
2
  #---------------------------------
3
3
  # This file is generated
4
4
  #---------------------------------
@@ -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)(void);
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
- printf("ERROR: extload failed to load %s\n", #LIBNAME); \
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
  {
@@ -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"
@@ -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) \
@@ -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"
@@ -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
  #if defined (NONNATIVE_LONGDOUBLE)
@@ -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
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(corba_ex_);
587
+ std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
588
588
  corba_ex_->_raise ();
589
589
  }
590
590
  else
@@ -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 "ace/Auto_Ptr.h"
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
- ACE_Auto_Basic_Ptr<char*> argv_safe;
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
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(corba_ex_);
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
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(corba_ex_);
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
@@ -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_ORB_H
14
13
  #define __R2TAO_ORB_H
@@ -1,6 +1,6 @@
1
1
  // -*- C++ -*-
2
2
  /*--------------------------------------------------------------------
3
- # r2tao_ext.h - R2TAO CORBA basic support
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
@@ -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