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
43dccab1
Commit
43dccab1
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed line hackery to work in new compiler (and be portable too..).
parent
c0aca92f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hemlock/line.lisp
+8
-18
8 additions, 18 deletions
hemlock/line.lisp
with
8 additions
and
18 deletions
hemlock/line.lisp
+
8
−
18
View file @
43dccab1
...
@@ -36,9 +36,10 @@
...
@@ -36,9 +36,10 @@
;;;; The line object:
;;;; The line object:
(
proclaim
'
(
inline
%make-line
))
(
defstruct
(
line
(
:print-function
%print-hline
)
(
defstruct
(
line
(
:print-function
%print-hline
)
(
:
predicate
line
p
)
(
:
constructor
%make-
line
)
(
:
constructor
nil
))
(
:
predicate
linep
))
"A Hemlock line object. See Hemlock design document for details."
"A Hemlock line object. See Hemlock design document for details."
;;
;;
;; Something that represents the contents of the line. This is
;; Something that represents the contents of the line. This is
...
@@ -130,22 +131,6 @@
...
@@ -130,22 +131,6 @@
(
line-%chars
line
))
(
line-%chars
line
))
;;; Fast version of Make-Line does keyword hacking at compile time.
;;;
(
defmacro
make-line
(
&key
chars
previous
next
marks
%buffer
number
plist
#+
Buffered-Lines
buffered-p
)
`
(
lisp::%sp-set-vector-subtype
(
vector
'line
,
chars
,
previous
,
next
,
marks
,
%buffer
,
number
,
plist
#+
Buffered-Lines
,
buffered-p
)
1
))
;;; Return a copy of Line in buffer Buffer with the same chars. We use
;;; Return a copy of Line in buffer Buffer with the same chars. We use
;;; this macro where we want to copy a line because it takes care of
;;; this macro where we want to copy a line because it takes care of
;;; the case where the line is buffered.
;;; the case where the line is buffered.
...
@@ -158,6 +143,11 @@
...
@@ -158,6 +143,11 @@
#+
Buffered-Lines
:buffered-p
#+
Buffered-Lines
:buffered-p
#+
Buffered-Lines
(
line-buffered-p
,
line
)))
#+
Buffered-Lines
(
line-buffered-p
,
line
)))
;;; Hide the fact that the slot isn't really called CHARS.
;;;
(
defmacro
make-line
(
&rest
keys
)
`
(
%make-line
,@
(
substitute
:%chars
:chars
keys
)))
(
defmacro
line-length*
(
line
)
(
defmacro
line-length*
(
line
)
"Returns the number of characters on the line, but it's a macro!"
"Returns the number of characters on the line, but it's a macro!"
`
(
cond
((
eq
,
line
open-line
)
`
(
cond
((
eq
,
line
open-line
)
...
...
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