A few type declarations
authorNathan Bird <nathan@acceleration.net>
Fri, 1 Jul 2011 18:16:25 +0000 (14:16 -0400)
committerNathan Bird <nathan@acceleration.net>
Mon, 4 Jul 2011 20:37:58 +0000 (16:37 -0400)
sql/utils.lisp

index 34cd5dc8c4d5ae9a1daa8b533d9cf22dba3f091d..7f307d63d2da32ce1c8a646df1cbd8b68ca432f9 100644 (file)
@@ -43,6 +43,7 @@
 (defun float-to-sql-string (num)
   "Convert exponent character for SQL"
   (let ((str (write-to-string num :readably t)))
+    (declare (type string str))
     (cond
      ((find #\f str)
       (substitute #\e #\f str))
 
 (defun substitute-string-for-char (procstr match-char subst-str)
 "Substitutes a string for a single matching character of a string"
+  (declare (type string procstr))
   (let ((pos (position match-char procstr)))
     (if pos
         (concatenate 'string
     (setq pos (1+ end))))
 
 (defun string-to-list-connection-spec (str)
+  (declare (type string str))
   (let ((at-pos (position-char #\@ str 0 (length str))))
     (cond
       ((and at-pos (> (length str) at-pos))