Bug 3940 - add support for dds x-types
Summary: add support for dds x-types
Status: ASSIGNED
Alias: None
Product: TAO
Classification: Unclassified
Component: IDL Compiler (show other bugs)
Version: 1.8.3
Hardware: All Linux
: P3 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2010-12-08 12:33 CST by Johnny Willemsen
Modified: 2018-01-15 11:22 CST (History)
2 users (show)

See Also:


Attachments
DDS X-Types files (430.56 KB, application/zip)
2010-12-10 13:19 CST, Johnny Willemsen
Details
TAO/TAO_IDL/fe/idl.ll patch to make tao_idl ignore IDL4 annotations (444 bytes, patch)
2018-01-11 13:34 CST, Oliver Kellogg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johnny Willemsen 2010-12-08 12:33:48 CST
the dds x-types specification adds annotations to idl, would be nice if tao_idl could handle this
Comment 1 Jeff Parsons 2010-12-08 12:45:05 CST
What's an x-type?
Comment 2 Johnny Willemsen 2010-12-08 13:20:01 CST
it is short for dds extensible types, google for it, it is on the OMG website, it is an extension to dds which also extend the idl grammar
Comment 3 Johnny Willemsen 2010-12-10 13:19:20 CST
Created attachment 1340 [details]
DDS X-Types files

DDS X-Types files
Comment 4 Oliver Kellogg 2018-01-11 13:34:33 CST
Created attachment 1524 [details]
TAO/TAO_IDL/fe/idl.ll patch to make tao_idl ignore IDL4 annotations

IDL4 and DDS-XTypes introduce annotations along the lines of Java.
The tao_idl translator gets confused by such annotations; the patch fixes this.

After applying the patch, in directory TAO/TAO_IDL I executed the script regen.sh and that updated some generated files:

fe/idl.tab.cpp
fe/idl.tab.hpp
fe/idl.ypp
fe/idl.yy.cpp

If you wish, I can also attach the diff of those files - but they seem to depend on the exact version of flex and bison used; in my case, the diff was pretty laden with irrelevant deltas.