535 Commits

Author SHA1 Message Date
Thomas Quinot
67885f8149 Get rid of some unnecessary elaboration pragmas.
Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9319 at 2006-12-01 21:19:57]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36825
2005-05-09 17:06:06 +00:00
Thomas Quinot
27404093a6 Kill trailing blank lines. Necessary to build with newer
GNAT wavefronts implementing E416-002.

[Imported from Perforce change 9294 at 2006-12-01 21:19:21]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36800
2005-04-25 13:02:43 +00:00
Thomas Quinot
9b42aff241 Suppress blank line at EOF.
[Imported from Perforce change 9293 at 2006-12-01 21:19:20]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36799
2005-04-25 11:14:33 +00:00
Thomas Quinot
391d8540e1 Suppress multiple consecutive blank lines. This is now checked by the
newest GNAT wavefronts in -gnatg mode.

[Imported from Perforce change 9292 at 2006-12-01 21:18:37]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36798
2005-04-24 21:25:26 +00:00
Jérôme Hugues
d1bf9edc2b Move PolyORB's specific helper routines that manipulate
CORBA.Any type into CORBA.Internals subpackage

Patch submitted by Vadim Godunko, reviewed by Jerome Hugues

[Imported from Perforce change 9285 at 2006-12-01 21:18:21]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36791
2005-04-21 23:50:15 +00:00
Thomas Quinot
55477399c9 Reorganize generic sequence helpers to remove some code duplication
between bounded and unbounded sequences, and to separate the
creation of sequence typecodes from the generation of sequence
To_Any and From_Any helpers. This separation is necessary for
the case of sequences of locality-constrained objects, because
such objects have typecode, but no From_Any/To_Any subprograms.

Recompute build deps.

[Imported from Perforce change 9280 at 2006-12-01 21:17:59]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36787
2005-04-21 14:25:36 +00:00
Thomas Quinot
1aa3f89eb1 Suppress From/To_Any generation for forward declarations of
local interfaces.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9278 at 2006-12-01 21:17:58]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36785
2005-04-19 18:57:57 +00:00
Thomas Quinot
5de9292a9b When a scoped name denotes an interface, it is necessary to check
whether the interface declaration occurs within the current gen_scope,
or any subscope thereof. If it is the case, the reference must be
mapped to a reference to a forward interface, possibly generated
implicitly for that purpose.

The previous implementation of this check did not correctly account
for the fact that the current scope might be several levels deeper
than the current gen_scope, depending on the presence of nested
structures. It also did not take the case of unions into account
altogether. This new implementation addresses both shortcomings.

Fixes E419-009.

[Imported from Perforce change 9277 at 2006-12-01 21:17:57]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36784
2005-04-19 17:46:01 +00:00
Thomas Quinot
87836832a8 Generate typecode for local interfaces.
Submitted by:	Vadim Godunkp
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9274 at 2006-12-01 21:17:57]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36781
2005-04-18 19:31:10 +00:00
Thomas Quinot
6d69eff0f2 Add synthetic attribute Has_Local_Component for locality-constrained
types.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9267 at 2006-12-01 21:17:51]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36774
2005-04-15 19:48:50 +00:00
Thomas Quinot
2d2d56ca9f For a type declarator that declares an array, a new array type
is declared in the generated Ada code, and a specific typecode
is generated. In that case, do not go back to the type spec
when generating a reference to the typecode.

Fix for E329-003.

[Imported from Perforce change 9236 at 2006-12-01 21:17:00]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36748
2005-03-29 18:07:56 +00:00
Thomas Quinot
ce0403d9a5 Remove most instances of unnecessary calls to Copy_Any_Value.
For E301-003

[Imported from Perforce change 9220 at 2006-12-01 21:16:49]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36732
2005-03-23 19:03:12 +00:00
Thomas Quinot
7cab2de4d5 Return an exit status of 2 in the case of an illegal IDL
specification.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9213 at 2006-12-01 21:16:47]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36725
2005-03-23 10:17:57 +00:00
Thomas Quinot
b1782e6a62 Implement support for typeid declarations in idlac.
Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9212 at 2006-12-01 21:16:46]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36724
2005-03-22 12:20:28 +00:00
Thomas Quinot
0a5dbf4ce1 Disable IR code generation by default.
Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9211 at 2006-12-01 21:16:44]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36723
2005-03-22 11:31:23 +00:00
Thomas Quinot
1995b0e486 Make idlac quiet by default.
Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9210 at 2006-12-01 21:16:43]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36722
2005-03-21 18:35:30 +00:00
Thomas Quinot
deeb4579cd Remove legacy -nodyn flag and associated infrastructure.
Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9202 at 2006-12-01 21:16:42]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36717
2005-03-17 18:01:48 +00:00
Jérôme Hugues
1baaa0ea27 Add code generation for the "_domain_managers" function.
Patch submitted by Vadim Godunko, reviewed by Jerome Hugues.

[Imported from Perforce change 9189 at 2006-12-01 21:16:31]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36704
2005-03-11 13:41:15 +00:00
Jérôme Hugues
884ff9f4b7 Move PolyORB specific code into Internals sub-package
[Imported from Perforce change 9178 at 2006-12-01 21:16:23]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36696
2005-03-06 17:31:31 +00:00
Thomas Quinot
706789fc26 In CORBA specification terminology, a regular (non-local)
interface is 'unconstrained'.

[Imported from Perforce change 9176 at 2006-12-01 21:16:23]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36694
2005-03-04 12:12:21 +00:00
Thomas Quinot
0abfbd1f11 For an operation of a local interface that has out formal
parameters and a non-void return type, create a supplementary
formal parameter Returns for the returned value.

Submitted by:	Vadim Godunko
Reviewed by: 	Thomas Quinot.

[Imported from Perforce change 9170 at 2006-12-01 21:16:18]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36689
2005-03-03 16:57:00 +00:00
Thomas Quinot
0bfdbc0f7a Implement idlac code generation and runtime library support
for the CORBA::Object::get_interface operation.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

Recomputed build deps.

[Imported from Perforce change 9169 at 2006-12-01 21:16:14]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36688
2005-03-03 16:07:22 +00:00
Thomas Quinot
0b141c8f55 New test for correct type mapping of occurrence usage of
local interface reference before the completion is seen.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9167 at 2006-12-01 21:16:13]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36687
2005-03-02 12:37:23 +00:00
Thomas Quinot
2fee5ba142 (Calling_Stubs_Type): For the case of a forward declaration
of a local interface, the proper type is Ref, not Abstract_Ref.

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 9166 at 2006-12-01 21:16:13]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36686
2005-03-02 12:36:09 +00:00
Thomas Quinot
ab2d783ea0 Minor reorganisation (no functional change).
[Imported from Perforce change 9165 at 2006-12-01 21:16:13]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36685
2005-03-02 12:34:39 +00:00