r2corba 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -1
  3. data/ext/extload/extload.c +5 -6
  4. data/ext/libr2tao/object.cpp +4 -4
  5. data/ext/libr2tao/orb.cpp +8 -8
  6. data/ext/libr2tao/r2tao_ext.h +0 -12
  7. data/ext/libr2tao/required.cpp +2 -2
  8. data/ext/libr2tao/required.h +9 -11
  9. data/ext/libr2tao/values.cpp +5 -5
  10. data/ext/libr2tao/values.h +19 -19
  11. data/ext/librpoa/iortable.cpp +3 -3
  12. data/ext/librpoa/poa.cpp +7 -7
  13. data/ext/librpoa/servant.cpp +15 -90
  14. data/ext/librpoa/servant.h +13 -35
  15. data/lib/corba/cbase/ORB.rb +7 -7
  16. data/lib/corba/cbase/Streams.rb +2 -2
  17. data/lib/corba/cbase/Typecode.rb +6 -6
  18. data/lib/corba/cbase/exception.rb +2 -2
  19. data/lib/corba/cbase/policies.rb +1 -1
  20. data/lib/corba/cmds/base.rb +1 -1
  21. data/lib/corba/common/Any.rb +1 -1
  22. data/lib/corba/common/ORB.rb +1 -1
  23. data/lib/corba/common/Object.rb +0 -1
  24. data/lib/corba/common/Stub.rb +1 -1
  25. data/lib/corba/common/Typecode.rb +34 -34
  26. data/lib/corba/common/const.rb +2 -2
  27. data/lib/corba/common/version.rb +1 -1
  28. data/lib/corba/jbase/Any.rb +23 -23
  29. data/lib/corba/jbase/ORB.rb +3 -3
  30. data/lib/corba/jbase/Request.rb +5 -5
  31. data/lib/corba/jbase/Servant.rb +10 -10
  32. data/lib/corba/jbase/ServerRequest.rb +7 -7
  33. data/lib/corba/jbase/Streams.rb +3 -3
  34. data/lib/corba/jbase/Typecode.rb +14 -14
  35. data/lib/corba/jbase/exception.rb +1 -1
  36. data/lib/corba/jbase/poa.rb +2 -2
  37. data/lib/corba/jbase/policies.rb +3 -3
  38. data/lib/corba/poa.rb +1 -1
  39. data/lib/corba/policies.rb +1 -1
  40. data/lib/corba/require.rb +2 -2
  41. data/lib/corba/svcs/ins/cos_naming.rb +27 -27
  42. data/lib/corba/svcs/ins/ins.rb +17 -17
  43. data/lib/corba/svcs/ins/naming_service.rb +2 -2
  44. data/lib/ridlbe/ruby/config.rb +10 -10
  45. data/lib/ridlbe/ruby/walker.rb +21 -21
  46. data/mkrf_conf_srcgem.rb +5 -5
  47. data/rakelib/bin.rake +1 -1
  48. data/rakelib/bin.rb +3 -3
  49. data/rakelib/build.rake +15 -15
  50. data/rakelib/config.rb +13 -13
  51. data/rakelib/ext.rake +3 -5
  52. data/rakelib/ext.rb +13 -13
  53. data/rakelib/ext_r2tao.rb +12 -18
  54. data/rakelib/gem.rake +5 -5
  55. data/rakelib/gem.rb +5 -5
  56. data/test/BiDirectional/client.rb +3 -3
  57. data/test/BiDirectional/run_test.rb +1 -1
  58. data/test/BiDirectional/server.rb +4 -5
  59. data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -5
  60. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -1
  61. data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -4
  62. data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -3
  63. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -1
  64. data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -10
  65. data/test/CORBA_Services/Naming/Simple/client.rb +4 -4
  66. data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -1
  67. data/test/CORBA_Services/Naming/Simple/server.rb +4 -4
  68. data/test/Collocation/test.rb +2 -2
  69. data/test/Connect_Timeout/client.rb +3 -4
  70. data/test/DII/client.rb +5 -5
  71. data/test/DII/run_test.rb +1 -1
  72. data/test/DII/server.rb +3 -3
  73. data/test/DSI/client.rb +3 -3
  74. data/test/DSI/run_test.rb +1 -1
  75. data/test/DSI/server.rb +3 -3
  76. data/test/Exceptions/client.rb +4 -4
  77. data/test/Exceptions/run_test.rb +1 -1
  78. data/test/Exceptions/server.rb +3 -3
  79. data/test/Hello/client.rb +3 -3
  80. data/test/Hello/run_test.rb +1 -1
  81. data/test/Hello/server.rb +3 -3
  82. data/test/IDL_Test/client.rb +3 -3
  83. data/test/IDL_Test/run_test.rb +1 -1
  84. data/test/IDL_Test/server.rb +3 -3
  85. data/test/IORMap/client.rb +3 -3
  86. data/test/IORMap/run_test.rb +1 -1
  87. data/test/IORMap/server.rb +4 -4
  88. data/test/IORTable/client.rb +3 -3
  89. data/test/IORTable/run_test.rb +1 -1
  90. data/test/IORTable/server.rb +4 -4
  91. data/test/Implicit_Conversion/client.rb +4 -4
  92. data/test/Implicit_Conversion/run_test.rb +1 -1
  93. data/test/Implicit_Conversion/server.rb +3 -3
  94. data/test/Multi_Threading/Multiple_ORB/client.rb +3 -3
  95. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
  96. data/test/Multi_Threading/Multiple_ORB/server.rb +3 -3
  97. data/test/Multi_Threading/Simple/client.rb +4 -4
  98. data/test/Multi_Threading/Simple/run_test.rb +1 -1
  99. data/test/Multi_Threading/Simple/server.rb +3 -3
  100. data/test/Multi_Threading/Threads/client.rb +3 -3
  101. data/test/Multi_Threading/Threads/run_test.rb +1 -1
  102. data/test/Multi_Threading/Threads/server.rb +4 -4
  103. data/test/Multi_Threading/Threads/watchdog.rb +3 -3
  104. data/test/Multiple_Servant_Interfaces/client.rb +3 -3
  105. data/test/Multiple_Servant_Interfaces/run_test.rb +1 -1
  106. data/test/Multiple_Servant_Interfaces/server.rb +3 -3
  107. data/test/Nil/test.rb +3 -4
  108. data/test/OBV/AbstractInterface/client.rb +3 -3
  109. data/test/OBV/AbstractInterface/run_test.rb +1 -1
  110. data/test/OBV/AbstractInterface/server.rb +3 -3
  111. data/test/OBV/Custom/client.rb +3 -3
  112. data/test/OBV/Custom/run_test.rb +1 -1
  113. data/test/OBV/Custom/server.rb +3 -3
  114. data/test/OBV/Simple/client.rb +3 -3
  115. data/test/OBV/Simple/run_test.rb +1 -1
  116. data/test/OBV/Simple/server.rb +3 -3
  117. data/test/OBV/Simple_Event/client.rb +3 -3
  118. data/test/OBV/Simple_Event/run_test.rb +1 -1
  119. data/test/OBV/Simple_Event/server.rb +3 -3
  120. data/test/OBV/Supports/client.rb +3 -3
  121. data/test/OBV/Supports/run_test.rb +1 -1
  122. data/test/OBV/Supports/server.rb +3 -3
  123. data/test/OBV/Tree/client.rb +3 -3
  124. data/test/OBV/Tree/run_test.rb +1 -1
  125. data/test/OBV/Tree/server.rb +3 -3
  126. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -1
  127. data/test/OBV/Truncatable/client.rb +4 -4
  128. data/test/OBV/Truncatable/run_test.rb +1 -1
  129. data/test/OBV/Truncatable/server.rb +3 -3
  130. data/test/OBV/ValueBox/client.rb +44 -44
  131. data/test/OBV/ValueBox/run_test.rb +1 -1
  132. data/test/OBV/ValueBox/server.rb +29 -29
  133. data/test/Object/client.rb +4 -4
  134. data/test/Object/run_test.rb +1 -1
  135. data/test/Object/server.rb +3 -3
  136. data/test/POA/test.rb +3 -3
  137. data/test/Param_Test/client.rb +6 -6
  138. data/test/Param_Test/run_test.rb +1 -1
  139. data/test/Param_Test/server.rb +6 -6
  140. data/test/Performance/Simple/client.rb +3 -3
  141. data/test/Performance/Simple/run_test.rb +1 -1
  142. data/test/Performance/Simple/server.rb +3 -3
  143. data/test/Policies/test.rb +2 -3
  144. data/test/Timeout/client.rb +6 -6
  145. data/test/Timeout/run_test.rb +1 -1
  146. data/test/Timeout/server.rb +4 -4
  147. data/test/lib/assert.rb +0 -1
  148. data/test/lib/test.rb +14 -15
  149. data/test/test_runner.rb +5 -6
  150. metadata +4 -6
  151. data/ext/librpoa/srvreq_fix.cpp +0 -282
  152. data/ext/librpoa/srvreq_fix.h +0 -148
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e614c495636ee67dc0daf553ca9404351dd8ccf2a31a5d735342840b8e4f9941
4
- data.tar.gz: e9858bd546463425e94be36020642ecbbcb0569b2d578b12d2c6bc9ab2c441a4
3
+ metadata.gz: 3e920ffb5c3121f0f590343fd78737a1f18af807b6800812880e7d59a8d81586
4
+ data.tar.gz: 7b285e71aefed6353b2b28405e6a5b970705f27c2397fb5acea0e922dedbee48
5
5
  SHA512:
6
- metadata.gz: 1214a6996add276c81a009298a2a069a1dcb0e9018be84a690524ed09831afc8a482ebb889dd5314bb21e07ff6294b35f3e0109645b5fd5c1d021987e9dafd22
7
- data.tar.gz: 7b1a03e1857a8604f7d0594f899a2e95be19f60e0aa904c9e9a350d9209251c9711aa27d1062ccf482a5e3e0741c28c19260c3020864051dc6cd0826deccf749
6
+ metadata.gz: 791e4da7b7477da1b3c63e75040b1d690816e669be8e9d9d7607daaec2612a80001413dbb3a30ce683d2e89573f6379068676fe91ee82157d74a437d78cc4239
7
+ data.tar.gz: d61caa1200c08e3e4f96f3fea2626fba209d16e47c7a91932177c700f00aff0d7937903051b4a269b30de79e62fb07c186d2f3aae6178619382e3936fd6b6307
data/README.rdoc CHANGED
@@ -1,6 +1,7 @@
1
- {<img src="https://badge.fury.io/rb/r2corba.svg" alt="Gem Version" />}[https://badge.fury.io/rb/r2corba]
1
+ {<img src="https://badge.fury.io/rb/r2corba.svg" alt="Gem Version" />}[https://rubygems.org/gems/r2corba]
2
2
  {<img src="https://www.codefactor.io/repository/github/remedyit/r2corba/badge" alt="CodeFactor" />}[https://www.codefactor.io/repository/github/remedyit/r2corba]
3
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]
4
5
 
5
6
  = R2CORBA
6
7
 
@@ -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
  } \
@@ -15,11 +15,11 @@
15
15
  #include "tao/DynamicInterface/DII_CORBA_methods.h"
16
16
  #include "tao/DynamicInterface/Unknown_User_Exception.h"
17
17
  #include "ace/Truncate.h"
18
- #include "ace/Auto_Ptr.h"
19
18
  #include "typecode.h"
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 () R2CORBA_NO_EXCEPT_FALSE;
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() R2CORBA_NO_EXCEPT_FALSE
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
data/ext/libr2tao/orb.cpp CHANGED
@@ -20,7 +20,7 @@
20
20
  #include "ace/Reactor.h"
21
21
  #include "ace/Signal.h"
22
22
  #include "ace/Sig_Handler.h"
23
- #include "ace/Auto_Ptr.h"
23
+ #include <memory>
24
24
 
25
25
  #define RUBY_INVOKE_FUNC RUBY_ALLOC_FUNC
26
26
 
@@ -242,7 +242,7 @@ VALUE rCORBA_ORB_init(int _argc, VALUE *_argv, VALUE /*klass*/) {
242
242
  char **argv;
243
243
  int i;
244
244
  CORBA::ORB_var orb;
245
- ACE_Auto_Basic_Ptr<char*> argv_safe;
245
+ std::unique_ptr<char*> argv_safe;
246
246
 
247
247
  rb_scan_args(_argc, _argv, "02", &v0, &v1);
248
248
 
@@ -457,7 +457,7 @@ public:
457
457
  timeout_ (&to),
458
458
  exception_ (false),
459
459
  corba_ex_ (0) {}
460
- virtual ~R2TAO_ORB_BlockedRegionCaller () R2CORBA_NO_EXCEPT_FALSE;
460
+ virtual ~R2TAO_ORB_BlockedRegionCaller () noexcept(false);
461
461
 
462
462
  VALUE call (bool with_unblock=true);
463
463
 
@@ -477,13 +477,13 @@ protected:
477
477
  CORBA::Exception* corba_ex_;
478
478
  };
479
479
 
480
- R2TAO_ORB_BlockedRegionCaller::~R2TAO_ORB_BlockedRegionCaller() R2CORBA_NO_EXCEPT_FALSE
480
+ R2TAO_ORB_BlockedRegionCaller::~R2TAO_ORB_BlockedRegionCaller() noexcept(false)
481
481
  {
482
482
  if (this->exception_)
483
483
  {
484
484
  if (corba_ex_)
485
485
  {
486
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(corba_ex_);
486
+ std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
487
487
  corba_ex_->_raise ();
488
488
  }
489
489
  else
@@ -568,7 +568,7 @@ public:
568
568
  : R2TAO_ORB_BlockedRegionCaller (orb), sg_(sg) {}
569
569
  R2TAO_ORB_BlockedWorkPending (R2CSigGuard& sg, CORBA::ORB_ptr orb, ACE_Time_Value& to)
570
570
  : R2TAO_ORB_BlockedRegionCaller (orb, to), sg_(sg) {}
571
- virtual ~R2TAO_ORB_BlockedWorkPending () R2CORBA_NO_EXCEPT_FALSE;
571
+ virtual ~R2TAO_ORB_BlockedWorkPending () noexcept(false);
572
572
 
573
573
  protected:
574
574
  virtual VALUE do_exec ();
@@ -577,7 +577,7 @@ private:
577
577
  R2CSigGuard& sg_;
578
578
  };
579
579
 
580
- R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending() R2CORBA_NO_EXCEPT_FALSE
580
+ R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending() noexcept(false)
581
581
  {
582
582
  if (this->exception_)
583
583
  {
@@ -585,7 +585,7 @@ R2TAO_ORB_BlockedWorkPending::~R2TAO_ORB_BlockedWorkPending() R2CORBA_NO_EXCEPT_
585
585
  try {
586
586
  if (corba_ex_)
587
587
  {
588
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(corba_ex_);
588
+ std::unique_ptr<CORBA::Exception> e_ptr(corba_ex_);
589
589
  corba_ex_->_raise ();
590
590
  }
591
591
  else
@@ -12,10 +12,6 @@
12
12
  #ifndef __R2TAO_EXT_H
13
13
  #define __R2TAO_EXT_H
14
14
 
15
- #if defined (__cplusplus)
16
- };
17
- #endif
18
-
19
15
  #if defined (OLD_MSC_VER)
20
16
  // un-fudge the version macro here that was fudged
21
17
  // in required.h otherwise ACE will complain
@@ -23,15 +19,7 @@
23
19
  #define _MSC_VER OLD_MSC_VER
24
20
  #endif
25
21
 
26
- #include <ace/pre.h>
27
-
28
22
  #include <ace/config-all.h>
29
23
 
30
- #include <ace/post.h>
31
-
32
- #if defined (__cplusplus)
33
- extern "C" {
34
- #endif
35
-
36
24
  #endif
37
25
 
@@ -17,10 +17,10 @@
17
17
  #include "ace/Null_Mutex.h"
18
18
  #include "ace/Singleton.h"
19
19
  #include "ace/TSS_T.h"
20
- #include "ace/Auto_Ptr.h"
21
20
  #include "tao/AnyTypeCode/Any.h"
22
21
  #include "tao/DynamicInterface/Unknown_User_Exception.h"
23
22
  #include "tao/debug.h"
23
+ #include <memory>
24
24
 
25
25
  #define RUBY_INVOKE_FUNC RUBY_ALLOC_FUNC
26
26
 
@@ -401,7 +401,7 @@ VALUE R2TAO_RBFuncall::_invoke (const FuncArgs& fa)
401
401
  _exc->completed (
402
402
  static_cast<CORBA::CompletionStatus> (NUM2ULONG (rb_iv_get (rexc, "@completed"))));
403
403
 
404
- ACE_Auto_Basic_Ptr<CORBA::SystemException> e_ptr(_exc);
404
+ std::unique_ptr<CORBA::SystemException> e_ptr(_exc);
405
405
  _exc->_raise ();
406
406
  }
407
407
  else
@@ -42,6 +42,12 @@
42
42
  #if defined (vsnprintf)
43
43
  # undef vsnprintf
44
44
  #endif
45
+ #if defined (access)
46
+ # undef access
47
+ #endif
48
+ #if defined (memcpy)
49
+ # undef memcpy
50
+ #endif
45
51
 
46
52
  #undef RUBY_METHOD_FUNC
47
53
  extern "C" {
@@ -52,7 +58,6 @@ extern "C" {
52
58
  #define RUBY_ALLOC_FUNC(func) ((TfnRbAlloc)func)
53
59
 
54
60
  #include "r2tao_export.h"
55
- #include <tao/Version.h>
56
61
 
57
62
  #if defined (HAVE_NATIVETHREAD)
58
63
  # define R2TAO_THREAD_SAFE
@@ -137,16 +142,9 @@ protected:
137
142
  static VALUE invoke_helper (VALUE arg);
138
143
 
139
144
  private:
140
- ID fn_id_;
141
- bool throw_on_ex_;
142
- bool ex_caught_;
145
+ ID fn_id_;
146
+ bool const throw_on_ex_;
147
+ bool ex_caught_;
143
148
  };
144
149
 
145
- #if defined (ACE_HAS_CPP11)
146
- # define R2CORBA_NO_EXCEPT_FALSE noexcept(false)
147
- #else
148
- # define R2CORBA_NO_EXCEPT_FALSE
149
- #endif /* ACE_HAS_CPP11 */
150
-
151
-
152
150
  #endif
@@ -391,7 +391,7 @@ CORBA::Boolean R2TAO_ArrayAny_Impl_T<CORBA::Octet>::marshal_value (TAO_OutputCDR
391
391
  }
392
392
 
393
393
  template<typename T>
394
- const void *R2TAO_ArrayAny_Impl_T<T>::value (void) const
394
+ const void *R2TAO_ArrayAny_Impl_T<T>::value () const
395
395
  {
396
396
  return this->value_;
397
397
  }
@@ -527,12 +527,12 @@ R2TAO_Value* R2TAO_Value::_downcast (::CORBA::ValueBase *v)
527
527
  return dynamic_cast<R2TAO_Value*> (v);
528
528
  }
529
529
 
530
- CORBA::TypeCode_ptr R2TAO_Value::_tao_type (void) const
530
+ CORBA::TypeCode_ptr R2TAO_Value::_tao_type () const
531
531
  {
532
532
  return this->val_tc_.in ();
533
533
  }
534
534
 
535
- const char * R2TAO_Value::_tao_obv_repository_id (void) const
535
+ const char * R2TAO_Value::_tao_obv_repository_id () const
536
536
  {
537
537
  return this->val_tc_->id ();
538
538
  }
@@ -1089,7 +1089,7 @@ R2TAO_AbstractValue* R2TAO_AbstractValue::_downcast ( ::CORBA::ValueBase *v)
1089
1089
  return dynamic_cast< ::R2TAO_AbstractValue * > (v);
1090
1090
  }
1091
1091
 
1092
- const char* R2TAO_AbstractValue::_tao_obv_repository_id (void) const
1092
+ const char* R2TAO_AbstractValue::_tao_obv_repository_id () const
1093
1093
  {
1094
1094
  return this->R2TAO_Value::_tao_obv_repository_id ();
1095
1095
  }
@@ -1254,7 +1254,7 @@ void R2TAO_AbstractObject::_remove_ref (void)
1254
1254
  this->::CORBA::Object::_is_a (type_id);
1255
1255
  }
1256
1256
 
1257
- const char* R2TAO_AbstractObject::_interface_repository_id (void) const
1257
+ const char* R2TAO_AbstractObject::_interface_repository_id () const
1258
1258
  {
1259
1259
  return this->abs_tc_->id ();
1260
1260
  }
@@ -37,7 +37,7 @@ public:
37
37
  R2TAO_ArrayAny_Impl_T (CORBA::TypeCode_ptr,
38
38
  T * const,
39
39
  CORBA::ULong);
40
- virtual ~R2TAO_ArrayAny_Impl_T (void);
40
+ virtual ~R2TAO_ArrayAny_Impl_T ();
41
41
 
42
42
  static void insert (CORBA::Any &,
43
43
  CORBA::TypeCode_ptr,
@@ -45,8 +45,8 @@ public:
45
45
  CORBA::ULong);
46
46
 
47
47
  virtual CORBA::Boolean marshal_value (TAO_OutputCDR &);
48
- virtual const void *value (void) const;
49
- virtual void free_value (void);
48
+ virtual const void *value () const;
49
+ virtual void free_value ();
50
50
 
51
51
  private:
52
52
  void* value_;
@@ -81,7 +81,7 @@ class R2TAO_Value : public ::CORBA::DefaultValueRefCountBase
81
81
  R2TAO_Value (VALUE rbValue, bool for_unmarshal=false);
82
82
  virtual ~R2TAO_Value ();
83
83
 
84
- virtual CORBA::ValueBase* _copy_value (void);
84
+ virtual CORBA::ValueBase* _copy_value ();
85
85
 
86
86
  static void _tao_any_destructor (void *);
87
87
 
@@ -89,10 +89,10 @@ class R2TAO_Value : public ::CORBA::DefaultValueRefCountBase
89
89
 
90
90
  static R2TAO_Value* _downcast (::CORBA::ValueBase *v);
91
91
 
92
- virtual CORBA::TypeCode_ptr _tao_type (void) const;
92
+ virtual CORBA::TypeCode_ptr _tao_type () const;
93
93
 
94
94
  /// Return the repository id of this valuetype.
95
- virtual const char * _tao_obv_repository_id (void) const;
95
+ virtual const char * _tao_obv_repository_id () const;
96
96
 
97
97
  /// Give the list of the RepositoryIds in the valuetype "truncatable"
98
98
  /// inheritance hierarchy. List the id of this valuetype as first
@@ -177,18 +177,18 @@ class R2TAO_ValueFactory
177
177
  static R2TAO_ValueFactory* _downcast ( ::CORBA::ValueFactoryBase *);
178
178
 
179
179
  virtual ::CORBA::ValueBase *
180
- create_for_unmarshal (void);
180
+ create_for_unmarshal ();
181
181
 
182
182
  virtual ::CORBA::AbstractBase_ptr
183
- create_for_unmarshal_abstract (void);
183
+ create_for_unmarshal_abstract ();
184
184
 
185
185
  // TAO-specific extensions
186
- virtual const char* tao_repository_id (void);
186
+ virtual const char* tao_repository_id ();
187
187
 
188
188
  VALUE get_ruby_factory () { return this->rbValueFactory_; }
189
189
 
190
190
  protected:
191
- virtual ~R2TAO_ValueFactory (void);
191
+ virtual ~R2TAO_ValueFactory ();
192
192
 
193
193
  private:
194
194
  VALUE rbValueFactory_;
@@ -238,14 +238,14 @@ class R2TAO_AbstractValue :
238
238
 
239
239
  static R2TAO_AbstractValue* _downcast ( ::CORBA::ValueBase *v);
240
240
 
241
- virtual const char* _tao_obv_repository_id (void) const;
241
+ virtual const char* _tao_obv_repository_id () const;
242
242
  virtual CORBA::Boolean _tao_marshal_v (TAO_OutputCDR &strm) const;
243
243
  virtual CORBA::Boolean _tao_unmarshal_v (TAO_InputCDR &strm);
244
244
  virtual CORBA::Boolean _tao_match_formal_type (ptrdiff_t) const;
245
245
 
246
- virtual void _add_ref (void);
247
- virtual void _remove_ref (void);
248
- virtual ::CORBA::ValueBase *_tao_to_value (void);
246
+ virtual void _add_ref ();
247
+ virtual void _remove_ref ();
248
+ virtual ::CORBA::ValueBase *_tao_to_value ();
249
249
 
250
250
  CORBA::TypeCode_ptr abstract_type () const;
251
251
 
@@ -312,11 +312,11 @@ class R2TAO_AbstractObject :
312
312
 
313
313
  static void _tao_release (R2TAO_AbstractObject_ptr obj);
314
314
 
315
- virtual void _add_ref (void);
316
- virtual void _remove_ref (void);
315
+ virtual void _add_ref ();
316
+ virtual void _remove_ref ();
317
317
 
318
318
  virtual ::CORBA::Boolean _is_a (const char *type_id);
319
- virtual const char* _interface_repository_id (void) const;
319
+ virtual const char* _interface_repository_id () const;
320
320
  virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
321
321
 
322
322
  CORBA::TypeCode_ptr abstract_type () const;
@@ -372,7 +372,7 @@ namespace TAO
372
372
  R2TAO_AbstractValue_ptr p);
373
373
  static void release (
374
374
  R2TAO_AbstractValue_ptr p);
375
- static R2TAO_AbstractValue_ptr nil (void);
375
+ static R2TAO_AbstractValue_ptr nil ();
376
376
  static ::CORBA::Boolean marshal (
377
377
  const R2TAO_AbstractValue_ptr p,
378
378
  TAO_OutputCDR & cdr);
@@ -385,7 +385,7 @@ namespace TAO
385
385
  R2TAO_AbstractObject_ptr p);
386
386
  static void release (
387
387
  R2TAO_AbstractObject_ptr p);
388
- static R2TAO_AbstractObject_ptr nil (void);
388
+ static R2TAO_AbstractObject_ptr nil ();
389
389
  static ::CORBA::Boolean marshal (
390
390
  const R2TAO_AbstractObject_ptr p,
391
391
  TAO_OutputCDR & cdr);
@@ -11,12 +11,12 @@
11
11
  #------------------------------------------------------------------*/
12
12
 
13
13
  #include "poa.h"
14
- #include "ace/Auto_Ptr.h"
15
14
  #include "tao/ORB.h"
16
15
  #include "tao/IORTable/IORTable.h"
17
16
  #include "object.h"
18
17
  #include "exception.h"
19
18
  #include "orb.h"
19
+ #include <memory>
20
20
 
21
21
  #define RUBY_INVOKE_FUNC RUBY_ALLOC_FUNC
22
22
 
@@ -135,7 +135,7 @@ char* R2taoLocator::locate (const char * object_key)
135
135
  if (tca_.exception_)
136
136
  {
137
137
  CORBA::SystemException* exc = reinterpret_cast<CORBA::SystemException*> (rc);
138
- ACE_Auto_Basic_Ptr<CORBA::SystemException> e_ptr(exc);
138
+ std::unique_ptr<CORBA::SystemException> e_ptr(exc);
139
139
  exc->_raise ();
140
140
  return 0;
141
141
  }
@@ -171,7 +171,7 @@ char* R2taoLocator::inner_locate (const char * object_key)
171
171
  _exc->completed (
172
172
  static_cast<CORBA::CompletionStatus> (NUM2ULONG (rb_iv_get (rexc, "@completed"))));
173
173
 
174
- ACE_Auto_Basic_Ptr<CORBA::SystemException> e_ptr(_exc);
174
+ std::unique_ptr<CORBA::SystemException> e_ptr(_exc);
175
175
  _exc->_raise ();
176
176
  }
177
177
  else