Menu

#3 Fix for command line processing crash.

open
nobody
None
5
2004-06-19
2004-06-19
No

Attached is a patch to fix a crash when Yap is called with -L and
-- on the command line, like:

yap -L some.prolog -- arg1 arg2

In console/yap.c, there was one too many ++argv which
resulted reading from a null pointer. The new code simplifies
the handling of '-l' and '-L': they are treated the same way,
besides setting HaltAfterConsult to TRUE for '-L'.

Thanks

~ Akos.

Discussion


Log in to post a comment.