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
96f876e8
Commit
96f876e8
authored
21 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
Fix for (pprint '`(lambda ,x)) bug wherein the backquote
implementation details leaks out. From SBCL.
parent
5c4707fd
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
code/backq.lisp
+5
-2
5 additions, 2 deletions
code/backq.lisp
code/pprint.lisp
+11
-1
11 additions, 1 deletion
code/pprint.lisp
with
16 additions
and
3 deletions
code/backq.lisp
+
5
−
2
View file @
96f876e8
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/backq.lisp,v 1.1
1
200
2/10/14 21:37:57
toy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/backq.lisp,v 1.1
2
200
4/01/16 03:13:09
toy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -48,7 +48,10 @@
...
@@ -48,7 +48,10 @@
(
defvar
*bq-at-flag*
'
(
|,@|
))
(
defvar
*bq-at-flag*
'
(
|,@|
))
(
defvar
*bq-dot-flag*
'
(
|,.|
))
(
defvar
*bq-dot-flag*
'
(
|,.|
))
(
defvar
*bq-vector-flag*
'
(
|bqv|
))
(
defvar
*bq-vector-flag*
'
(
|bqv|
))
(
defvar
*bq-tokens*
'
(
backq-comma
backq-comma-at
backq-comma-dot
backq-list
backq-list*
backq-append
backq-nconc
backq-cons
backq-vector
))
;; This is the actual character macro.
;; This is the actual character macro.
(
defun
backquote-macro
(
stream
ignore
)
(
defun
backquote-macro
(
stream
ignore
)
(
declare
(
ignore
ignore
))
(
declare
(
ignore
ignore
))
...
...
This diff is collapsed.
Click to expand it.
code/pprint.lisp
+
11
−
1
View file @
96f876e8
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.3
3
200
3
/01/
0
6
22:27
:1
6
toy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.3
4
200
4
/01/
1
6
03:13
:1
0
toy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -1177,6 +1177,16 @@
...
@@ -1177,6 +1177,16 @@
(
defun
pprint-lambda-list
(
stream
lambda-list
&rest
noise
)
(
defun
pprint-lambda-list
(
stream
lambda-list
&rest
noise
)
(
declare
(
ignore
noise
))
(
declare
(
ignore
noise
))
(
when
(
and
(
consp
lambda-list
)
(
member
(
car
lambda-list
)
lisp::*bq-tokens*
))
;; if this thing looks like a backquoty thing, then we don't want
;; to destructure it, we want to output it straight away. [ this
;; is the exception to the normal processing: if we did this
;; generally we would find lambda lists such as (FUNCTION FOO)
;; being printed as #'FOO ] -- CSR, 2003-12-07
(
output-object
lambda-list
stream
)
(
return-from
pprint-lambda-list
nil
))
(
pprint-logical-block
(
stream
lambda-list
:prefix
"("
:suffix
")"
)
(
pprint-logical-block
(
stream
lambda-list
:prefix
"("
:suffix
")"
)
(
let
((
state
:required
)
(
let
((
state
:required
)
(
first
t
))
(
first
t
))
...
...
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