606 Commits

Author SHA1 Message Date
Thomas Quinot
918f385f8a (configure.ac):
Bump minor version.
  Merge change 10214 for F705-005 (make polyorb-config executable).

(compilers/idlac/idl_fe-paser.adb):
  Merge change 10138 for F615-012 (enforce oneway restrictions)

[Imported from Perforce change 10215 at 2006-12-01 22:51:50]

Subversion-branch: /branches/polyorb/2.1
Subversion-revision: 37676
2006-07-05 12:38:59 +00:00
Thomas Quinot
6000a1bb6b The declaration of a oneway expression is illegal in OMG IDL
when any of the following conditions is true:
* the declaration has a raises expression;
* the declaration has output parameters;
* the declaration has a non-void return type.

These rules were not enforced by idlac; this change implements them.

Fixes F615-012

[Imported from Perforce change 10138 at 2006-12-01 22:50:11]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37600
2006-06-15 15:22:31 +00:00
Thomas Quinot
aa80f1e278 Minor reformatting.
[Imported from Perforce change 10085 at 2006-12-01 22:49:33]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37547
2006-06-01 15:22:03 +00:00
Jérôme Hugues
a03abe07d7 Add new QoS parameter to store Server-side information in the
reply of a request.

Patch submitted by Vadim Godunko, review by Jerome Hugues.

[Imported from Perforce change 10051 at 2006-12-01 22:48:51]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37513
2006-05-17 16:24:44 +00:00
Thomas Quinot
5cc31d5cbc Add missing with clause for CORBA in implementation template for
local interface.

Fixes F321-008

[Imported from Perforce change 9963 at 2006-12-01 22:22:54]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37428
2006-03-22 17:48:04 +00:00
Thomas Quinot
871a9dd55e For a locality-constrained interface, generation of the Is_A
primitive must be under control of the Implement flag, not the
Generate_Client_Code flag.

Fixes F320-002

[Imported from Perforce change 9947 at 2006-12-01 22:22:44]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37412
2006-03-20 17:13:31 +00:00
Jérôme Hugues
a8f1894391 Idlac can now generate either client-side or server-side code.
Patch submitted by Vadim Godunko, reviewed by Jerome Hugues

Added documentation to the above feature.

[Imported from Perforce change 9899 at 2006-12-01 22:22:10]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37364
2006-02-28 12:34:37 +00:00
Thomas Quinot
c0fc849a5b Minor reformatting on generated code.
[Imported from Perforce change 9891 at 2006-12-01 22:22:06]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37356
2006-02-22 11:44:42 +00:00
Thomas Quinot
46b57cf2f0 (Gen_Non_Existent): New subprogram.
Generate server-side skeleton for _non_existent standard operation.
This operation always returns False here (since we execute the skel,
we know we have an object); for non-existing objects, system exception
OBJECT_NOT_EXIST is raised by the object adapter.

For F124-003

[Imported from Perforce change 9888 at 2006-12-01 22:22:05]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37353
2006-02-20 12:43:26 +00:00
Thomas Quinot
8ec1952f90 Fix wrong contition for generation of with clause (if there is an
elaboration control pragma, inconditionally output the with clause).

For F206-022

[Imported from Perforce change 9880 at 2006-12-01 22:21:56]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37345
2006-02-07 19:03:27 +00:00
Thomas Quinot
da9a42f8b6 (Gen_Union_Body): Do not assume that CORBA is visible.
For F206-022

[Imported from Perforce change 9879 at 2006-12-01 22:21:56]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37344
2006-02-07 18:29:03 +00:00
Thomas Quinot
bcd94fc131 Do not merge use clause from body context clause in spec context
clause, to avoid generating warnings for redundant clauses.

This is for F206-022

[Imported from Perforce change 9878 at 2006-12-01 22:21:55]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37343
2006-02-07 18:28:12 +00:00
Thomas Quinot
c1ecd7c5f2 Remove redundant with clauses.
Followup on E801-013

[Imported from Perforce change 9859 at 2006-12-01 22:21:00]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37324
2006-02-02 10:54:11 +00:00
Thomas Quinot
4f238695a8 Fix syntax in generated code (error introduced in previous checkin).
[Imported from Perforce change 9857 at 2006-12-01 22:21:00]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37322
2006-02-01 22:11:42 +00:00
Thomas Quinot
4b636c45ea Add back missing dependency on CORBA.Object in Is_A implementation.
Followup on changes for E801-013

[Imported from Perforce change 9856 at 2006-12-01 22:20:59]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37321
2006-02-01 21:50:27 +00:00
Thomas Quinot
d3f5fc848f Remove redundant with clauses.
Now flagged by new style warning from E801-013

[Imported from Perforce change 9854 at 2006-12-01 22:19:17]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37319
2006-02-01 19:54:53 +00:00
Thomas Quinot
df1a9b33b5 Ensure that a dependency is not added in a body when it already exists
in the corresponding spec.
For E801-013 (new warning on redundant with clauses).

[Imported from Perforce change 9853 at 2006-12-01 22:19:16]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37318
2006-02-01 19:52:44 +00:00
Thomas Quinot
1a836672b9 Pass EXTRA_GNATMAKE_FLAGS to all compilations, not just when
building examples and the test suite.
For that purpose, use gnatmake -c -u instead of gcc in adacompiler.

Fixes F126-003

[Imported from Perforce change 9846 at 2006-12-01 22:19:09]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37311
2006-01-27 11:23:32 +00:00
Thomas Quinot
636814188d Minor reformatting thoughout.
Get rid of useless IN keywords.
Motivated by DA18-006

[Imported from Perforce change 9825 at 2006-12-01 22:16:05]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37290
2006-01-10 18:48:11 +00:00
Thomas Quinot
ff6ac0a0a9 Add initialization dependency of helpers upon "any".
Fixes EC29-003

[Imported from Perforce change 9811 at 2006-12-01 22:15:50]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37278
2006-01-02 16:15:25 +00:00
Thomas Quinot
42a261d61f Reorganise Makefiles so that ADAFLAGS may be specified by the
user in the configure environment.

For build on AIX, EC15-001

[Imported from Perforce change 9779 at 2006-12-01 22:15:13]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37247
2005-12-15 15:29:18 +00:00
Thomas Quinot
43da806789 Generate Result_Name_Ü in interface stub body only if it will
actually be used. Fixes testsuite regression.

General reformatting at various places in idlac.

[Imported from Perforce change 9769 at 2006-12-01 22:15:00]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37237
2005-12-12 14:06:49 +00:00
Thomas Quinot
e76c275fc6 Since Result_Name_Ü is now generated systematically at library
level, the dependency on PolyORB.Types must be generated
inconditionally as well.

Followup on EB18-022

[Imported from Perforce change 9760 at 2006-12-01 21:50:47]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37228
2005-12-08 11:10:30 +00:00
Thomas Quinot
4d71e3c21b Add pragma Warnings (Off) to Result_Name_Ü, which might be
unreferenced (when there are no operations nor attributes in
this interface).

Followup on EB18-022

[Imported from Perforce change 9756 at 2006-12-01 21:49:46]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37224
2005-12-07 18:30:07 +00:00
Thomas Quinot
9174e0ca34 Update header comments.
[Imported from Perforce change 9755 at 2006-12-01 21:49:45]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37223
2005-12-07 18:06:21 +00:00