projects
/
clsql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eda507c
)
A few type declarations
author
Nathan Bird
<nathan@acceleration.net>
Fri, 1 Jul 2011 18:16:25 +0000
(14:16 -0400)
committer
Nathan Bird
<nathan@acceleration.net>
Mon, 4 Jul 2011 20:37:58 +0000
(16:37 -0400)
sql/utils.lisp
patch
|
blob
|
history
diff --git
a/sql/utils.lisp
b/sql/utils.lisp
index 34cd5dc8c4d5ae9a1daa8b533d9cf22dba3f091d..7f307d63d2da32ce1c8a646df1cbd8b68ca432f9 100644
(file)
--- a/
sql/utils.lisp
+++ b/
sql/utils.lisp
@@
-43,6
+43,7
@@
(defun float-to-sql-string (num)
"Convert exponent character for SQL"
(let ((str (write-to-string num :readably t)))
(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))
(cond
((find #\f str)
(substitute #\e #\f str))
@@
-125,6
+126,7
@@
(defun substitute-string-for-char (procstr match-char subst-str)
"Substitutes a string for a single matching character of a string"
(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
(let ((pos (position match-char procstr)))
(if pos
(concatenate 'string
@@
-166,6
+168,7
@@
(setq pos (1+ end))))
(defun string-to-list-connection-spec (str)
(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))
(let ((at-pos (position-char #\@ str 0 (length str))))
(cond
((and at-pos (> (length str) at-pos))