Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gsll
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
antik
gsll
Commits
a34aabed
Commit
a34aabed
authored
14 years ago
by
Liam Healy
Browse files
Options
Downloads
Patches
Plain Diff
Define cl-convert-form in terms of fsbv:convert-from-pointer
parent
b97213b9
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
init/body-expand.lisp
+3
-4
3 additions, 4 deletions
init/body-expand.lisp
with
3 additions
and
4 deletions
init/body-expand.lisp
+
3
−
4
View file @
a34aabed
;; Expand the body of a defmfun
;; Expand the body of a defmfun
;; Liam Healy 2009-04-13 22:07:13EDT body-expand.lisp
;; Liam Healy 2009-04-13 22:07:13EDT body-expand.lisp
;; Time-stamp: <2010-12-
04 17:24:31
EST body-expand.lisp>
;; Time-stamp: <2010-12-
12 00:21:04
EST body-expand.lisp>
;;
;;
;; Copyright 2009, 2010 Liam M. Healy
;; Copyright 2009, 2010 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;; Distributed under the terms of the GNU General Public License
...
@@ -84,9 +84,8 @@
...
@@ -84,9 +84,8 @@
(
defun
cl-convert-form
(
decl
)
(
defun
cl-convert-form
(
decl
)
"Generate a form that calls the appropriate converter from C/GSL to CL."
"Generate a form that calls the appropriate converter from C/GSL to CL."
(
if
(
fsbv:converter-defined-p
(
grid:st-actual-type
decl
))
(
list
`
((
fsbv:object
,
(
grid:st-symbol
decl
)
',
(
grid:st-actual-type
decl
)))
(
fsbv:convert-from-pointer
(
grid:st-symbol
decl
)
(
grid:st-actual-type
decl
))))
`
((
cffi:mem-aref
,
(
grid:st-symbol
decl
)
',
(
grid:st-actual-type
decl
)))))
(
defun
values-unless-singleton
(
forms
)
(
defun
values-unless-singleton
(
forms
)
(
unless
(
listp
forms
)
(
error
"Values are not a list."
))
(
unless
(
listp
forms
)
(
error
"Values are not a list."
))
...
...
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