From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9ae5242be9f6f6d8,start X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Aborting Date: 1999/06/19 Message-ID: #1/1 X-Deja-AN: 491550056 References: NNTP-Posting-Date: Sat, 19 Jun 1999 15:29:44 PDT Newsgroups: comp.lang.ada Date: 1999-06-19T00:00:00+00:00 List-Id: On 19 Jun 1999 23:13, Jan Kroken 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.