comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: SPARK and Interfaces.C
Date: Sat, 21 May 2005 23:52:56 +0100
Date: 2005-05-21T23:52:56+01:00	[thread overview]
Message-ID: <4lZe9SBIv7jCJwn3@diphi.demon.co.uk> (raw)
In-Reply-To: 1116498302.651121.297610@g49g2000cwa.googlegroups.com

In article <1116498302.651121.297610@g49g2000cwa.googlegroups.com>,
ich_bin_elvis@hotmail.com writes
>Thanks got the sytem shadow to work when i used the hide an, with
>configuration file i still got an error.
>
>   4  type double is new Standard.Long_Float;
>                                            ^
>***        Syntax Error      : reserved word "WITH" expected.
>
>   6  type int is new Integer;
>                             ^
>***        Syntax Error      : reserved word "WITH" expected.
>
>           Examining the specification of package Adadll ...

That's because non-tagged derived types aren't in SPARK.

The obvious change is to change them to renaming subtype definitions:

   subtype double is Standard.Long_Float;

   subtype int is Integer;

which might trigger some "unnecessary type conversion" warnings, but you
can ignore these.

>
>The spesification file looks like this
>
>package interfaces.C is
>
>type double is new Standard.Long_Float;
>type unsigned_long  is mod 2 ** long'Size;
>type int is new Integer;
>
>end interfaces.C;
>
>and the Adadll.ads file looks like this, this one gets several errors
>like this
>  11     subtype BOOL      is Interfaces.C.int;
>                              ^
>***        Semantic Error    :754: The identifier Interfaces is either
>undeclared
>           or not visible at this point. This package must be both
>inherited
>           and withed to be visible here.
This is probably a result of the semantic errors in the specification.
Once you've got rid of those then this one will probably go away as
well.

Cheers,

Phil
-- 
JP Thornley



  reply	other threads:[~2005-05-21 22:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 17:34 SPARK and Interfaces.C ich_bin_elvis
2005-05-13 19:40 ` JP Thornley
2005-05-14 12:15   ` Rod Chapman
2005-05-14 13:31     ` Martin Dowie
2005-05-14 15:41       ` Rod Chapman
2005-05-17 10:55     ` ich_bin_elvis
2005-05-17 14:40       ` Rod Chapman
2005-05-19  8:12         ` ich_bin_elvis
2005-05-19  8:46         ` ich_bin_elvis
2005-05-19  9:01           ` Rod Chapman
2005-05-19 10:25             ` ich_bin_elvis
2005-05-21 22:52               ` JP Thornley [this message]
2005-05-23  9:48                 ` ich_bin_elvis
2005-05-23 13:30                   ` JP Thornley
2005-05-23 15:10                     ` JP Thornley
2005-05-24  8:57                       ` ich_bin_elvis
2005-05-24 10:36                         ` JP Thornley
2005-05-24 20:34                           ` ich_bin_elvis
2005-05-25  7:54                             ` JP Thornley
replies disabled

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