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
acb3686e
Commit
acb3686e
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added DEFTYPE for PERQ-STRING and NULL-TERMINATED-STRING. FIxed VECTOR-SAP to
be a function call rather than %PRIMITIVE.
parent
89e170c5
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
code/alieneval.lisp
+15
-2
15 additions, 2 deletions
code/alieneval.lisp
with
15 additions
and
2 deletions
code/alieneval.lisp
+
15
−
2
View file @
acb3686e
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/alieneval.lisp,v 1.1
1
1991/
05/21 22:18:05
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/alieneval.lisp,v 1.1
2
1991/
11/06 15:47:51
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -1161,6 +1161,12 @@ don't know that it is supposed to be used for. I suspect it is a PERQ crock.
;;;; Strings accesses:
;;; Can't use length, because it may be less than the limit.
;;;
(
deftype
perq-string
(
&optional
length
)
(
declare
(
ignore
length
))
'simple-base-string
)
;;; Alien-Access expert for String -- Internal
;;;
;;; Read a Perq-String into a string or write a string out into
...
...
@@ -1190,6 +1196,12 @@ don't know that it is supposed to be used for. I suspect it is a PERQ crock.
(
+
,
1+off
,
len
)))))))
;;; Can't use length, because it may be less than the limit.
;;;
(
deftype
null-terminated-string
(
&optional
length
)
(
declare
(
ignore
length
))
'simple-base-string
)
;;; Alien-Access expert for null terminated string -- Internal
;;;
;;; Read a null terminated string into a string or write a string out into
...
...
@@ -1275,6 +1287,7 @@ don't know that it is supposed to be used for. I suspect it is a PERQ crock.
`
(
setf
(
sap-ref-sap
,
sap
,
offset
)
(
alien-value-sap
,
value
)))))))
;;; Alien-Access expert for (Pointer xxx) -- Internal
;;;
;;; We can't read pointers, and can only store pointers to unboxed
...
...
@@ -1298,7 +1311,7 @@ don't know that it is supposed to be used for. I suspect it is a PERQ crock.
((
or
simple-string
simple-bit-vector
(
simple-array
unsigned-byte
(
*
)))
(
%primitive
c::
vector-sap
,
n-value
)))))))))
(
vector-sap
,
n-value
)))))))))
;;;; Enumeration Alien access:
...
...
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