#1866 file_type is wrong for ccl on mac os x

Lisp Core (471)

clozure cl compiled files have the extension .dx64fls on mac os x. file_type thinks this are demo files since it only checks the first character of the extension. load therefore fails to load compiled files.


  • Raymond Toy

    Raymond Toy - 2010-02-04

    Perhaps file_type should be more explicit. So "max", "mac", "dem", and "demo" are maxima files; "l", "lsp", and "lisp" are lisp files, and everything else are object files.

    Maybe we can also let the user specify the association between the file extension and the file type?

  • Andrej Vodopivec

    I think we can replace file_type in mload.lisp with

    (defun $file_type (fil &aux typ)
    (setq typ ($pathname_type fil))
    ((member typ (list "l" "lsp" "lisp") :test #'string=)
    ((member typ (list "mac" "mc" "demo" "dem" "dm1" "dm2" "dm3" "dmt") :test #'string=)

  • Raymond Toy

    Raymond Toy - 2010-03-25

    This is fine with me. I'll check it in shortly.

  • Raymond Toy

    Raymond Toy - 2010-03-28
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks