zone.lisp: Sink `zone-text-name' until after `zone' structure is defined.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 19 Sep 2017 17:11:59 +0000 (18:11 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 19 Sep 2017 17:11:59 +0000 (18:11 +0100)
Muffles a warning from SBCL, which was sad because it couldn't inline a
structure accessor.

zone.lisp

index 8eef825..9e52569 100644 (file)
--- a/zone.lisp
+++ b/zone.lisp
   min-ttl
   serial)
 
-(export 'zone-text-name)
-(defun zone-text-name (zone)
-  (princ-to-string (zone-name zone)))
-
 (export 'mx)
 (defstruct (mx (:predicate mxp))
   "Mail-exchange record information."
   name
   records)
 
+(export 'zone-text-name)
+(defun zone-text-name (zone)
+  (princ-to-string (zone-name zone)))
+
 ;;;--------------------------------------------------------------------------
 ;;; Zone defaults.  It is intended that scripts override these.