comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Serial port configuration
Date: Sun, 06 Apr 2014 19:57:04 +0100
Date: 2014-04-06T19:57:04+01:00	[thread overview]
Message-ID: <lyk3b2wakf.fsf@pushface.org> (raw)
In-Reply-To: bqdd9uFo9g8U1@mid.individual.net

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?).

In fact, why not just copy the contents of the GNAT version and change
the bits you need to?



  reply	other threads:[~2014-04-06 18:57 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 [this message]
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   ` Serial port configuration hreba
replies disabled

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