11952 Commits

Author SHA1 Message Date
Thomas Quinot
26de79f23b Create branch for 19.0
R921-020
2018-09-21 16:21:28 +02:00
bobduff
2e82294380 Merge pull request #5 from quinot/master
Update clean target
2018-09-18 11:35:10 -04:00
Thomas Quinot
c21e8f6758 Update clean target
Add missing b__* binder files; account for renaming of
COS Naming server.
2018-09-18 17:06:09 +02:00
Thomas Quinot
0b574778e0 Merge pull request #1 from okellogg/master
Make IAC ignore IDL4 annotation applications
2018-07-14 15:07:20 +02:00
Thomas Quinot
964a22a9c4 Merge pull request #4 from quinot/master
Fix handling of Sync_With_Server request that failed to bind
2018-07-14 15:05:49 +02:00
Oliver Kellogg
fba4400ec8 Merge remote-tracking branch 'upstream/master' 2018-07-14 01:57:32 +02:00
Thomas Quinot
e20a9626fa Fix handling of Sync_With_Server request that failed to bind
For a Sync_With_Server request, a reply must be generated (and
the request must be removed from the protocol session's list of
pending requests) in all cases once all location forwarding is
completed, and the servant is identified.

Do not omit this step in the case where the binding phase failed
and no servant could be located (or the request will be destroyed
while still being pointed to by the session's pending request list).

Fixes R706-015
2018-07-11 11:11:55 +02:00
Thomas Quinot
36fd19d14c Fix regression caused by annotation application change
Skip_Annapp_Scan_Token must delegate error reporting to Scan_Token
for the error location to be properly displayed.
2018-07-11 11:06:26 +02:00
Thomas Quinot
d54b907adc Merge pull request #3 from quinot/master
Switch to Ada 2012 mode for compatibility with GNAT Community 2018
2018-07-10 18:01:01 +02:00
Oliver Kellogg
93153c2cd3 https://github.com/AdaCore/PolyORB/pull/1
- Move handling of annotation applications from lexer to parser:

compilers/iac/lexer.adb
- In procedure Scan_Token (Fatal : Boolean) case-statement decoding
  Buffer (Token_Location.Scan), reduce handling of '@' to just assign
  T_At to Token, i.e. do not advance the scan location over the
  annotation application.

compilers/iac/parser.adb
- New procedure Skip_Annapp_Scan_Token (T : Token_Type := T_Error) is
  similar to Scan_Token but skips any annotation applications that may
  exist at the scanner's current location.
  The optional parameter T is the expected token type.
  If left at its default (T_Error), no specific token type is expected.
- New procedure Skip_Annapp_Scan_Token (State : in out Location) is
  similar to the above but updates the given scanner state on skipping
  annotation applications.
- New function Skip_Annapp_Next_Token return Token_Type is similar to
  Next_Token but skip any annotation applications that may exist at the
  scanner's current location, advancing the scan location while this is
  the case.
- In function P_Attribute_Declaration replace initial Scan_Token call
  by Skip_Annapp_Scan_Token.
- In function P_Constant_Expression fix comment in loop `while not
  Is_Expression_Completed'.
- In function P_Definition replace initial Scan_Token call by
  Skip_Annapp_Scan_Token (State).
- In function P_Identifier replace call to Scan_Token (T_Identifier) by
  Skip_Annapp_Scan_Token (T_Identifier).
- In function P_Operation_Declaration replace initial calls to
  Scan_Token by calls to Skip_Annapp_Scan_Token (State).
- In function P_Simple_Type_Spec replace initial Next_Token call by
  Skip_Annapp_Next_Token.
- In function P_State_Member replace initial Scan_Token call by
  Skip_Annapp_Scan_Token (State).

testsuite/idls/annapp01/tin.idl
testsuite/idls/annapp01/test.out
testsuite/idls/MANIFEST
- Start testing annotation applications.
2018-06-18 10:22:09 +02:00
Thomas Quinot
034c14a9f1 Switch to Ada 2012 mode for compatibility with GNAT Community 2018 2018-06-14 12:04:05 +02:00
Oliver Kellogg
0df933e21d Followup to commit 2b691e0 (make IAC ignore IDL4 annotations):
Address review comment at https://github.com/AdaCore/PolyORB/pull/1,
> [...] the part between parentheses in an annotation application is a
> <const_expr>, which may itself contain nested parentheses.

compilers/iac/lexer.adb
- In procedure Scan_Token (Fatal : Boolean) case-statement decoding
  Buffer (Token_Location.Scan), at handling of '@' followed by '(',
  new counter `Parentheses' keeps track of opening/closing parentheses
  to account for embedded parentheses in the loop which skips to the
  ending ')' of the annotation application.
2018-05-31 11:47:48 +02:00
Oliver Kellogg
2b691e0b96 Make IAC ignore IDL4 annotation applications:
compilers/iac/lexer.ads
- In Token_Type add T_At.

compilers/iac/lexer.adb
- In procedure Process, in then-part of `if not Initialized' add call
    New_Token (T_At, "@");
- In procedure Scan_Token (Fatal : Boolean) case-statement decoding
  Buffer (Token_Location.Scan) add handling of '@':
  - If the following token is an identifier then skip the identifier
    and whitespace that may follow it; if the following token is '('
    then seek ')' and increment Token_Location.Scan to the index after
    the ')'.  Do not modify the value of Token.
  - Otherwise set Token to T_At.
2018-05-26 22:30:16 +02:00
Thomas Quinot
2e56d3fe5b Remove version substitution in README
File has been renamed to README.md (and no longer contains version
placeholder).

Fixes R413-006
2018-04-13 10:08:45 +02:00
Thomas Quinot
e19295aa0f Update README in preparation for publication on Github
R205-036
2018-04-12 15:06:54 +02:00
Thomas Quinot
997e06735f Fix typo in comment 2018-03-26 12:00:28 +02:00
Thomas Quinot
d156f0e80c Convert SCM support to Git
O929-073
2018-01-29 15:27:35 +01:00
Thomas Quinot
dfc0063cdb Remove useless "use type" clause in Helpers generated code
Followup on PA07-083

Subversion-branch: /trunk/polyorb
Subversion-revision: 259585
2018-01-03 11:39:12 +00:00
Thomas Quinot
fc5ff43700 Remove SSLv2 support altogether
This protocol is ancient, insecure, obsolete, and deprecated.

For QB24-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 259181
2017-11-28 12:10:19 +00:00
Thomas Quinot
4536bb780c Provide SSLv2_*_method stub only if missing from libssl
Previously these functions were not present in libssl if it was
built without SSLv2, which is indicated by the presence of macro
OPENSSL_NO_SSL2.

However, OpenSSL commit 03c71b84d351a3a5de0bc7d39a99336369277849
changed this to always expose these functions even when building
without SSLv2 (unless OPENSSL_NO_SSL2_METHOD is defined).

So, we need to actually test for the presence of these functions
to determine whether we need to provide our own stubs.

Fix for QB24-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 259150
2017-11-27 12:32:52 +00:00
Thomas Quinot
f72b5da8c2 Reorganize Makefile to properly locate installed PolyORB for testsuite
Also guard against case where installed version cannot be found.

Fixes QA31-036

Subversion-branch: /trunk/polyorb
Subversion-revision: 258723
2017-11-07 09:59:42 +00:00
Thomas Quinot
96ee58b8ab Bump versions for PolyORB 18.0
QA03-042

Subversion-branch: /trunk/polyorb
Subversion-revision: 258186
2017-10-09 08:44:33 +00:00
Bob Duff
64656024e2 fix warnings, no-tn-check
Subversion-branch: /trunk/polyorb
Subversion-revision: 257789
2017-09-18 20:51:56 +00:00
squirek
aa8c9b0259 Remove ineffective use clauses as per PA07-083 and disable some checks
for
unused entities (-gnatwu) due to generated code violating this warning.

Subversion-branch: /trunk/polyorb
Subversion-revision: 257360
2017-08-29 15:13:55 +00:00
Bob Duff
eac8338f79 The IDL-to-Ada compiler iac now ignores pragma javaPackage, as requested
by a customer. This is a convenience for those also using idlj
(idl-to-java), because idlj recognizes that pragma.

Fixes Q621-023

Subversion-branch: /trunk/polyorb
Subversion-revision: 257245
2017-08-11 21:00:17 +00:00