comp.lang.ada
 help / color / mirror / Atom feed
From: Andreas Almroth <andreas.almroth@uppsala.mail.telia.com>
Subject: Re: ADA bindings for XVIEW
Date: 1997/12/02
Date: 1997-12-02T00:00:00+00:00	[thread overview]
Message-ID: <34847099.5EFF@uppsala.mail.telia.com> (raw)
In-Reply-To: dewar.881081038@merv


Robert Dewar wrote:
> 
> Andrew says
> 
> <<gcc -g -O -I/usr/openwin/include -c xv_panel_package.adb
> xv_panel_package.adb:165:12: convention for "xv_get" does not permit
> returning unconstrained array type
> make: *** [xv_panel_package.ali] Error 1
> 
> the code causing the problem is :
> 
>  function xv_get (owner : Xv_opaque; cmd : Integer; Data : Integer;
>                                                      term : Integer)
>                    return Interfaces.C.Char_array;
>   pragma import (C,xv_get,"xv_get");
> 
> Does anyone know why ? or how to conquer ?
> >>
> 
> This program makes no sense, since C has no concept of unconstrained
> arrays. So the diagnostic makes perfect sense. To conquer it, stop
> trying to return unconstrained arrays!

Hm, sorry folks, by time the I wrote the code, I did not know better...
In my internal use only release (0.5) it's fixed.

I  must confess I'm not proud of some of the code I wrote in the
early days of my ADA95 programming, but hopefully I've learnt a lot
during the past two years...

I've just got my hands on a SPARC Station 10, so I'm setting up a
GNAT 3.10P environment as we speak. Hopefully I can schedule some
milliseconds to put together a 0.5 public release.
It seems, after all, that at least one person is using my library,
so it will be worth the time...

Regards,

         Andreas Almroth




      reply	other threads:[~1997-12-02  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-02  0:00 ADA bindings for XVIEW Andrew Wood
1997-12-02  0:00 ` Robert Dewar
1997-12-02  0:00   ` Andreas Almroth [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox