Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Moringen
asdf
Commits
3dbbb562
Commit
3dbbb562
authored
15 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Fix omission while renaming SPLIT to SPLIT-STRING.
parent
4ddaabe8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asdf.lisp
+13
-12
13 additions, 12 deletions
asdf.lisp
test/run-tests.sh
+4
-2
4 additions, 2 deletions
test/run-tests.sh
with
17 additions
and
14 deletions
asdf.lisp
+
13
−
12
View file @
3dbbb562
...
...
@@ -531,18 +531,19 @@ return a list.
If MAX is specified, then no more than max(1,MAX) components will be returned,
starting the separation from the end, e.g. when called with arguments
\"a.b.c.d.e\" :max 3 :separator \".\" it will return (\"a.b.c\" \"d\" \"e\")."
(
let
((
list
nil
)
(
words
0
)
(
end
(
length
string
)))
(
flet
((
separatorp
(
char
)
(
find
char
separator
))
(
done
()
(
return-from
split
(
cons
(
subseq
string
0
end
)
list
))))
(
loop
:for
start
=
(
if
(
and
max
(
>=
words
(
1-
max
)))
(
done
)
(
position-if
#'
separatorp
string
:end
end
:from-end
t
))
:do
(
when
(
null
start
)
(
done
))
(
push
(
subseq
string
(
1+
start
)
end
)
list
)
(
incf
words
)
(
setf
end
start
)))))
(
block
nil
(
let
((
list
nil
)
(
words
0
)
(
end
(
length
string
)))
(
flet
((
separatorp
(
char
)
(
find
char
separator
))
(
done
()
(
return
(
cons
(
subseq
string
0
end
)
list
))))
(
loop
:for
start
=
(
if
(
and
max
(
>=
words
(
1-
max
)))
(
done
)
(
position-if
#'
separatorp
string
:end
end
:from-end
t
))
:do
(
when
(
null
start
)
(
done
))
(
push
(
subseq
string
(
1+
start
)
end
)
list
)
(
incf
words
)
(
setf
end
start
))))))
(
defun
split-name-type
(
filename
)
(
destructuring-bind
(
name
&optional
type
)
...
...
This diff is collapsed.
Click to expand it.
test/run-tests.sh
+
4
−
2
View file @
3dbbb562
...
...
@@ -55,8 +55,10 @@ do_tests() {
command
=
$1
eval
=
$2
fasl_ext
=
$3
rm
-f
*
.
$fasl_ext
~/.cache/common-lisp/
"
`
pwd
`
"
/
*
.
$fasl_ext
||
true
(
cd
..
&&
$command
$eval
'(load "test/compile-asdf.lisp")'
)
if
[
$?
-eq
0
]
;
then
echo
"Compiled OK"
if
[
$?
-ne
0
]
;
then
echo
"Compilation FAILED"
>
&2
else
echo
"Compiled OK"
>
&2
test_count
=
0
test_pass
=
0
test_fail
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment