From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Aborting
Date: 1999/06/19
Date: 1999-06-19T00:00:00+00:00 [thread overview]
Message-ID: <m3btebes8a.fsf@mheaney.ni.net> (raw)
In-Reply-To: vhir9n7rj0e.fsf@orvarodd.ifi.uio.no
On 19 Jun 1999 23:13, Jan Kroken <jankr@nntp.ifi.uio.no> wrote:
> Is there any other way than pragma import(C,Exit,"exit")
The Ada-name doesn't really matter, but you can't use "exit", because
that is a reserved word. Try this:
pragma Import (C, Exit_Application, "exit");
or
pragma Import (C, C_Exit, "exit");
If you have POSIX bindings, this has already been bound.
> I can abort an Ada program from another place than the main procedure?
Don't say "abort", because that term has a very specific meaning in an
Ada program, different from the one you intend.
Yes, you can, by calling your Exit_Application (above). This is a bit
of a hack, though, especially if you have a multi-threaded application.
next prev parent reply other threads:[~1999-06-19 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <vhir9n7rj0e.fsf@orvarodd.ifi.uio.no>
1999-06-19 0:00 ` Aborting Keith Thompson
1999-06-21 0:00 ` Aborting Jean-Pierre Rosen
1999-06-19 0:00 ` Matthew Heaney [this message]
1999-06-20 0:00 ` Aborting Dale Stanbrough
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox