[Ecls-list] Standalone executable with HEAD

Andy Hefner ahefner at gmail.com
Sun Nov 8 22:45:40 UTC 2009


On Sun, Nov 8, 2009 at 9:39 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:

> EXT:QUIT now works differently: it unwinds the stack until it finds
> the outermost block, executing all cleanup statements from
> UNWIND-PROTECTs that it finds. Unfortunately, standalone executables
> did not provide a single frame to jump to, and QUIT failed. I have
> fixed this in CVS/git.

CVS HEAD has its own problem, the supplied status code doesn't make it
to the operating system. I'm experimenting with ECL and have a lisp
script to compile various C and lisp files and link an executable.
Naturally I'd like the script to return nonzero when the build fails,
but ECL always returns zero regardless of what I supply to ext:quit.
Investigating, I found it took the unwind branch of ext:quit, and I
guess the status code gets discarded somewhere. As a quick hack, I
disabled the unwinding so it immediately exited, which solved my
immediate problem.




More information about the ecl-devel mailing list