[elephant-devel] ele-bdb.lisp

Frank Schorr franks-muc at web.de
Mon Mar 19 23:20:18 UTC 2007


Ian:

This is lispworks on windows: 

                                     No tests failed.  !!!

This is a replacement for the function in ele-bdb.lisp having cl-ppcre in it:

(defun path-for-cygwin (path)
"DOS pathname -> cygwin pathname. Replace backslashes with slashes and drive letter with directory.  
e.g. \"C:\\dir\\\" -> \"/C/dir/\" (drive C: must be mounted as /C/ in cgwin)"
  (let* ((result (namestring path))
         (colon-pos (position #\: result))
         (drive-letter (char result (1- colon-pos))))
    (setf (char result (1- colon-pos)) #\/)
    (setf (char result colon-pos) drive-letter)
    (substitute #\/ #\\ result)))

One change is neccessary in elephant.asd:
look for the string "patohname" and replace it by "pathname". 

elephant is running on my windows computer with ACl trial and lispworks pro.

Best regards, 
Frank

P.S.: derived indices are my favorites !



> Frank,
> 
> I didn't notice this earlier because my Allegro configuration has cl- 
> ppcre loaded by default, but your changes to ele-bdb.asd have a  
> dependency on cl-ppcre.  It's the only one in the entire elephant  
> source tree and we'd like to minimize library dependencies so can we  
> find a way to do this natively rather than with cl-ppcre?
> 
> Thanks,
> Ian 
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
> 


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192




More information about the elephant-devel mailing list