r8918: add missing function
authorKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 9 Apr 2004 18:56:06 +0000 (18:56 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 9 Apr 2004 18:56:06 +0000 (18:56 +0000)
base/utils.lisp
debian/changelog

index 3f9ad8a6348862c3dce8723b4cd5dee1d80db835..729109bd1ad98ed5ae21bcd24170414b738e5948 100644 (file)
       procstr)))
 
 
+(defun position-char (char string start max)
+  "From KMRCL."
+  (declare (optimize (speed 3) (safety 0) (space 0))
+          (fixnum start max) (simple-string string))
+  (do* ((i start (1+ i)))
+       ((= i max) nil)
+    (declare (fixnum i))
+    (when (char= char (schar string i)) (return i))))
+
 (defun delimited-string-to-list (string &optional (separator #\space) 
                                                  skip-terminal)
   "Split a string with delimiter, from KMRCL."
     (setq pos (1+ end))))
 
 (defun string-to-list-connection-spec (str)
-  (let ((at-pos (position #\@ str)))
+  (let ((at-pos (position-char #\@ str)))
     (cond
       ((and at-pos (> (length str) at-pos))
        ;; Connection spec is SQL*NET format
               (list (subseq str (1+ at-pos)))))
       (t
        (delimited-string-to-list str #\/)))))
+
index fcb6d455a6e0cb681af0c8e349e90d7ef48a4fca..ee46a59e10e1e4140a1b00dc3e85584032244043 100644 (file)
@@ -1,3 +1,9 @@
+cl-sql (2.5.2-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Fri,  9 Apr 2004 12:54:21 -0600
+
 cl-sql (2.5.1-1) unstable; urgency=low
 
   * New upstream