bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] abort keyword


From: Neil R. Ormos
Subject: Re: [bug-gawk] abort keyword
Date: Fri, 19 Jan 2018 12:09:32 -0600 (CST)

Andrew J. Schorr wrote:
> Neil R. Ormos wrote:
>> Arnold Robbins wrote:

>> >> Andy, maybe I'll do an abort extension for
>> >> [g]awkextlib.  It's really pretty trivial to
>> >> do... Feel free to beat me to it. :-)

>> > I have done this; it's now in gawkextlib.  Usage
>> > should be something like:

>> >    gawk -labort '{ ... ; abort(42) ; ... }'

>> > This passes 42 to the C exit() routine. If
>> > called with no argument, it passes zero.

>> Thanks.  I'll try it out when I can figure out
>> how.

> It should be something like:

> wget https://sourceforge.net/projects/gawkextlib/files/gawk-abort-1.0.0.tar.gz
> tar xf gawk-abort-1.0.0.tar.gz
> cd gawk-abort-1.0.0
> ./configure && make && make check && make install

> There should be no need to install gawkextlib first, since this simple
> extension does not require that library. Then 'gawk -labort' should work as in
> Arnold's example.

Thanks to Arnold for the extension.

Thanks to Andy for the instructions.

Although I did not need to install gawkextlib, I
did need to put gawkextlib.h in the build
directory. I assume that wouldn't have been
necessary had I built and installed gawkextlib
first (as admonished in the manual for
gawkextlib).

Best regards,

--Neil Ormos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]