1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
--- IOPC.cpp Thu May 3 11:29:04 2001
+++ IOPC.cpp.mod Thu May 3 00:08:59 2001
@@ -21,13 +21,6 @@
#include "IOPC.h"
-#include "tao/Stub.h"
-#include "tao/Invocation.h"
-#include "tao/ClientRequestInfo.h"
-#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/RequestInfo_Util.h"
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus
#endif /* __BORLANDC__ */
@@ -36,6 +29,9 @@
#include "IOPC.i"
#endif /* !defined INLINE */
+#include "Typecode.h"
+#include "ORB_Core.h"
+
static const CORBA::Long _oc_IOP_ProfileId[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
@@ -1571,49 +1567,6 @@
TAO_NAMESPACE_BEGIN (IOP)
TAO_NAMESPACE_DEFINE (const CORBA::ULong, FT_REQUEST, 13U)
TAO_NAMESPACE_END
-IOP::Codec_ptr
-tao_IOP_Codec_duplicate (
- IOP::Codec_ptr p
- )
-{
- return IOP::Codec::_duplicate (p);
-}
-
-void
-tao_IOP_Codec_release (
- IOP::Codec_ptr p
- )
-{
- CORBA::release (p);
-}
-
-IOP::Codec_ptr
-tao_IOP_Codec_nil (
- void
- )
-{
- return IOP::Codec::_nil ();
-}
-
-IOP::Codec_ptr
-tao_IOP_Codec_narrow (
- CORBA::Object *p,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return IOP::Codec::_narrow (p, ACE_TRY_ENV);
-}
-
-CORBA::Object *
-tao_IOP_Codec_upcast (
- void *src
- )
-{
- IOP::Codec **tmp =
- ACE_static_cast (IOP::Codec **, src);
- return *tmp;
-}
-
// *************************************************************
// Operations for class IOP::Codec_var
// *************************************************************
@@ -2184,49 +2137,6 @@
delete tmp;
}
-IOP::CodecFactory_ptr
-tao_IOP_CodecFactory_duplicate (
- IOP::CodecFactory_ptr p
- )
-{
- return IOP::CodecFactory::_duplicate (p);
-}
-
-void
-tao_IOP_CodecFactory_release (
- IOP::CodecFactory_ptr p
- )
-{
- CORBA::release (p);
-}
-
-IOP::CodecFactory_ptr
-tao_IOP_CodecFactory_nil (
- void
- )
-{
- return IOP::CodecFactory::_nil ();
-}
-
-IOP::CodecFactory_ptr
-tao_IOP_CodecFactory_narrow (
- CORBA::Object *p,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return IOP::CodecFactory::_narrow (p, ACE_TRY_ENV);
-}
-
-CORBA::Object *
-tao_IOP_CodecFactory_upcast (
- void *src
- )
-{
- IOP::CodecFactory **tmp =
- ACE_static_cast (IOP::CodecFactory **, src);
- return *tmp;
-}
-
// *************************************************************
// Operations for class IOP::CodecFactory_var
// *************************************************************
@@ -3383,11 +3293,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
@@ -3453,11 +3358,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
CORBA::Boolean _tao_marshal_flag = 1;
for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
@@ -3515,11 +3415,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
@@ -3581,11 +3476,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
CORBA::Boolean _tao_marshal_flag = 1;
for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
@@ -3628,11 +3518,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
CORBA::Boolean _tao_marshal_flag = 1;
for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
@@ -3675,11 +3560,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
CORBA::Boolean _tao_marshal_flag = 1;
for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
@@ -3735,11 +3615,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
@@ -3801,11 +3676,6 @@
// If length is 0 we return true.
if (0 >= _tao_seq_len)
return 1;
- // Add a check to the length of the sequence
- // to make sure it does not exceed the length
- // of the stream. (See bug 58.)
- if (_tao_seq_len > strm.length())
- return 0;
// retrieve all the elements
CORBA::Boolean _tao_marshal_flag = 1;
for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
@@ -3816,4 +3686,3 @@
}
return 0; // error
}
-
|