comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <hreba@terra.com.br>
Subject: Re: Serial port configuration
Date: Mon, 07 Apr 2014 08:44:58 -0300
Date: 2014-04-07T08:44:58-03:00	[thread overview]
Message-ID: <bqfhdsF7efvU1@mid.individual.net> (raw)
In-Reply-To: <lyk3b2wakf.fsf@pushface.org>

On 04/06/2014 03:57 PM, Simon Wright wrote:
> hreba <hreba@terra.com.br> writes:
>
>> package body SerAux is
>>
>>     type Port_Data is new int;
>>     type Port_Data_Access is access Port_Data;
>>     type Port is new Ada.Streams.Root_Stream_Type with record
>>        H : Port_Data_Access;
>>     end record;
>
> The declaration of type Port needs to be in the spec; and you need to
> have the spec of Read there also.
>
>>     overriding procedure Read
>>       (--Port   : in out Serial_Port;
>>        Port   : in out Port;
>
> You can't use the name Port twice like that. I'd suggest using
> Serial_Port for the type name, like the original (why change?).

Thanks for the hints.
>
> In fact, why not just copy the contents of the GNAT version and change
> the bits you need to?
>
This might not be the most elegant solution, but the one with the least 
effort. I think I'll try that.
-- 
hreba

      parent reply	other threads:[~2014-04-07 11:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-06 16:22 Serial port configuration hreba
2014-04-06 18:57 ` Simon Wright
2014-04-06 19:06   ` Shark8
2014-04-07 11:47     ` hreba
2023-11-04 14:23     ` GNAT.SHA256 differs from Linux' sha256sum wvxvw
2014-04-07 11:44   ` hreba [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