Path: utzoo!attcan!uunet!seismo!esosun!hyland
From: hyland@esosun.UUCP (Steve Hyland)
Newsgroups: comp.lang.ada
Subject: Re: Modifications to the SAIC Ada binding to the X Window System for VADS
Message-ID: <213@kvasir.esosun.UUCP>
Date: 24 Jun 88 20:59:55 GMT
References: <8806191006.AA01992@ajpo.sei.cmu.edu> <3660008@wdl1.UUCP>
Reply-To: hyland@kvasir.UUCP (Steve Hyland)
Organization: Science Applications Internations Corp, San Diego
Lines: 27

In article <3660008@wdl1.UUCP> marie@wdl1.UUCP (Marie T. Minogue) writes:
>If this is the modification for the VADS compiler, why does my VADS
>SUN 3 version 5.5 compiler reject these changes?
>for the lines like :
>   pragma INTERFACE (C, Xcopycolormapandfree, "_XCopyColormapAndFree");
>
>I get the error :
>
> 482:  pragma INTERFACE (C, Xcopycolormapandfree, "_XCopyColormapAndFree");
>A --------------------------^
>A:warning: RM 13.9(4): parameter types must be scalar, access or SYSTEM.ADDRESS
The keyword here is "warning". The code is compiled, however.

The LRM reference here basically says that the compiler implementor is
free to place whatever restrictions they want on pragma INTERFACE.

By the way, the types it is complaining about ARE scalar or access types.
They are "in" parameters. They also are private types. I have no idea
why VADS gives you the message. Ask them.


> or am I using the wrong compiler?

I won't touch that statement with a ten foot pole. ;-)

Steve Hyland
SAIC