From: Mark Wooding Date: Sat, 25 Mar 2017 18:01:53 +0000 (+0000) Subject: src/final.lisp (test-module): Make REASON be a keyword argument. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/5d7e65b98fa4e766cef5259a0470d6d7555e77a0 src/final.lisp (test-module): Make REASON be a keyword argument. It's not always wanted, and we'll want to add more keywords soon. --- diff --git a/doc/misc.tex b/doc/misc.tex index f43ec98..ba76cd8 100644 --- a/doc/misc.tex +++ b/doc/misc.tex @@ -568,7 +568,7 @@ These symbols are defined in the @!optparse| package. \begin{describe}{var}{*debugout-pathname*} \end{describe} -\begin{describe}{fun}{test-module @ @ @> @} +\begin{describe}{fun}{test-module @ \&key :reason @> @} \end{describe} \begin{describe}{fun} diff --git a/src/final.lisp b/src/final.lisp index 6b81e3d..96d82df 100644 --- a/src/final.lisp +++ b/src/final.lisp @@ -39,7 +39,7 @@ (export '*debugout-pathname*) (defvar *debugout-pathname* #p"debugout.c") (export 'test-module) -(defun test-module (path reason) +(defun test-module (path &key reason) "Read a module from PATH, to exercise the machinery. If REASON is non-nil, then output the module to `*debugout-pathname*' with