r11479: declare type
[umlisp.git] / parse-macros.lisp
index a2af75ef7a7bf38a66c015c315825d86b2cc3974..1b00ae50fbd5639e17f31096e5b25ae14a7858f1 100644 (file)
     `(let ((,eof (gensym "EOFSYM-"))
           (,files (source-files ,path)))
       (unless ,files
-        (error "Can't find file files for ~A~%" ,path))
+        (error "Can't find files for ~A~%" (namestring ,path)))
       (with-open-file (,ustream (first ,files) :direction :input
                        #+(and clisp unicode) :external-format
                        #+(and clisp unicode) charset:utf-8)
         (do ((,line (read-umls-line ,ustream ,eof)
                     (read-umls-line ,ustream ,eof)))
             ((eq ,line ,eof) t)
-          ,@body)))))
+          (locally (declare (type list ,line))
+                   ,@body))))))
 
 (defmacro with-umls-ufile ((line ufile) &body body)
   "Opens a UMLS and processes each parsed line with (body) argument"