From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Odd Behaviour
Date: Tue, 18 Jan 2022 13:25:27 +0100 [thread overview]
Message-ID: <ss6bjn$7dl$1@dont-email.me> (raw)
In-Reply-To: <e6a624b6-e754-4ee5-ad7b-c82f7ef1accan@googlegroups.com>
On 2022-01-18 13:08, Mark Wilson wrote:
>
> Even tried (which to be fair is a bit of a long shot),
>
> procedure SQLAllocHandle
> (Result : out SQLRETURN;
> HandleType : in SQL_HANDLE_TYPE;
> InputHandle : in SQLHANDLE;
> OutputHandlePtr : in out SQLHANDLE);
> -- with
> -- Pre => (Handletype = SQL_Handle_Env);
>
>
> pragma Import (C, SQLAllocHandle);
> pragma Import_Valued_Procedure
> (SQLAllocHandle, "SQLAllocHandle",
> (SQLRETURN, SQL_HANDLE_TYPE, SQLHANDLE, SQLHANDLE),
> (Reference, Value, Value, Reference));
>
> Do you think I should file a bug report?
Import_Valued_Procedure is GNAT-specific, so it can do whatever they like, but
presumably this is unintended behavior and you should report it.
You should be able to work around this by making your procedure a wrapper around
an imported function with an in out parameter, with SPARK checking turned off in
the procedure body.
--
Jeff Carter
"Monsieur Arthur King, who has the brain of a duck, you know."
Monty Python & the Holy Grail
09
next prev parent reply other threads:[~2022-01-18 12:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-18 11:05 Odd Behaviour Mark Wilson
2022-01-18 11:16 ` Marius Amado-Alves
2022-01-18 11:21 ` Mark Wilson
2022-01-18 11:24 ` Mark Wilson
2022-01-18 11:28 ` Jeffrey R.Carter
2022-01-18 11:35 ` Mark Wilson
2022-01-18 11:48 ` Jeffrey R.Carter
2022-01-18 11:51 ` Mark Wilson
2022-01-18 12:08 ` Mark Wilson
2022-01-18 12:18 ` Mark Wilson
2022-01-18 12:27 ` Mark Wilson
2022-01-18 13:50 ` Mark Wilson
2022-01-18 12:25 ` Jeffrey R.Carter [this message]
2022-01-18 12:30 ` Mark Wilson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox