r2corba 1.5.5 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libr2tao/any.cpp +11 -10
- data/ext/libr2tao/exception.cpp +6 -8
- data/ext/libr2tao/exception.h +1 -1
- data/ext/libr2tao/longdouble.cpp +5 -9
- data/ext/libr2tao/object.cpp +33 -49
- data/ext/libr2tao/orb.cpp +38 -65
- data/ext/libr2tao/r2tao_ext.h +8 -7
- data/ext/libr2tao/required.cpp +1 -6
- data/ext/libr2tao/required.h +9 -23
- data/ext/libr2tao/values.cpp +92 -93
- data/ext/libr2tao/values.h +28 -30
- data/ext/librpoa/iortable.cpp +3 -4
- data/ext/librpoa/poa.cpp +22 -25
- data/ext/librpoa/servant.cpp +24 -23
- data/ext/librpoa/servant.h +10 -10
- data/lib/corba.rb +1 -1
- data/lib/corba/cbase/ORB.rb +19 -16
- data/lib/corba/cbase/Request.rb +3 -3
- data/lib/corba/cbase/Values.rb +4 -2
- data/lib/corba/cbase/exception.rb +4 -2
- data/lib/corba/cbase/poa.rb +1 -1
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cbase/require.rb +8 -1
- data/lib/corba/common/Any.rb +2 -1
- data/lib/corba/common/IDL.rb +1 -1
- data/lib/corba/common/ORB.rb +21 -21
- data/lib/corba/common/Object.rb +14 -13
- data/lib/corba/common/Servant.rb +4 -4
- data/lib/corba/common/Stub.rb +6 -6
- data/lib/corba/common/Typecode.rb +35 -8
- data/lib/corba/common/Union.rb +5 -0
- data/lib/corba/common/Values.rb +1 -0
- data/lib/corba/common/const.rb +1 -1
- data/lib/corba/common/exception.rb +2 -1
- data/lib/corba/common/version.rb +2 -2
- data/lib/corba/idl/IDL.rb +1 -1
- data/lib/corba/jbase/Any.rb +6 -4
- data/lib/corba/jbase/ORB.rb +2 -2
- data/lib/corba/jbase/Object.rb +13 -13
- data/lib/corba/jbase/Request.rb +3 -3
- data/lib/corba/jbase/Streams.rb +64 -0
- data/lib/corba/jbase/Typecode.rb +3 -2
- data/lib/corba/jbase/Values.rb +2 -0
- data/lib/corba/jbase/exception.rb +1 -0
- data/lib/corba/jbase/poa.rb +18 -18
- data/lib/corba/jbase/policies.rb +29 -29
- data/lib/corba/jbase/require.rb +4 -0
- data/lib/corba/svcs/ins/cos_naming.rb +10 -1
- data/lib/corba/svcs/ins/ins.rb +45 -45
- data/lib/corba/svcs/ins/naming_service.rb +6 -6
- data/lib/ridlbe/ruby/config.rb +27 -20
- data/lib/ridlbe/ruby/walker.rb +276 -253
- data/mkrf_conf_srcgem.rb +2 -2
- data/rakelib/build.rake +1 -1
- data/rakelib/config.rake +1 -1
- data/rakelib/config.rb +9 -9
- data/rakelib/ext.rake +6 -65
- data/rakelib/ext_r2tao.rb +2 -39
- data/rakelib/gem.rake +20 -20
- data/rakelib/gem.rb +1 -1
- data/rakelib/package.rake +1 -1
- data/test/BiDirectional/client.rb +16 -16
- data/test/BiDirectional/run_test.rb +10 -10
- data/test/BiDirectional/server.rb +20 -20
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
- data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
- data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
- data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
- data/test/Collocation/run_test.rb +10 -10
- data/test/Collocation/test.rb +26 -19
- data/test/Connect_Timeout/client.rb +15 -15
- data/test/Connect_Timeout/run_test.rb +10 -10
- data/test/DII/client.rb +27 -27
- data/test/DII/run_test.rb +10 -10
- data/test/DII/server.rb +15 -15
- data/test/DSI/client.rb +15 -15
- data/test/DSI/run_test.rb +10 -10
- data/test/DSI/server.rb +16 -16
- data/test/Exceptions/client.rb +19 -19
- data/test/Exceptions/run_test.rb +10 -10
- data/test/Exceptions/server.rb +15 -15
- data/test/Hello/client.rb +15 -15
- data/test/Hello/run_test.rb +10 -10
- data/test/Hello/server.rb +16 -16
- data/test/IDL_Test/client.rb +20 -20
- data/test/IDL_Test/run_test.rb +10 -10
- data/test/IDL_Test/server.rb +18 -18
- data/test/IORMap/client.rb +14 -14
- data/test/IORMap/run_test.rb +10 -10
- data/test/IORMap/server.rb +22 -22
- data/test/IORTable/client.rb +14 -14
- data/test/IORTable/run_test.rb +10 -10
- data/test/IORTable/server.rb +22 -22
- data/test/Implicit_Conversion/client.rb +19 -16
- data/test/Implicit_Conversion/run_test.rb +10 -10
- data/test/Implicit_Conversion/server.rb +15 -15
- data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
- data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
- data/test/Multi_Threading/Simple/client.rb +15 -15
- data/test/Multi_Threading/Simple/run_test.rb +10 -10
- data/test/Multi_Threading/Simple/server.rb +15 -15
- data/test/Multi_Threading/Threads/client.rb +15 -15
- data/test/Multi_Threading/Threads/run_test.rb +10 -10
- data/test/Multi_Threading/Threads/server.rb +17 -17
- data/test/Multi_Threading/Threads/watchdog.rb +15 -15
- data/test/Multiple_Servant_Interfaces/client.rb +13 -13
- data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
- data/test/Multiple_Servant_Interfaces/server.rb +17 -17
- data/test/Nil/run_test.rb +10 -10
- data/test/Nil/test.rb +13 -13
- data/test/OBV/AbstractInterface/client.rb +13 -13
- data/test/OBV/AbstractInterface/run_test.rb +10 -10
- data/test/OBV/AbstractInterface/server.rb +19 -18
- data/test/OBV/Custom/OBV_impl.rb +2 -0
- data/test/OBV/Custom/client.rb +13 -13
- data/test/OBV/Custom/run_test.rb +10 -10
- data/test/OBV/Custom/server.rb +15 -15
- data/test/OBV/Simple/OBV_impl.rb +1 -0
- data/test/OBV/Simple/client.rb +13 -13
- data/test/OBV/Simple/run_test.rb +10 -10
- data/test/OBV/Simple/server.rb +15 -15
- data/test/OBV/Simple_Event/Event_impl.rb +1 -0
- data/test/OBV/Simple_Event/client.rb +13 -13
- data/test/OBV/Simple_Event/run_test.rb +10 -10
- data/test/OBV/Simple_Event/server.rb +15 -15
- data/test/OBV/Supports/client.rb +18 -18
- data/test/OBV/Supports/run_test.rb +10 -10
- data/test/OBV/Supports/server.rb +14 -14
- data/test/OBV/Supports/supports_impl.rb +3 -0
- data/test/OBV/Tree/client.rb +13 -13
- data/test/OBV/Tree/run_test.rb +10 -10
- data/test/OBV/Tree/server.rb +18 -18
- data/test/OBV/Truncatable/client.rb +56 -56
- data/test/OBV/Truncatable/run_test.rb +10 -10
- data/test/OBV/Truncatable/server.rb +14 -14
- data/test/OBV/ValueBox/client.rb +148 -147
- data/test/OBV/ValueBox/run_test.rb +10 -10
- data/test/OBV/ValueBox/server.rb +15 -15
- data/test/Object/client.rb +13 -13
- data/test/Object/run_test.rb +10 -10
- data/test/Object/server.rb +18 -18
- data/test/POA/run_test.rb +10 -10
- data/test/POA/test.rb +15 -15
- data/test/Param_Test/client.rb +47 -47
- data/test/Param_Test/run_test.rb +10 -10
- data/test/Param_Test/server.rb +55 -55
- data/test/Performance/Simple/client.rb +15 -15
- data/test/Performance/Simple/run_test.rb +10 -10
- data/test/Performance/Simple/server.rb +15 -15
- data/test/Policies/run_test.rb +10 -10
- data/test/Policies/test.rb +23 -23
- data/test/Timeout/client.rb +17 -17
- data/test/Timeout/run_test.rb +10 -10
- data/test/Timeout/server.rb +18 -18
- data/test/lib/test.rb +13 -7
- data/test/test_runner.rb +19 -19
- metadata +4 -5
- data/ext/extload/extload.c +0 -59
data/ext/libr2tao/r2tao_ext.h
CHANGED
@@ -12,14 +12,15 @@
|
|
12
12
|
#ifndef __R2TAO_EXT_H
|
13
13
|
#define __R2TAO_EXT_H
|
14
14
|
|
15
|
-
#
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
#include <ace/config-lite.h>
|
16
|
+
#if defined (WIN32) || defined (_MSC_VER) || defined (__MINGW32__)
|
17
|
+
// Ruby ships its own msghdr
|
18
|
+
# undef ACE_LACKS_MSGHDR
|
19
|
+
// Ruby ships its own iovec
|
20
|
+
# undef ACE_LACKS_IOVEC
|
21
|
+
// Resolve conflict between mingw and ruby gettimeofday
|
22
|
+
# define ACE_LACKS_SYS_TIME_H
|
20
23
|
#endif
|
21
24
|
|
22
|
-
#include <ace/config-all.h>
|
23
|
-
|
24
25
|
#endif
|
25
26
|
|
data/ext/libr2tao/required.cpp
CHANGED
@@ -113,7 +113,6 @@ private:
|
|
113
113
|
objreg->clear_registry ();
|
114
114
|
}
|
115
115
|
}
|
116
|
-
|
117
116
|
};
|
118
117
|
|
119
118
|
VALUE R2TAO_ObjectRegistry::registry_anchor_ = Qnil;
|
@@ -231,7 +230,7 @@ private:
|
|
231
230
|
~TSSManager ()
|
232
231
|
{
|
233
232
|
delete gvl_indicator_;
|
234
|
-
gvl_indicator_ =
|
233
|
+
gvl_indicator_ = nullptr;
|
235
234
|
}
|
236
235
|
|
237
236
|
static void set_indicator (bool val)
|
@@ -343,10 +342,6 @@ R2TAO_RBFuncall::R2TAO_RBFuncall (const char* fn, bool throw_on_ex)
|
|
343
342
|
{
|
344
343
|
}
|
345
344
|
|
346
|
-
R2TAO_RBFuncall::~R2TAO_RBFuncall ()
|
347
|
-
{
|
348
|
-
}
|
349
|
-
|
350
345
|
VALUE R2TAO_RBFuncall::invoke (VALUE rcvr, VALUE args)
|
351
346
|
{
|
352
347
|
return this->_invoke (FuncArgArray (rcvr, args));
|
data/ext/libr2tao/required.h
CHANGED
@@ -12,20 +12,6 @@
|
|
12
12
|
#ifndef __R2TAO_REQUIRED_H
|
13
13
|
#define __R2TAO_REQUIRED_H
|
14
14
|
|
15
|
-
#if defined (WIN32) || defined (_MSC_VER) || defined (__MINGW32__)
|
16
|
-
// prevent inclusion of Ruby Win32 defs which clash with ACE
|
17
|
-
// are only important for Ruby internals
|
18
|
-
#define RUBY_WIN32_H
|
19
|
-
// if we're compiling with MSVC 7.1 this is most probably for
|
20
|
-
// the standard Ruby dist which is built with MSVC 6
|
21
|
-
// fudge the version macro so Ruby doesn't complain
|
22
|
-
#if (_MSC_VER >= 1310) && (_MSC_VER < 1400)
|
23
|
-
#define OLD_MSC_VER 1310
|
24
|
-
#undef _MSC_VER
|
25
|
-
#define _MSC_VER 1200
|
26
|
-
#endif
|
27
|
-
#endif
|
28
|
-
|
29
15
|
#define RUBY_EXTCONF_H "r2tao_ext.h"
|
30
16
|
#include <ruby.h>
|
31
17
|
// remove conflicting macro(s) defined by Ruby
|
@@ -84,20 +70,20 @@ class R2TAO_EXPORT R2TAO_RBFuncall
|
|
84
70
|
public:
|
85
71
|
R2TAO_RBFuncall (ID fnid, bool throw_on_ex=true);
|
86
72
|
R2TAO_RBFuncall (const char* fn, bool throw_on_ex=true);
|
87
|
-
~R2TAO_RBFuncall ();
|
73
|
+
~R2TAO_RBFuncall () = default;
|
88
74
|
|
89
75
|
VALUE invoke (VALUE rcvr, VALUE args);
|
90
76
|
VALUE invoke (VALUE rcvr, int argc, VALUE *args);
|
91
77
|
VALUE invoke (VALUE rcvr);
|
92
78
|
|
93
|
-
bool has_caught_exception () { return this->ex_caught_; }
|
79
|
+
bool has_caught_exception () const { return this->ex_caught_; }
|
94
80
|
|
95
|
-
ID id () { return this->fn_id_; }
|
81
|
+
ID id () const { return this->fn_id_; }
|
96
82
|
|
97
83
|
protected:
|
98
84
|
struct FuncArgs
|
99
85
|
{
|
100
|
-
virtual ~FuncArgs ()
|
86
|
+
virtual ~FuncArgs () = default;
|
101
87
|
virtual VALUE rb_invoke (ID fnid) const = 0;
|
102
88
|
};
|
103
89
|
|
@@ -107,9 +93,9 @@ protected:
|
|
107
93
|
{
|
108
94
|
FuncArgArray (VALUE rcvr, VALUE args)
|
109
95
|
: receiver_ (rcvr), args_ (args) {}
|
110
|
-
|
96
|
+
~FuncArgArray () override = default;
|
111
97
|
|
112
|
-
|
98
|
+
VALUE rb_invoke (ID fnid) const override;
|
113
99
|
|
114
100
|
VALUE receiver_;
|
115
101
|
VALUE args_;
|
@@ -119,12 +105,12 @@ protected:
|
|
119
105
|
{
|
120
106
|
FuncArgList (VALUE rcvr, int argc, VALUE* args)
|
121
107
|
: receiver_ (rcvr), argc_ (argc), args_ (args) {}
|
122
|
-
|
108
|
+
~FuncArgList () override = default;
|
123
109
|
|
124
|
-
|
110
|
+
VALUE rb_invoke (ID fnid) const override;
|
125
111
|
|
126
112
|
VALUE receiver_;
|
127
|
-
int argc_;
|
113
|
+
int const argc_;
|
128
114
|
VALUE* args_;
|
129
115
|
};
|
130
116
|
|
data/ext/libr2tao/values.cpp
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
#include "tao/CDR.h"
|
20
20
|
#include "tao/ORB_Core.h"
|
21
21
|
#include "tao/DynamicAny/DynamicAny.h"
|
22
|
+
#include <cstring>
|
22
23
|
|
23
24
|
#define RUBY_INVOKE_FUNC RUBY_ALLOC_FUNC
|
24
25
|
|
@@ -304,7 +305,7 @@ R2TAO_ArrayAny_Impl_T<T>::R2TAO_ArrayAny_Impl_T (CORBA::TypeCode_ptr tc,
|
|
304
305
|
}
|
305
306
|
|
306
307
|
template<typename T>
|
307
|
-
R2TAO_ArrayAny_Impl_T<T>::~R2TAO_ArrayAny_Impl_T (
|
308
|
+
R2TAO_ArrayAny_Impl_T<T>::~R2TAO_ArrayAny_Impl_T ()
|
308
309
|
{
|
309
310
|
this->free_value ();
|
310
311
|
}
|
@@ -315,7 +316,7 @@ void R2TAO_ArrayAny_Impl_T<T>::insert (CORBA::Any &any,
|
|
315
316
|
T * const val,
|
316
317
|
CORBA::ULong len)
|
317
318
|
{
|
318
|
-
R2TAO_ArrayAny_Impl_T<T> *new_impl =
|
319
|
+
R2TAO_ArrayAny_Impl_T<T> *new_impl = nullptr;
|
319
320
|
ACE_NEW (new_impl,
|
320
321
|
R2TAO_ArrayAny_Impl_T<T> (tc,
|
321
322
|
val,
|
@@ -397,15 +398,15 @@ const void *R2TAO_ArrayAny_Impl_T<T>::value () const
|
|
397
398
|
}
|
398
399
|
|
399
400
|
template<typename T>
|
400
|
-
void R2TAO_ArrayAny_Impl_T<T>::free_value (
|
401
|
+
void R2TAO_ArrayAny_Impl_T<T>::free_value ()
|
401
402
|
{
|
402
|
-
if (this->value_
|
403
|
+
if (this->value_)
|
403
404
|
{
|
404
405
|
delete [] reinterpret_cast<T*> (this->value_);
|
405
406
|
}
|
406
407
|
|
407
408
|
::CORBA::release (this->type_);
|
408
|
-
this->value_ =
|
409
|
+
this->value_ = nullptr;
|
409
410
|
}
|
410
411
|
|
411
412
|
//-------------------------------------------------------------------
|
@@ -439,7 +440,7 @@ R2TAO_Value::~R2TAO_Value ()
|
|
439
440
|
this->rbCIHolder_ = Qnil;
|
440
441
|
}
|
441
442
|
|
442
|
-
CORBA::ValueBase* R2TAO_Value::_copy_value (
|
443
|
+
CORBA::ValueBase* R2TAO_Value::_copy_value ()
|
443
444
|
{
|
444
445
|
return 0; // noop
|
445
446
|
}
|
@@ -500,12 +501,11 @@ void R2TAO_Value::init ()
|
|
500
501
|
"Ruby marshaling succeeded for value %@ for %C\n",
|
501
502
|
this->rbValue_,
|
502
503
|
this->val_tc_->id ()));
|
503
|
-
|
504
504
|
}
|
505
505
|
|
506
506
|
if (TAO_debug_level > 9)
|
507
507
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::ctor "
|
508
|
-
"created Value wrapper %@ for %
|
508
|
+
"created Value wrapper %@ for %C %C\n",
|
509
509
|
this, this->val_tc_->id (),
|
510
510
|
this->is_truncatable_ ? "(truncatable)" : ""));
|
511
511
|
}
|
@@ -572,7 +572,7 @@ class CI_Guard
|
|
572
572
|
|
573
573
|
if (TAO_debug_level > 9)
|
574
574
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_marshal_v: "
|
575
|
-
"marshaling value %@ for %s %
|
575
|
+
"marshaling value %@ for %s %C\n",
|
576
576
|
this,
|
577
577
|
this->val_tc_->id (),
|
578
578
|
ci.chunking_ ? "(chunked)" : ""));
|
@@ -589,7 +589,7 @@ class CI_Guard
|
|
589
589
|
|
590
590
|
if (TAO_debug_level > 10)
|
591
591
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_marshal_v: "
|
592
|
-
"marshaling chunk %@ for value %@ for %
|
592
|
+
"marshaling chunk %@ for value %@ for %C\n",
|
593
593
|
p,
|
594
594
|
this,
|
595
595
|
this->val_tc_->id ()));
|
@@ -599,7 +599,7 @@ class CI_Guard
|
|
599
599
|
{
|
600
600
|
if (TAO_debug_level > 10)
|
601
601
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_marshal_v: "
|
602
|
-
"marshaling chunk element %u for value %@ for %
|
602
|
+
"marshaling chunk element %u for value %@ for %C\n",
|
603
603
|
e,
|
604
604
|
this,
|
605
605
|
this->val_tc_->id ()));
|
@@ -608,7 +608,7 @@ class CI_Guard
|
|
608
608
|
{
|
609
609
|
// should not ever happen
|
610
610
|
ACE_DEBUG ((LM_ERROR, "R2TAO (%P|%t) - R2TAO_Value::_tao_marshal_v: "
|
611
|
-
"chunk element %u for value %@ for %
|
611
|
+
"chunk element %u for value %@ for %C is INVALID (%C is null)\n",
|
612
612
|
e,
|
613
613
|
this,
|
614
614
|
this->val_tc_->id (),
|
@@ -627,7 +627,7 @@ class CI_Guard
|
|
627
627
|
|
628
628
|
if (TAO_debug_level > 9)
|
629
629
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_marshal_v: "
|
630
|
-
"succeeded marshaling value %@ for %
|
630
|
+
"succeeded marshaling value %@ for %C\n",
|
631
631
|
this,
|
632
632
|
this->val_tc_->id ()));
|
633
633
|
|
@@ -636,7 +636,7 @@ class CI_Guard
|
|
636
636
|
|
637
637
|
bool R2TAO_Value::add_chunk ()
|
638
638
|
{
|
639
|
-
Chunk* new_chunk =
|
639
|
+
Chunk* new_chunk = nullptr;
|
640
640
|
ACE_NEW_NORETURN (new_chunk, Chunk());
|
641
641
|
if (new_chunk != 0)
|
642
642
|
{
|
@@ -652,7 +652,7 @@ bool R2TAO_Value::add_chunk ()
|
|
652
652
|
|
653
653
|
if (TAO_debug_level > 10)
|
654
654
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::add_chunk: "
|
655
|
-
"added chunk %@ for value %@ for %
|
655
|
+
"added chunk %@ for value %@ for %C\n",
|
656
656
|
new_chunk,
|
657
657
|
this,
|
658
658
|
this->val_tc_->id ()));
|
@@ -672,7 +672,7 @@ bool R2TAO_Value::add_chunk_element (CORBA::Any_var& elem)
|
|
672
672
|
|
673
673
|
if (TAO_debug_level > 10)
|
674
674
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::add_chunk: "
|
675
|
-
"added chunk %@ element %u for value %@ for %
|
675
|
+
"added chunk %@ element %u for value %@ for %C\n",
|
676
676
|
this->last_chunk_,
|
677
677
|
last_ix,
|
678
678
|
this,
|
@@ -688,7 +688,7 @@ bool R2TAO_Value::add_chunk_element (CORBA::Any_var& elem)
|
|
688
688
|
{
|
689
689
|
static R2TAO_RBFuncall FN_unmarshal ("do_unmarshal", false);
|
690
690
|
|
691
|
-
if (!this->for_unmarshal_)
|
691
|
+
if (!this->for_unmarshal_) return false;
|
692
692
|
|
693
693
|
// setup chunking info
|
694
694
|
TAO_ChunkInfo ci (this->is_truncatable_ || this->chunking_, 1);
|
@@ -697,7 +697,7 @@ bool R2TAO_Value::add_chunk_element (CORBA::Any_var& elem)
|
|
697
697
|
|
698
698
|
if (TAO_debug_level > 9)
|
699
699
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_unmarshal_v: "
|
700
|
-
"unmarshaling value %@ for %
|
700
|
+
"unmarshaling value %@ for %C\n",
|
701
701
|
this->rbValue_,
|
702
702
|
this->val_tc_->id ()));
|
703
703
|
|
@@ -710,7 +710,7 @@ bool R2TAO_Value::add_chunk_element (CORBA::Any_var& elem)
|
|
710
710
|
|
711
711
|
if (TAO_debug_level > 10)
|
712
712
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_unmarshal_v: "
|
713
|
-
"invoking Ruby unmarshaling for value %@ for %
|
713
|
+
"invoking Ruby unmarshaling for value %@ for %C\n",
|
714
714
|
this->rbValue_,
|
715
715
|
this->val_tc_->id ()));
|
716
716
|
|
@@ -723,7 +723,7 @@ bool R2TAO_Value::add_chunk_element (CORBA::Any_var& elem)
|
|
723
723
|
|
724
724
|
if (TAO_debug_level > 10)
|
725
725
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_Value::_tao_unmarshal_v: "
|
726
|
-
"succeeded unmarshaling value %@ for %
|
726
|
+
"succeeded unmarshaling value %@ for %C %C\n",
|
727
727
|
this->rbValue_,
|
728
728
|
this->val_tc_->id (),
|
729
729
|
this->requires_truncation_ ? "(with truncation)" : ""));
|
@@ -845,7 +845,7 @@ VALUE r2tao_Value_pre_unmarshal(VALUE self, VALUE rstrm)
|
|
845
845
|
|
846
846
|
if (TAO_debug_level > 10)
|
847
847
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2CORBA::CORBA::ValueBase::pre_unmarshal: "
|
848
|
-
"unmarshaling value state for %@ %
|
848
|
+
"unmarshaling value state for %@ %C\n",
|
849
849
|
self,
|
850
850
|
val->requires_truncation () ? "with truncation" : ""));
|
851
851
|
|
@@ -897,7 +897,7 @@ R2TAO_ValueFactory::R2TAO_ValueFactory (VALUE rbValueFactory)
|
|
897
897
|
r2tao_register_object (this->rbValueFactory_);
|
898
898
|
}
|
899
899
|
|
900
|
-
R2TAO_ValueFactory::~R2TAO_ValueFactory (
|
900
|
+
R2TAO_ValueFactory::~R2TAO_ValueFactory ()
|
901
901
|
{
|
902
902
|
r2tao_unregister_object (this->rbValueFactory_);
|
903
903
|
}
|
@@ -907,17 +907,17 @@ R2TAO_ValueFactory* R2TAO_ValueFactory::_downcast ( ::CORBA::ValueFactoryBase *
|
|
907
907
|
return dynamic_cast <R2TAO_ValueFactory*> (vfb);
|
908
908
|
}
|
909
909
|
|
910
|
-
::CORBA::ValueBase * R2TAO_ValueFactory::create_for_unmarshal (
|
910
|
+
::CORBA::ValueBase * R2TAO_ValueFactory::create_for_unmarshal ()
|
911
911
|
{
|
912
912
|
// create new Ruby Value
|
913
913
|
VALUE rval = fn_create_default_.invoke (this->rbValueFactory_);
|
914
914
|
if (fn_create_default_.has_caught_exception ())
|
915
915
|
{
|
916
916
|
rb_eval_string ("STDERR.puts $!.to_s+\"\\n\"+$!.backtrace.join(\"\\n\")");
|
917
|
-
return
|
917
|
+
return nullptr;
|
918
918
|
}
|
919
919
|
|
920
|
-
R2TAO_Value *ret_val =
|
920
|
+
R2TAO_Value *ret_val = nullptr;
|
921
921
|
ACE_NEW_THROW_EX (
|
922
922
|
ret_val,
|
923
923
|
R2TAO_Value (rval, true),
|
@@ -926,14 +926,14 @@ R2TAO_ValueFactory* R2TAO_ValueFactory::_downcast ( ::CORBA::ValueFactoryBase *
|
|
926
926
|
|
927
927
|
if (TAO_debug_level > 9)
|
928
928
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - R2TAO_ValueFactory::create_for_unmarshal: "
|
929
|
-
"created value wrapper %@ for %
|
929
|
+
"created value wrapper %@ for %C\n",
|
930
930
|
ret_val,
|
931
931
|
this->tao_repository_id ()));
|
932
932
|
|
933
933
|
return ret_val;
|
934
934
|
}
|
935
935
|
|
936
|
-
::CORBA::AbstractBase_ptr R2TAO_ValueFactory::create_for_unmarshal_abstract (
|
936
|
+
::CORBA::AbstractBase_ptr R2TAO_ValueFactory::create_for_unmarshal_abstract ()
|
937
937
|
{
|
938
938
|
// create new Ruby Value
|
939
939
|
VALUE rval = fn_create_default_.invoke (this->rbValueFactory_);
|
@@ -946,7 +946,7 @@ R2TAO_ValueFactory* R2TAO_ValueFactory::_downcast ( ::CORBA::ValueFactoryBase *
|
|
946
946
|
// create without 'abs_tc' below since this object will not be
|
947
947
|
// used for marshaling but only for unmarshaling
|
948
948
|
// through a call to _tao_unmarshal_v()
|
949
|
-
R2TAO_AbstractValue *ret_val =
|
949
|
+
R2TAO_AbstractValue *ret_val = nullptr;
|
950
950
|
ACE_NEW_THROW_EX (
|
951
951
|
ret_val,
|
952
952
|
R2TAO_AbstractValue (rval),
|
@@ -956,7 +956,7 @@ R2TAO_ValueFactory* R2TAO_ValueFactory::_downcast ( ::CORBA::ValueFactoryBase *
|
|
956
956
|
}
|
957
957
|
|
958
958
|
// TAO-specific extensions
|
959
|
-
const char* R2TAO_ValueFactory::tao_repository_id (
|
959
|
+
const char* R2TAO_ValueFactory::tao_repository_id ()
|
960
960
|
{
|
961
961
|
static ID value_id_ID = rb_intern ("value_id");
|
962
962
|
|
@@ -977,7 +977,7 @@ VALUE r2tao_VFB_register_value_factory(VALUE /*self*/, VALUE id, VALUE rfact)
|
|
977
977
|
|
978
978
|
if (TAO_debug_level > 5)
|
979
979
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - ValueFactoryBase::register_value_factory:: "
|
980
|
-
"registering factory for %
|
980
|
+
"registering factory for %C\n",
|
981
981
|
RSTRING_PTR (id)));
|
982
982
|
|
983
983
|
CORBA::ValueFactory factory = new R2TAO_ValueFactory (rfact);
|
@@ -1002,7 +1002,7 @@ VALUE r2tao_VFB_unregister_value_factory(VALUE /*self*/, VALUE id)
|
|
1002
1002
|
|
1003
1003
|
if (TAO_debug_level > 5)
|
1004
1004
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - ORB::unregister_value_factory:: "
|
1005
|
-
"unregistering factory for %
|
1005
|
+
"unregistering factory for %C\n",
|
1006
1006
|
RSTRING_PTR (id)));
|
1007
1007
|
|
1008
1008
|
TAO_ORB_Core_instance ()->orb ()->unregister_value_factory (
|
@@ -1023,7 +1023,7 @@ VALUE r2tao_VFB_lookup_value_factory(VALUE /*self*/, VALUE id)
|
|
1023
1023
|
|
1024
1024
|
if (TAO_debug_level > 5)
|
1025
1025
|
ACE_DEBUG ((LM_INFO, "R2TAO (%P|%t) - ORB::lookup_value_factory:: "
|
1026
|
-
"looking up factory for %
|
1026
|
+
"looking up factory for %C\n",
|
1027
1027
|
RSTRING_PTR (id)));
|
1028
1028
|
|
1029
1029
|
CORBA::ValueFactory factory =
|
@@ -1106,17 +1106,17 @@ CORBA::Boolean R2TAO_AbstractValue::_tao_match_formal_type (ptrdiff_t p) const
|
|
1106
1106
|
return this->R2TAO_Value::_tao_match_formal_type (p);
|
1107
1107
|
}
|
1108
1108
|
|
1109
|
-
void R2TAO_AbstractValue::_add_ref (
|
1109
|
+
void R2TAO_AbstractValue::_add_ref ()
|
1110
1110
|
{
|
1111
1111
|
this->::CORBA::DefaultValueRefCountBase::_add_ref ();
|
1112
1112
|
}
|
1113
1113
|
|
1114
|
-
void R2TAO_AbstractValue::_remove_ref (
|
1114
|
+
void R2TAO_AbstractValue::_remove_ref ()
|
1115
1115
|
{
|
1116
1116
|
this->::CORBA::DefaultValueRefCountBase::_remove_ref ();
|
1117
1117
|
}
|
1118
1118
|
|
1119
|
-
::CORBA::ValueBase *R2TAO_AbstractValue::_tao_to_value (
|
1119
|
+
::CORBA::ValueBase *R2TAO_AbstractValue::_tao_to_value ()
|
1120
1120
|
{
|
1121
1121
|
return this;
|
1122
1122
|
}
|
@@ -1169,7 +1169,7 @@ TAO::Objref_Traits<R2TAO_AbstractValue>::release (
|
|
1169
1169
|
}
|
1170
1170
|
|
1171
1171
|
R2TAO_AbstractValue_ptr
|
1172
|
-
TAO::Objref_Traits<R2TAO_AbstractValue>::nil (
|
1172
|
+
TAO::Objref_Traits<R2TAO_AbstractValue>::nil ()
|
1173
1173
|
{
|
1174
1174
|
return 0;
|
1175
1175
|
}
|
@@ -1237,11 +1237,11 @@ void R2TAO_AbstractObject::_tao_release (R2TAO_AbstractObject_ptr obj)
|
|
1237
1237
|
::CORBA::release (obj);
|
1238
1238
|
}
|
1239
1239
|
|
1240
|
-
void R2TAO_AbstractObject::_add_ref (
|
1240
|
+
void R2TAO_AbstractObject::_add_ref ()
|
1241
1241
|
{
|
1242
1242
|
this->::CORBA::Object::_add_ref();
|
1243
1243
|
}
|
1244
|
-
void R2TAO_AbstractObject::_remove_ref (
|
1244
|
+
void R2TAO_AbstractObject::_remove_ref ()
|
1245
1245
|
{
|
1246
1246
|
this->::CORBA::Object::_remove_ref();
|
1247
1247
|
}
|
@@ -1249,8 +1249,7 @@ void R2TAO_AbstractObject::_remove_ref (void)
|
|
1249
1249
|
::CORBA::Boolean R2TAO_AbstractObject::_is_a (const char *type_id)
|
1250
1250
|
{
|
1251
1251
|
return this->::CORBA::AbstractBase::_is_a (type_id) ||
|
1252
|
-
|
1253
|
-
"IDL:omg.org/CORBA/Object:1.0") == 0 ||
|
1252
|
+
std::strcmp (type_id, "IDL:omg.org/CORBA/Object:1.0") == 0 ||
|
1254
1253
|
this->::CORBA::Object::_is_a (type_id);
|
1255
1254
|
}
|
1256
1255
|
|
@@ -1312,7 +1311,7 @@ TAO::Objref_Traits<R2TAO_AbstractObject>::release (
|
|
1312
1311
|
}
|
1313
1312
|
|
1314
1313
|
R2TAO_AbstractObject_ptr
|
1315
|
-
TAO::Objref_Traits<R2TAO_AbstractObject>::nil (
|
1314
|
+
TAO::Objref_Traits<R2TAO_AbstractObject>::nil ()
|
1316
1315
|
{
|
1317
1316
|
return 0;
|
1318
1317
|
}
|
@@ -1386,7 +1385,7 @@ VALUE r2tao_OStream_write_any (VALUE self, VALUE rval)
|
|
1386
1385
|
"NIL value not allowed\n"));
|
1387
1386
|
throw CORBA::MARSHAL ();
|
1388
1387
|
}
|
1389
|
-
CORBA::Any* any =
|
1388
|
+
CORBA::Any* any = nullptr;
|
1390
1389
|
ACE_NEW_THROW_EX (any,
|
1391
1390
|
CORBA::Any (),
|
1392
1391
|
CORBA::NO_MEMORY());
|
@@ -1402,7 +1401,7 @@ VALUE r2tao_OStream_write_boolean (VALUE self, VALUE rval)
|
|
1402
1401
|
{
|
1403
1402
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1404
1403
|
R2TAO_TRY {
|
1405
|
-
CORBA::Any* any =
|
1404
|
+
CORBA::Any* any = nullptr;
|
1406
1405
|
ACE_NEW_THROW_EX (any,
|
1407
1406
|
CORBA::Any (),
|
1408
1407
|
CORBA::NO_MEMORY());
|
@@ -1419,7 +1418,7 @@ VALUE r2tao_OStream_write_char (VALUE self, VALUE rval)
|
|
1419
1418
|
{
|
1420
1419
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1421
1420
|
R2TAO_TRY {
|
1422
|
-
CORBA::Any* any =
|
1421
|
+
CORBA::Any* any = nullptr;
|
1423
1422
|
ACE_NEW_THROW_EX (any,
|
1424
1423
|
CORBA::Any (),
|
1425
1424
|
CORBA::NO_MEMORY());
|
@@ -1441,7 +1440,7 @@ VALUE r2tao_OStream_write_wchar (VALUE self, VALUE rval)
|
|
1441
1440
|
{
|
1442
1441
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1443
1442
|
R2TAO_TRY {
|
1444
|
-
CORBA::Any* any =
|
1443
|
+
CORBA::Any* any = nullptr;
|
1445
1444
|
ACE_NEW_THROW_EX (any,
|
1446
1445
|
CORBA::Any (),
|
1447
1446
|
CORBA::NO_MEMORY());
|
@@ -1458,7 +1457,7 @@ VALUE r2tao_OStream_write_octet (VALUE self, VALUE rval)
|
|
1458
1457
|
{
|
1459
1458
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1460
1459
|
R2TAO_TRY {
|
1461
|
-
CORBA::Any* any =
|
1460
|
+
CORBA::Any* any = nullptr;
|
1462
1461
|
ACE_NEW_THROW_EX (any,
|
1463
1462
|
CORBA::Any (),
|
1464
1463
|
CORBA::NO_MEMORY());
|
@@ -1475,7 +1474,7 @@ VALUE r2tao_OStream_write_short (VALUE self, VALUE rval)
|
|
1475
1474
|
{
|
1476
1475
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1477
1476
|
R2TAO_TRY {
|
1478
|
-
CORBA::Any* any =
|
1477
|
+
CORBA::Any* any = nullptr;
|
1479
1478
|
ACE_NEW_THROW_EX (any,
|
1480
1479
|
CORBA::Any (),
|
1481
1480
|
CORBA::NO_MEMORY());
|
@@ -1492,7 +1491,7 @@ VALUE r2tao_OStream_write_ushort (VALUE self, VALUE rval)
|
|
1492
1491
|
{
|
1493
1492
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1494
1493
|
R2TAO_TRY {
|
1495
|
-
CORBA::Any* any =
|
1494
|
+
CORBA::Any* any = nullptr;
|
1496
1495
|
ACE_NEW_THROW_EX (any,
|
1497
1496
|
CORBA::Any (),
|
1498
1497
|
CORBA::NO_MEMORY());
|
@@ -1509,7 +1508,7 @@ VALUE r2tao_OStream_write_long (VALUE self, VALUE rval)
|
|
1509
1508
|
{
|
1510
1509
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1511
1510
|
R2TAO_TRY {
|
1512
|
-
CORBA::Any* any =
|
1511
|
+
CORBA::Any* any = nullptr;
|
1513
1512
|
ACE_NEW_THROW_EX (any,
|
1514
1513
|
CORBA::Any (),
|
1515
1514
|
CORBA::NO_MEMORY());
|
@@ -1526,7 +1525,7 @@ VALUE r2tao_OStream_write_ulong (VALUE self, VALUE rval)
|
|
1526
1525
|
{
|
1527
1526
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1528
1527
|
R2TAO_TRY {
|
1529
|
-
CORBA::Any* any =
|
1528
|
+
CORBA::Any* any = nullptr;
|
1530
1529
|
ACE_NEW_THROW_EX (any,
|
1531
1530
|
CORBA::Any (),
|
1532
1531
|
CORBA::NO_MEMORY());
|
@@ -1543,7 +1542,7 @@ VALUE r2tao_OStream_write_longlong (VALUE self, VALUE rval)
|
|
1543
1542
|
{
|
1544
1543
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1545
1544
|
R2TAO_TRY {
|
1546
|
-
CORBA::Any* any =
|
1545
|
+
CORBA::Any* any = nullptr;
|
1547
1546
|
ACE_NEW_THROW_EX (any,
|
1548
1547
|
CORBA::Any (),
|
1549
1548
|
CORBA::NO_MEMORY());
|
@@ -1560,7 +1559,7 @@ VALUE r2tao_OStream_write_ulonglong (VALUE self, VALUE rval)
|
|
1560
1559
|
{
|
1561
1560
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1562
1561
|
R2TAO_TRY {
|
1563
|
-
CORBA::Any* any =
|
1562
|
+
CORBA::Any* any = nullptr;
|
1564
1563
|
ACE_NEW_THROW_EX (any,
|
1565
1564
|
CORBA::Any (),
|
1566
1565
|
CORBA::NO_MEMORY());
|
@@ -1577,7 +1576,7 @@ VALUE r2tao_OStream_write_float (VALUE self, VALUE rval)
|
|
1577
1576
|
{
|
1578
1577
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1579
1578
|
R2TAO_TRY {
|
1580
|
-
CORBA::Any* any =
|
1579
|
+
CORBA::Any* any = nullptr;
|
1581
1580
|
ACE_NEW_THROW_EX (any,
|
1582
1581
|
CORBA::Any (),
|
1583
1582
|
CORBA::NO_MEMORY());
|
@@ -1594,7 +1593,7 @@ VALUE r2tao_OStream_write_double (VALUE self, VALUE rval)
|
|
1594
1593
|
{
|
1595
1594
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1596
1595
|
R2TAO_TRY {
|
1597
|
-
CORBA::Any* any =
|
1596
|
+
CORBA::Any* any = nullptr;
|
1598
1597
|
ACE_NEW_THROW_EX (any,
|
1599
1598
|
CORBA::Any (),
|
1600
1599
|
CORBA::NO_MEMORY());
|
@@ -1611,7 +1610,7 @@ VALUE r2tao_OStream_write_longdouble (VALUE self, VALUE rval)
|
|
1611
1610
|
{
|
1612
1611
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1613
1612
|
R2TAO_TRY {
|
1614
|
-
CORBA::Any* any =
|
1613
|
+
CORBA::Any* any = nullptr;
|
1615
1614
|
ACE_NEW_THROW_EX (any,
|
1616
1615
|
CORBA::Any (),
|
1617
1616
|
CORBA::NO_MEMORY());
|
@@ -1629,7 +1628,7 @@ VALUE r2tao_OStream_write_Object (VALUE self, VALUE rval)
|
|
1629
1628
|
{
|
1630
1629
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1631
1630
|
R2TAO_TRY {
|
1632
|
-
CORBA::Any* any =
|
1631
|
+
CORBA::Any* any = nullptr;
|
1633
1632
|
ACE_NEW_THROW_EX (any,
|
1634
1633
|
CORBA::Any (),
|
1635
1634
|
CORBA::NO_MEMORY());
|
@@ -1652,7 +1651,7 @@ VALUE r2tao_OStream_write_Abstract (VALUE self, VALUE rval)
|
|
1652
1651
|
{
|
1653
1652
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1654
1653
|
R2TAO_TRY {
|
1655
|
-
CORBA::Any* any =
|
1654
|
+
CORBA::Any* any = nullptr;
|
1656
1655
|
ACE_NEW_THROW_EX (any,
|
1657
1656
|
CORBA::Any (),
|
1658
1657
|
CORBA::NO_MEMORY());
|
@@ -1679,7 +1678,7 @@ VALUE r2tao_OStream_write_Value (VALUE self, VALUE rval)
|
|
1679
1678
|
{
|
1680
1679
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1681
1680
|
R2TAO_TRY {
|
1682
|
-
CORBA::Any* any =
|
1681
|
+
CORBA::Any* any = nullptr;
|
1683
1682
|
ACE_NEW_THROW_EX (any,
|
1684
1683
|
CORBA::Any (),
|
1685
1684
|
CORBA::NO_MEMORY());
|
@@ -1706,7 +1705,7 @@ VALUE r2tao_OStream_write_TypeCode (VALUE self, VALUE rval)
|
|
1706
1705
|
{
|
1707
1706
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1708
1707
|
R2TAO_TRY {
|
1709
|
-
CORBA::Any* any =
|
1708
|
+
CORBA::Any* any = nullptr;
|
1710
1709
|
ACE_NEW_THROW_EX (any,
|
1711
1710
|
CORBA::Any (),
|
1712
1711
|
CORBA::NO_MEMORY());
|
@@ -1735,7 +1734,7 @@ VALUE r2tao_OStream_write_string (VALUE self, VALUE rval)
|
|
1735
1734
|
{
|
1736
1735
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1737
1736
|
R2TAO_TRY {
|
1738
|
-
CORBA::Any* any =
|
1737
|
+
CORBA::Any* any = nullptr;
|
1739
1738
|
ACE_NEW_THROW_EX (any,
|
1740
1739
|
CORBA::Any (),
|
1741
1740
|
CORBA::NO_MEMORY());
|
@@ -1759,7 +1758,7 @@ VALUE r2tao_OStream_write_wstring (VALUE self, VALUE rval)
|
|
1759
1758
|
{
|
1760
1759
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1761
1760
|
R2TAO_TRY {
|
1762
|
-
CORBA::Any* any =
|
1761
|
+
CORBA::Any* any = nullptr;
|
1763
1762
|
ACE_NEW_THROW_EX (any,
|
1764
1763
|
CORBA::Any (),
|
1765
1764
|
CORBA::NO_MEMORY());
|
@@ -1790,7 +1789,7 @@ VALUE r2tao_OStream_write_any_array (VALUE self, VALUE rval, VALUE offset, VALUE
|
|
1790
1789
|
{
|
1791
1790
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1792
1791
|
R2TAO_TRY {
|
1793
|
-
CORBA::Any* any =
|
1792
|
+
CORBA::Any* any = nullptr;
|
1794
1793
|
ACE_NEW_THROW_EX (any,
|
1795
1794
|
CORBA::Any (),
|
1796
1795
|
CORBA::NO_MEMORY());
|
@@ -1803,7 +1802,7 @@ VALUE r2tao_OStream_write_any_array (VALUE self, VALUE rval, VALUE offset, VALUE
|
|
1803
1802
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1804
1803
|
if (len > 0)
|
1805
1804
|
{
|
1806
|
-
CORBA::Any* any_array =
|
1805
|
+
CORBA::Any* any_array = nullptr;
|
1807
1806
|
ACE_NEW_THROW_EX (any_array,
|
1808
1807
|
CORBA::Any[len],
|
1809
1808
|
CORBA::NO_MEMORY());
|
@@ -1829,7 +1828,7 @@ VALUE r2tao_OStream_write_boolean_array (VALUE self, VALUE rval, VALUE offset, V
|
|
1829
1828
|
{
|
1830
1829
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1831
1830
|
R2TAO_TRY {
|
1832
|
-
CORBA::Any* any =
|
1831
|
+
CORBA::Any* any = nullptr;
|
1833
1832
|
ACE_NEW_THROW_EX (any,
|
1834
1833
|
CORBA::Any (),
|
1835
1834
|
CORBA::NO_MEMORY());
|
@@ -1842,7 +1841,7 @@ VALUE r2tao_OStream_write_boolean_array (VALUE self, VALUE rval, VALUE offset, V
|
|
1842
1841
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1843
1842
|
if (len > 0)
|
1844
1843
|
{
|
1845
|
-
CORBA::Boolean* native_array =
|
1844
|
+
CORBA::Boolean* native_array = nullptr;
|
1846
1845
|
ACE_NEW_THROW_EX (native_array,
|
1847
1846
|
CORBA::Boolean[len],
|
1848
1847
|
CORBA::NO_MEMORY());
|
@@ -1868,7 +1867,7 @@ VALUE r2tao_OStream_write_char_array (VALUE self, VALUE rval, VALUE offset, VALU
|
|
1868
1867
|
{
|
1869
1868
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1870
1869
|
R2TAO_TRY {
|
1871
|
-
CORBA::Any* any =
|
1870
|
+
CORBA::Any* any = nullptr;
|
1872
1871
|
ACE_NEW_THROW_EX (any,
|
1873
1872
|
CORBA::Any (),
|
1874
1873
|
CORBA::NO_MEMORY());
|
@@ -1881,7 +1880,7 @@ VALUE r2tao_OStream_write_char_array (VALUE self, VALUE rval, VALUE offset, VALU
|
|
1881
1880
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1882
1881
|
if (len > 0)
|
1883
1882
|
{
|
1884
|
-
CORBA::Char* native_array =
|
1883
|
+
CORBA::Char* native_array = nullptr;
|
1885
1884
|
ACE_NEW_THROW_EX (native_array,
|
1886
1885
|
CORBA::Char[len],
|
1887
1886
|
CORBA::NO_MEMORY());
|
@@ -1907,7 +1906,7 @@ VALUE r2tao_OStream_write_wchar_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1907
1906
|
{
|
1908
1907
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1909
1908
|
R2TAO_TRY {
|
1910
|
-
CORBA::Any* any =
|
1909
|
+
CORBA::Any* any = nullptr;
|
1911
1910
|
ACE_NEW_THROW_EX (any,
|
1912
1911
|
CORBA::Any (),
|
1913
1912
|
CORBA::NO_MEMORY());
|
@@ -1920,7 +1919,7 @@ VALUE r2tao_OStream_write_wchar_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1920
1919
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1921
1920
|
if (len > 0)
|
1922
1921
|
{
|
1923
|
-
CORBA::WChar* native_array =
|
1922
|
+
CORBA::WChar* native_array = nullptr;
|
1924
1923
|
ACE_NEW_THROW_EX (native_array,
|
1925
1924
|
CORBA::WChar[len],
|
1926
1925
|
CORBA::NO_MEMORY());
|
@@ -1946,7 +1945,7 @@ VALUE r2tao_OStream_write_octet_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1946
1945
|
{
|
1947
1946
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1948
1947
|
R2TAO_TRY {
|
1949
|
-
CORBA::Any* any =
|
1948
|
+
CORBA::Any* any = nullptr;
|
1950
1949
|
ACE_NEW_THROW_EX (any,
|
1951
1950
|
CORBA::Any (),
|
1952
1951
|
CORBA::NO_MEMORY());
|
@@ -1959,7 +1958,7 @@ VALUE r2tao_OStream_write_octet_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1959
1958
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1960
1959
|
if (len > 0)
|
1961
1960
|
{
|
1962
|
-
CORBA::Octet* native_array =
|
1961
|
+
CORBA::Octet* native_array = nullptr;
|
1963
1962
|
ACE_NEW_THROW_EX (native_array,
|
1964
1963
|
CORBA::Octet[len],
|
1965
1964
|
CORBA::NO_MEMORY());
|
@@ -1985,7 +1984,7 @@ VALUE r2tao_OStream_write_short_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1985
1984
|
{
|
1986
1985
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
1987
1986
|
R2TAO_TRY {
|
1988
|
-
CORBA::Any* any =
|
1987
|
+
CORBA::Any* any = nullptr;
|
1989
1988
|
ACE_NEW_THROW_EX (any,
|
1990
1989
|
CORBA::Any (),
|
1991
1990
|
CORBA::NO_MEMORY());
|
@@ -1998,7 +1997,7 @@ VALUE r2tao_OStream_write_short_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
1998
1997
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
1999
1998
|
if (len > 0)
|
2000
1999
|
{
|
2001
|
-
CORBA::Short* native_array =
|
2000
|
+
CORBA::Short* native_array = nullptr;
|
2002
2001
|
ACE_NEW_THROW_EX (native_array,
|
2003
2002
|
CORBA::Short[len],
|
2004
2003
|
CORBA::NO_MEMORY());
|
@@ -2024,7 +2023,7 @@ VALUE r2tao_OStream_write_ushort_array (VALUE self, VALUE rval, VALUE offset, VA
|
|
2024
2023
|
{
|
2025
2024
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2026
2025
|
R2TAO_TRY {
|
2027
|
-
CORBA::Any* any =
|
2026
|
+
CORBA::Any* any = nullptr;
|
2028
2027
|
ACE_NEW_THROW_EX (any,
|
2029
2028
|
CORBA::Any (),
|
2030
2029
|
CORBA::NO_MEMORY());
|
@@ -2037,7 +2036,7 @@ VALUE r2tao_OStream_write_ushort_array (VALUE self, VALUE rval, VALUE offset, VA
|
|
2037
2036
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2038
2037
|
if (len > 0)
|
2039
2038
|
{
|
2040
|
-
CORBA::UShort* native_array =
|
2039
|
+
CORBA::UShort* native_array = nullptr;
|
2041
2040
|
ACE_NEW_THROW_EX (native_array,
|
2042
2041
|
CORBA::UShort[len],
|
2043
2042
|
CORBA::NO_MEMORY());
|
@@ -2063,7 +2062,7 @@ VALUE r2tao_OStream_write_long_array (VALUE self, VALUE rval, VALUE offset, VALU
|
|
2063
2062
|
{
|
2064
2063
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2065
2064
|
R2TAO_TRY {
|
2066
|
-
CORBA::Any* any =
|
2065
|
+
CORBA::Any* any = nullptr;
|
2067
2066
|
ACE_NEW_THROW_EX (any,
|
2068
2067
|
CORBA::Any (),
|
2069
2068
|
CORBA::NO_MEMORY());
|
@@ -2076,7 +2075,7 @@ VALUE r2tao_OStream_write_long_array (VALUE self, VALUE rval, VALUE offset, VALU
|
|
2076
2075
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2077
2076
|
if (len > 0)
|
2078
2077
|
{
|
2079
|
-
CORBA::Long* native_array =
|
2078
|
+
CORBA::Long* native_array = nullptr;
|
2080
2079
|
ACE_NEW_THROW_EX (native_array,
|
2081
2080
|
CORBA::Long[len],
|
2082
2081
|
CORBA::NO_MEMORY());
|
@@ -2102,7 +2101,7 @@ VALUE r2tao_OStream_write_ulong_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
2102
2101
|
{
|
2103
2102
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2104
2103
|
R2TAO_TRY {
|
2105
|
-
CORBA::Any* any =
|
2104
|
+
CORBA::Any* any = nullptr;
|
2106
2105
|
ACE_NEW_THROW_EX (any,
|
2107
2106
|
CORBA::Any (),
|
2108
2107
|
CORBA::NO_MEMORY());
|
@@ -2115,7 +2114,7 @@ VALUE r2tao_OStream_write_ulong_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
2115
2114
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2116
2115
|
if (len > 0)
|
2117
2116
|
{
|
2118
|
-
CORBA::ULong* native_array =
|
2117
|
+
CORBA::ULong* native_array = nullptr;
|
2119
2118
|
ACE_NEW_THROW_EX (native_array,
|
2120
2119
|
CORBA::ULong[len],
|
2121
2120
|
CORBA::NO_MEMORY());
|
@@ -2141,7 +2140,7 @@ VALUE r2tao_OStream_write_longlong_array (VALUE self, VALUE rval, VALUE offset,
|
|
2141
2140
|
{
|
2142
2141
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2143
2142
|
R2TAO_TRY {
|
2144
|
-
CORBA::Any* any =
|
2143
|
+
CORBA::Any* any = nullptr;
|
2145
2144
|
ACE_NEW_THROW_EX (any,
|
2146
2145
|
CORBA::Any (),
|
2147
2146
|
CORBA::NO_MEMORY());
|
@@ -2154,7 +2153,7 @@ VALUE r2tao_OStream_write_longlong_array (VALUE self, VALUE rval, VALUE offset,
|
|
2154
2153
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2155
2154
|
if (len > 0)
|
2156
2155
|
{
|
2157
|
-
CORBA::LongLong* native_array =
|
2156
|
+
CORBA::LongLong* native_array = nullptr;
|
2158
2157
|
ACE_NEW_THROW_EX (native_array,
|
2159
2158
|
CORBA::LongLong[len],
|
2160
2159
|
CORBA::NO_MEMORY());
|
@@ -2180,7 +2179,7 @@ VALUE r2tao_OStream_write_ulonglong_array (VALUE self, VALUE rval, VALUE offset,
|
|
2180
2179
|
{
|
2181
2180
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2182
2181
|
R2TAO_TRY {
|
2183
|
-
CORBA::Any* any =
|
2182
|
+
CORBA::Any* any = nullptr;
|
2184
2183
|
ACE_NEW_THROW_EX (any,
|
2185
2184
|
CORBA::Any (),
|
2186
2185
|
CORBA::NO_MEMORY());
|
@@ -2193,7 +2192,7 @@ VALUE r2tao_OStream_write_ulonglong_array (VALUE self, VALUE rval, VALUE offset,
|
|
2193
2192
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2194
2193
|
if (len > 0)
|
2195
2194
|
{
|
2196
|
-
CORBA::ULongLong* native_array =
|
2195
|
+
CORBA::ULongLong* native_array = nullptr;
|
2197
2196
|
ACE_NEW_THROW_EX (native_array,
|
2198
2197
|
CORBA::ULongLong[len],
|
2199
2198
|
CORBA::NO_MEMORY());
|
@@ -2219,7 +2218,7 @@ VALUE r2tao_OStream_write_float_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
2219
2218
|
{
|
2220
2219
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2221
2220
|
R2TAO_TRY {
|
2222
|
-
CORBA::Any* any =
|
2221
|
+
CORBA::Any* any = nullptr;
|
2223
2222
|
ACE_NEW_THROW_EX (any,
|
2224
2223
|
CORBA::Any (),
|
2225
2224
|
CORBA::NO_MEMORY());
|
@@ -2232,7 +2231,7 @@ VALUE r2tao_OStream_write_float_array (VALUE self, VALUE rval, VALUE offset, VAL
|
|
2232
2231
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2233
2232
|
if (len > 0)
|
2234
2233
|
{
|
2235
|
-
CORBA::Float* native_array =
|
2234
|
+
CORBA::Float* native_array = nullptr;
|
2236
2235
|
ACE_NEW_THROW_EX (native_array,
|
2237
2236
|
CORBA::Float[len],
|
2238
2237
|
CORBA::NO_MEMORY());
|
@@ -2258,7 +2257,7 @@ VALUE r2tao_OStream_write_double_array (VALUE self, VALUE rval, VALUE offset, VA
|
|
2258
2257
|
{
|
2259
2258
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2260
2259
|
R2TAO_TRY {
|
2261
|
-
CORBA::Any* any =
|
2260
|
+
CORBA::Any* any = nullptr;
|
2262
2261
|
ACE_NEW_THROW_EX (any,
|
2263
2262
|
CORBA::Any (),
|
2264
2263
|
CORBA::NO_MEMORY());
|
@@ -2271,7 +2270,7 @@ VALUE r2tao_OStream_write_double_array (VALUE self, VALUE rval, VALUE offset, VA
|
|
2271
2270
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2272
2271
|
if (len > 0)
|
2273
2272
|
{
|
2274
|
-
CORBA::Double* native_array =
|
2273
|
+
CORBA::Double* native_array = nullptr;
|
2275
2274
|
ACE_NEW_THROW_EX (native_array,
|
2276
2275
|
CORBA::Double[len],
|
2277
2276
|
CORBA::NO_MEMORY());
|
@@ -2297,7 +2296,7 @@ VALUE r2tao_OStream_write_longdouble_array (VALUE self, VALUE rval, VALUE offset
|
|
2297
2296
|
{
|
2298
2297
|
R2TAO_Value* vt = r2tao_OutputStream_r2t(self);
|
2299
2298
|
R2TAO_TRY {
|
2300
|
-
CORBA::Any* any =
|
2299
|
+
CORBA::Any* any = nullptr;
|
2301
2300
|
ACE_NEW_THROW_EX (any,
|
2302
2301
|
CORBA::Any (),
|
2303
2302
|
CORBA::NO_MEMORY());
|
@@ -2310,7 +2309,7 @@ VALUE r2tao_OStream_write_longdouble_array (VALUE self, VALUE rval, VALUE offset
|
|
2310
2309
|
CORBA::ULong len = ((offs + alen) <= asz) ? alen : (offs < asz ? (asz - offs) : 0);
|
2311
2310
|
if (len > 0)
|
2312
2311
|
{
|
2313
|
-
CORBA::LongDouble* native_array =
|
2312
|
+
CORBA::LongDouble* native_array = nullptr;
|
2314
2313
|
ACE_NEW_THROW_EX (native_array,
|
2315
2314
|
CORBA::LongDouble[len],
|
2316
2315
|
CORBA::NO_MEMORY());
|
@@ -2343,7 +2342,7 @@ VALUE r2tao_OStream_write_construct (VALUE self, VALUE rval, VALUE rtc)
|
|
2343
2342
|
R2TAO_TRY {
|
2344
2343
|
CORBA::TypeCode_ptr tc_ = r2corba_TypeCode_r2t (rtc);
|
2345
2344
|
|
2346
|
-
CORBA::Any* any =
|
2345
|
+
CORBA::Any* any = nullptr;
|
2347
2346
|
ACE_NEW_THROW_EX (any,
|
2348
2347
|
CORBA::Any (),
|
2349
2348
|
CORBA::NO_MEMORY());
|
@@ -2609,7 +2608,7 @@ VALUE r2tao_IStream_read_string (VALUE self)
|
|
2609
2608
|
{
|
2610
2609
|
VALUE ret = Qnil;
|
2611
2610
|
TAO_InputCDR &strm = *r2tao_InputStream_r2t(self);
|
2612
|
-
CORBA::Char* val =
|
2611
|
+
CORBA::Char* val = nullptr;
|
2613
2612
|
R2TAO_TRY {
|
2614
2613
|
strm >> val;
|
2615
2614
|
} R2TAO_CATCH;
|
@@ -2621,7 +2620,7 @@ VALUE r2tao_IStream_read_wstring (VALUE self)
|
|
2621
2620
|
{
|
2622
2621
|
VALUE ret = Qnil;
|
2623
2622
|
TAO_InputCDR &strm = *r2tao_InputStream_r2t(self);
|
2624
|
-
CORBA::WChar* val =
|
2623
|
+
CORBA::WChar* val = nullptr;
|
2625
2624
|
R2TAO_TRY {
|
2626
2625
|
strm >> val;
|
2627
2626
|
} R2TAO_CATCH;
|
@@ -2923,7 +2922,7 @@ VALUE r2tao_IStream_read_construct (VALUE self, VALUE rtc)
|
|
2923
2922
|
CORBA::TypeCode_ptr tc_ = r2corba_TypeCode_r2t (rtc);
|
2924
2923
|
|
2925
2924
|
CORBA::Any any_;
|
2926
|
-
TAO::Unknown_IDL_Type *impl =
|
2925
|
+
TAO::Unknown_IDL_Type *impl = nullptr;
|
2927
2926
|
ACE_NEW_RETURN (impl,
|
2928
2927
|
TAO::Unknown_IDL_Type (tc_),
|
2929
2928
|
false);
|