diff options
author | dos-reis <gdr@axiomatics.org> | 2008-03-24 11:47:01 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-03-24 11:47:01 +0000 |
commit | 55893dcd3118428f046d5f539d80e9aa5345b885 (patch) | |
tree | 05992761c4ad4d3421b7063de3357d1ced007c8a /src/interp/pathname.boot | |
parent | 97f54bf68c5aefffc94a4935e08fd6449ec501c9 (diff) | |
download | open-axiom-55893dcd3118428f046d5f539d80e9aa5345b885.tar.gz |
Add support for SBCL and CLisp
Diffstat (limited to 'src/interp/pathname.boot')
-rw-r--r-- | src/interp/pathname.boot | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/interp/pathname.boot b/src/interp/pathname.boot index 3b7fe71d..ea349019 100644 --- a/src/interp/pathname.boot +++ b/src/interp/pathname.boot @@ -1,6 +1,6 @@ --- Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. +-- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd. -- All rights reserved. --- Copyright (C) 2007, Gabriel Dos Reis. +-- Copyright (C) 2007-2008, Gabriel Dos Reis. -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without @@ -15,7 +15,7 @@ -- the documentation and/or other materials provided with the -- distribution. -- --- - Neither the name of The Numerical ALgorithms Group Ltd. nor the +-- - Neither the name of The Numerical Algorithms Group Ltd. nor the -- names of its contributors may be used to endorse or promote products -- derived from this software without specific prior written permission. -- @@ -44,24 +44,34 @@ import '"nlib" --% Common Lisp Pathname Functions -pathname? p == p=[] or PATHNAMEP p +pathname? p == + null p or PATHNAMEP p pathname p == - p = [] => p + null p => p PATHNAMEP p => p not PAIRP p => PATHNAME p if #p>2 then p:=[p.0,p.1] PATHNAME APPLY(FUNCTION MAKE_-FILENAME, p) -namestring p == NAMESTRING pathname p +namestring p == + null p => nil + NAMESTRING pathname p -pathnameName p == PATHNAME_-NAME pathname p +pathnameName p == + null p => nil + PATHNAME_-NAME pathname p -pathnameType p == PATHNAME_-TYPE pathname p +pathnameType p == + null p => nil + PATHNAME_-TYPE pathname p -pathnameTypeId p == UPCASE object2Identifier pathnameType p +pathnameTypeId p == + null p => nil + UPCASE object2Identifier pathnameType p pathnameDirectory p == + null p => nil NAMESTRING MAKE_-PATHNAME(KEYWORD::DIRECTORY,PATHNAME_-DIRECTORY pathname p) deleteFile f == _$ERASE pathname f |