comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: binding to C: popen
Date: Tue, 21 Feb 2006 16:52:49 +0100
Date: 2006-02-21T16:52:42+01:00	[thread overview]
Message-ID: <43fb374a$0$13593$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <43fb35a4$0$178$edfadb0f@dread11.news.tele.dk>

Poul-Erik Andreasen wrote:

> Yes but a C pointer is in Ada represented as system.address and i can
> not test that for O the the systems.address_image gives 0804C060 and if
> that is a stadart c value for a null-pointer things are fine, but that
> seems to be a hack.

System.Null_Address, or Interfaces.C.Strings.Null_Ptr perhaps?

You could consider writing a predicate like

  fucntion is_null(p: System.Address) return Boolean;

in order to have the comparison in one place only.

HTH,
 Georg 



  reply	other threads:[~2006-02-21 15:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21 14:37 binding to C: popen Poul-Erik Andreasen
2006-02-21 15:25 ` jimmaureenrogers
2006-02-21 15:45   ` Poul-Erik Andreasen
2006-02-21 15:52     ` Georg Bauhaus [this message]
2006-02-21 16:16       ` Poul-Erik Andreasen
2006-02-21 16:12     ` Alex R. Mosteo
2006-02-21 23:51     ` Jeffrey R. Carter
2006-02-22 13:50 ` Marc A. Criley
2006-02-23  1:10   ` poulerik
replies disabled

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