chiark / gitweb /
src/optparse.lisp: Use low-level slot accessor in `option' printer.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 2 Aug 2017 09:41:05 +0000 (10:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Jun 2018 18:58:40 +0000 (19:58 +0100)
If I try to use the access wrapper, I get compiler warnings about how
the previous use of the function wasn't inlined; but if I declare the
wrapper earlier then it might not inline anything.  The printer is
rarely used, so this isn't a bad place to be.

src/optparse.lisp

index 16b5b7be78933ae0777ea707ce06e5ae8d2ff86f..fff0e8888da95f6aae841c0fc6d42410fbcc57f1 100644 (file)
@@ -165,7 +165,7 @@ (defstruct (option
                          (opt-long-name o)
                          (opt-arg-optional-p o)
                          (opt-arg-name o)
-                         (opt-documentation o)))))
+                         (opt-%documentation o)))))
             (:constructor %make-option
                 (&key long-name tag negated-tag short-name
                       arg-name arg-optional-p documentation