C++ long long type support? (RE: [omniORB] omniORB 3.0.2 and omniORBpy 1.2 available)

Duncan Grisby dgrisby@uk.research.att.com
Fri, 06 Oct 2000 10:19:52 +0100


On Thursday 5 October, "Chris Knight" wrote:

> I'm curious, it appears that the C++ backend does not like the "long =
> long" CORBA type...Is this in the near future for the C++ side?  (Esp. =
> given that the Python side does support it...)  Or does the very latest =
> version support it?  (I cvs'd the latest version as of about a week =
> ago...)

Oh dear. The C++ back-end does actually support long long, but a new
check added after long long support was added did not realise that.

Note that long long is not supported for use with Anys, since adding
that would break binary compatibility in the 3.0.x libraries.

The following patch fixes it. It's in CVS.

Cheers,

Duncan.


diff -u -r1.1.2.2 support.py
--- src/lib/omniORB2/omniidl_be/cxx/support.py	2000/09/21 08:47:35	1.1.2.2
+++ src/lib/omniORB2/omniidl_be/cxx/support.py	2000/10/06 09:03:55
@@ -202,8 +202,6 @@
 
         not_supported = { idltype.tk_null:       "null",
                           idltype.tk_Principal:  "CORBA::Principal",
-                          idltype.tk_longlong:   "long long",
-                          idltype.tk_ulonglong:  "unsigned long long",
                           idltype.tk_longdouble: "long double",
                           idltype.tk_wchar:      "wchar" }
 

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --