Changeset 12818
- Timestamp:
- 07/22/10 18:12:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/asdf.lisp
r12765 r12818 71 71 (eval-when (:load-toplevel :compile-toplevel :execute) 72 72 (let* ((asdf-version ;; the 1+ helps the version bumping script discriminate 73 (subseq "VERSION:2.00 3" (1+ (length "VERSION")))) ; NB: same as 2.105.73 (subseq "VERSION:2.004" (1+ (length "VERSION")))) ; NB: same as 2.111. 74 74 (existing-asdf (find-package :asdf)) 75 75 (vername '#:*asdf-version*) … … 728 728 #+sbcl (defun get-uid () (sb-unix:unix-getuid)) 729 729 #+cmu (defun get-uid () (unix:unix-getuid)) 730 #+ecl (ffi:clines "#include <sys/types.h>" "#include <unistd.h>") 731 #+ecl (defun get-uid () (ffi:c-inline () () :int "getuid()" :one-liner t)) 730 #+ecl #.(cl:and (cl:< ext:+ecl-version-number+ 100601) 731 '(ffi:clines "#include <sys/types.h>" "#include <unistd.h>")) 732 #+ecl (defun get-uid () 733 #.(cl:if (cl:< ext:+ecl-version-number+ 100601) 734 '(ffi:c-inline () () :int "getuid()" :one-liner t) 735 '(ext::getuid))) 732 736 #+allegro (defun get-uid () (excl.osi:getuid)) 733 737 #-(or cmu sbcl clisp allegro ecl) … … 1073 1077 (defun system-registered-p (name) 1074 1078 (gethash (coerce-name name) *defined-systems*)) 1079 1080 (defun clear-system (name) 1081 "Clear the entry for a system in the database of systems previously loaded. 1082 Note that this does NOT in any way cause the code of the system to be unloaded." 1083 ;; There is no "unload" operation in Common Lisp, and a general such operation 1084 ;; cannot be portably written, considering how much CL relies on side-effects 1085 ;; of global data structures. 1086 ;; Note that this does a setf gethash instead of a remhash 1087 ;; this way there remains a hint in the *defined-systems* table 1088 ;; that the system was loaded at some point. 1089 (setf (gethash (coerce-name name) *defined-systems*) nil)) 1075 1090 1076 1091 (defun map-systems (fn) … … 2396 2411 :java-1.4 :java-1.5 :java-1.6 :java-1.7)) 2397 2412 2413 2398 2414 (defun lisp-version-string () 2399 2415 (let ((s (lisp-implementation-version))) … … 2411 2427 (:+ics "")) 2412 2428 (if (member :64bit *features*) "-64bit" "")) 2429 #+armedbear (format nil "~a-fasl~a" s system::*fasl-version*) 2413 2430 #+clisp (subseq s 0 (position #\space s)) 2414 2431 #+clozure (format nil "~d.~d-fasl~d" … … 2425 2442 #+lispworks (format nil "~A~@[~A~]" s 2426 2443 (when (member :lispworks-64bit *features*) "-64bit")) 2427 ;; #+sbcl (format nil "~a-fasl~d" s sb-fasl:+fasl-file-version+) ; fasl-f-v is redundant 2428 #+armedbear (format nil "~a-fasl~a" s system::*fasl-version*) 2444 ;; #+sbcl (format nil "~a-fasl~d" s sb-fasl:+fasl-file-version+) ; f-f-v redundant w/ version 2429 2445 #+(or cormanlisp mcl sbcl scl) s 2430 2446 #-(or allegro armedbear clisp clozure cmu cormanlisp digitool … … 2511 2527 ;;; read-windows-registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Common AppData 2512 2528 ,(try (getenv "ALLUSERSPROFILE") "Application Data/common-lisp/config/")))) 2513 (list #p"/etc/ "))))2529 (list #p"/etc/common-lisp/")))) 2514 2530 (defun in-first-directory (dirs x) 2515 2531 (loop :for dir :in dirs … … 2958 2974 2959 2975 (defun delete-file-if-exists (x) 2960 (when ( probe-file x)2976 (when (and x (probe-file x)) 2961 2977 (delete-file x))) 2962 2978 … … 3355 3371 (setf (source-registry) (compute-source-registry parameter))) 3356 3372 3357 ;; checks an initial variable to see whether the state is initialized3373 ;; Checks an initial variable to see whether the state is initialized 3358 3374 ;; or cleared. In the former case, return current configuration; in 3359 3375 ;; the latter, initialize. ASDF will call this function at the start 3360 ;; of (asdf:find-system). 3361 (defun ensure-source-registry () 3376 ;; of (asdf:find-system) to make sure the source registry is initialized. 3377 ;; However, it will do so *without* a parameter, at which point it 3378 ;; will be too late to provide a parameter to this function, though 3379 ;; you may override the configuration explicitly by calling 3380 ;; initialize-source-registry directly with your parameter. 3381 (defun ensure-source-registry (&optional parameter) 3362 3382 (if (source-registry-initialized-p) 3363 3383 (source-registry) 3364 (initialize-source-registry )))3384 (initialize-source-registry parameter))) 3365 3385 3366 3386 (defun sysdef-source-registry-search (system)
Note: See TracChangeset
for help on using the changeset viewer.