diff --git a/asdf.asd b/asdf.asd index bff2557bfefdb617cc168bcb36b28b9dd39a8984..ef64ad1fa357c7548dbc3048e4daae58df7ff1c4 100644 --- a/asdf.asd +++ b/asdf.asd @@ -74,7 +74,7 @@ :licence "MIT" :description "Another System Definition Facility" :long-description "ASDF builds Common Lisp software organized into defined systems." - :version "2.32.21" ;; to be automatically updated by make bump-version + :version "2.32.22" ;; to be automatically updated by make bump-version :depends-on () #+asdf3 :encoding #+asdf3 :utf-8 ;; For most purposes, asdf itself specially counts as a builtin system. diff --git a/header.lisp b/header.lisp index 10289746707d213211774943b8879136b93a1df4..a650769a44be8ef8fa570147d9e976d49b4c0da2 100644 --- a/header.lisp +++ b/header.lisp @@ -1,5 +1,5 @@ ;;; -*- mode: Common-Lisp; Base: 10 ; Syntax: ANSI-Common-Lisp -*- -;;; This is ASDF 2.32.21: Another System Definition Facility. +;;; This is ASDF 2.32.22: Another System Definition Facility. ;;; ;;; Feedback, bug reports, and patches are all welcome: ;;; please mail to <asdf-devel@common-lisp.net>. diff --git a/test/run-tests.sh b/test/run-tests.sh index 5c2e7eef6684674400165edc36fb1eb519dc24d5..06381fa6b881781a8a9620e49c9051442629e0b7 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -25,13 +25,13 @@ usage () { unset DEBUG_ASDF_TEST upgrade clean_load load_systems test_interactively extract_all SHELL=/bin/sh -export SHELL +export SHELL DEBUG_ASDF_TEST GCL_ANSI ASDF_OUTPUT_TRANSLATIONS while getopts "cdtHulhu" OPTION do case $OPTION in d) - export DEBUG_ASDF_TEST=t + DEBUG_ASDF_TEST=t ;; u) upgrade=t @@ -183,12 +183,12 @@ case "$lisp" in flags="-norc -eval (ext::install-bytecodes-compiler)" eval="-eval" ;; gcl) - export GCL_ANSI=t + GCL_ANSI=t command="${GCL:-gcl}" flags="-batch" eval="-eval" ;; gclcvs) - export GCL_ANSI=t + GCL_ANSI=t command="${GCLCVS:-gclcvs}" flags="-batch" eval="-eval" ;; @@ -332,7 +332,6 @@ run_upgrade_tests () { mkdir -p build/results/ rm -f build/*.*f* uiop/*.*f* test/*.*f* ## Remove stale FASLs from ASDF 1.x, especially when different implementations have same name ASDF_OUTPUT_TRANSLATIONS="(:output-translations (\"${ASDFDIR}\" (\"${ASDFDIR}/build/fasls/\" :implementation \"asdf/\")) (t (\"${ASDFDIR}/build/fasls/\" :implementation \"root/\")) :ignore-inherited-configuration)" - export ASDF_OUTPUT_TRANSLATIONS su=test/script-support.lisp for tag in `upgrade_tags` ; do for method in `upgrade_methods` ; do diff --git a/test/test-utilities.script b/test/test-utilities.script index 28a3615d50526fecfb985e6b28a253a7abe55a4d..f1988a4b6492fcd4ab1e691a104bde8f4c742a95 100644 --- a/test/test-utilities.script +++ b/test/test-utilities.script @@ -135,11 +135,11 @@ asdf/lisp-action:try-recompiling ;; types asdf/bundle:user-system + #+sbcl uiop/lisp-build:sb-grovel-unknown-constant-condition ;; on some implementations only asdf/bundle:bundle-system asdf/bundle:register-pre-built-system asdf/bundle:static-library - uiop/lisp-build:sb-grovel-unknown-constant-condition uiop/os:parse-file-location-info uiop/os:parse-windows-shortcut uiop/os:read-little-endian diff --git a/uiop/utility.lisp b/uiop/utility.lisp index 5c02f0574bcd61fd17b1741e0c31a9595f1ada62..37f54b0c295a9a938ecabbe1f32bf9478bc46e41 100644 --- a/uiop/utility.lisp +++ b/uiop/utility.lisp @@ -18,7 +18,9 @@ #:while-collecting #:appendf #:length=n-p #:ensure-list ;; lists #:remove-plist-keys #:remove-plist-key ;; plists #:emptyp ;; sequences - #:strcat #:first-char #:last-char #:split-string ;; strings + #:+non-base-chars-exist-p+ ;; characters + #:base-string-p #:strings-common-element-type #:reduce/strcat #:strcat ;; strings + #:first-char #:last-char #:split-string #:string-prefix-p #:string-enclosed-p #:string-suffix-p #:find-class* ;; CLOS #:stamp< #:stamps< #:stamp*< #:stamp<= ;; stamps @@ -183,10 +185,37 @@ Returns two values: \(A B C\) and \(1 2 3\)." (or (null x) (and (vectorp x) (zerop (length x)))))) +;;; Characters +(with-upgradability () + (defconstant +non-base-chars-exist-p+ (not (subtypep 'character 'base-char)))) + + ;;; Strings (with-upgradability () + (defun base-string-p (string) + (declare (ignorable string)) + #.(or +non-base-chars-exist-p+ '(eq 'base-char (array-element-type string)))) + + (defun strings-common-element-type (strings) + #.(if +non-base-chars-exist-p+ + '(if (loop :for s :in strings :always (or (null s) (base-string-p s))) + 'base-char 'character) + ''character)) + + (defun reduce/strcat (strings &key key start end) + "Reduce a list as if by STRCAT, accepting KEY START and END keywords like REDUCE" + (when (or start end) (setf strings (subseq strings start end))) + (when key (setf strings (mapcar key strings))) + (loop :with output = (make-string (loop :for s :in strings :sum (length s)) + :element-type (strings-common-element-type strings)) + :for input :in strings + :for pos = 0 :then (+ pos l) + :for l = (length input) + :do (replace output input :start1 pos) + :finally (return output))) + (defun strcat (&rest strings) - (apply 'concatenate 'string strings)) + (reduce/strcat strings)) (defun first-char (s) (and (stringp s) (plusp (length s)) (char s 0))) diff --git a/upgrade.lisp b/upgrade.lisp index 10bddad4128db61dc44ff76302ce40dd8353690c..f08e10c1d07262b15719a479345f9a8caf2d1d9f 100644 --- a/upgrade.lisp +++ b/upgrade.lisp @@ -52,7 +52,7 @@ You can compare this string with e.g.: (ASDF:VERSION-SATISFIES (ASDF:ASDF-VERSIO ;; "3.4.5.67" would be a development version in the official upstream of 3.4.5. ;; "3.4.5.0.8" would be your eighth local modification of official release 3.4.5 ;; "3.4.5.67.8" would be your eighth local modification of development version 3.4.5.67 - (asdf-version "2.32.21") + (asdf-version "2.32.22") (existing-version (asdf-version))) (setf *asdf-version* asdf-version) (when (and existing-version (not (equal asdf-version existing-version))) diff --git a/version.lisp-expr b/version.lisp-expr index 4cb7bf880f655cbc8276b6d60c477e831b6898e9..5dcd0d585a02bd4ca0caf5db2720e6bc6dd34e3d 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -1 +1 @@ -"2.32.21" +"2.32.22"