comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: updating a hardware cursor with assembly and ada
Date: Thu, 06 Mar 2008 19:39:17 GMT
Date: 2008-03-06T19:39:17+00:00	[thread overview]
Message-ID: <FLXzj.11135$TT4.3122@attbi_s22> (raw)
In-Reply-To: <ad7bde49-8e2b-44e5-9fe3-f16a5e7dde4a@m3g2000hsc.googlegroups.com>

cl1 wrote:
> unsigned char outportb (unsigned short _port, unsigned char _data)

>      procedure OutportB (Port : Natural; Data : Natural);
>      pragma Import(C, OutportB, "outportB");

I would recommend using the types in Interfaces.C and its children rather than 
the predefined types.

You should give the C name in the pragma Import exactly as it appears in C: 
"outportb".

-- 
Jeff Carter
"Saving keystrokes is the job of the text editor,
not the programming language."
Preben Randhol
64



  parent reply	other threads:[~2008-03-06 19:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 17:07 updating a hardware cursor with assembly and ada cl1
2008-03-06 17:26 ` Georg Bauhaus
2008-03-06 17:51   ` cl1
2008-03-06 21:31     ` Adam Beneschan
2008-03-06 19:39 ` Jeffrey R. Carter [this message]
2008-03-06 20:08 ` Gautier
2008-03-06 20:14 ` Gautier
2008-03-06 22:54   ` Ludovic Brenta
2008-03-07 15:26 ` cl1
2008-03-07 19:01 ` cl1
2008-03-07 20:16   ` Ludovic Brenta
replies disabled

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