Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Carl Shapiro
cmucl
Commits
f90345dd
Commit
f90345dd
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some typos. In POSITION, changed use of STRING-CHAR-P to TYPEP.
parent
1e098170
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/seqtran.lisp
+5
-5
5 additions, 5 deletions
compiler/seqtran.lisp
with
5 additions
and
5 deletions
compiler/seqtran.lisp
+
5
−
5
View file @
f90345dd
...
@@ -116,7 +116,7 @@ member map concatenate position find
...
@@ -116,7 +116,7 @@ member map concatenate position find
;;;; Simple string transforms:
;;;; Simple string transforms:
(
deftransform
subseq
((
s
eq
start
&optional
(
end
nil
))
(
deftransform
subseq
((
s
tring
start
&optional
(
end
nil
))
(
simple-string
t
&optional
t
))
(
simple-string
t
&optional
t
))
'
(
let*
((
length
(
-
(
or
end
(
length
string
))
'
(
let*
((
length
(
-
(
or
end
(
length
string
))
start
))
start
))
...
@@ -183,7 +183,7 @@ member map concatenate position find
...
@@ -183,7 +183,7 @@ member map concatenate position find
(
unless
(
or
(
not
test
)
(
unless
(
or
(
not
test
)
(
continuation-function-is
test
char=-functions
))
(
continuation-function-is
test
char=-functions
))
(
give-up
))
(
give-up
))
`
(
and
(
string-char
-p
item
)
`
(
and
(
typep
item
'
string-char
)
(
,@
(
if
(
constant-value-or-lose
from-end
)
(
,@
(
if
(
constant-value-or-lose
from-end
)
'
(
lisp::%sp-reverse-find-character
)
'
(
lisp::%sp-reverse-find-character
)
'
(
%primitive
find-character
))
'
(
%primitive
find-character
))
...
@@ -193,9 +193,9 @@ member map concatenate position find
...
@@ -193,9 +193,9 @@ member map concatenate position find
(
deftransform
find
((
item
sequence
&key
from-end
(
test
#'
eql
)
(
start
0
)
end
)
(
deftransform
find
((
item
sequence
&key
from-end
(
test
#'
eql
)
(
start
0
)
end
)
(
t
simple-string
&rest
t
))
(
t
simple-string
&rest
t
))
`
(
if
(
find
item
sequence
`
(
if
(
position
item
sequence
,@
(
when
from-end
`
(
:from-end
from-end
))
,@
(
when
from-end
`
(
:from-end
from-end
))
:test
test
:start
start
:end
end
)
:test
test
:start
start
:end
end
)
item
item
nil
))
nil
))
...
...
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