Skip to content
Snippets Groups Projects
Commit 703c427d authored by wlott's avatar wlott
Browse files

When defining the indirect operator for pointer types, use the type

description, not the name of the type.
parent c51744b2
No related branches found
No related tags found
No related merge requests found
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
(make-alien ',name ,(c-type-size res))) (make-alien ',name ,(c-type-size res)))
(defoperator (,(symbolicate "INDIRECT-" pname) (defoperator (,(symbolicate "INDIRECT-" pname)
,(record-type-description res)) ,(record-type-description res))
((pointer ,pname)) ((pointer ,(c-type-description pres)))
`(alien-indirect (alien-value ,pointer) ,,pos)) `(alien-indirect (alien-value ,pointer) ,,pos))
,@(define-record-operators res)))) ,@(define-record-operators res))))
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
(setf (gethash ',name *c-type-names*) ',res)) (setf (gethash ',name *c-type-names*) ',res))
(defoperator (,(symbolicate "INDIRECT-" name) (defoperator (,(symbolicate "INDIRECT-" name)
,(c-type-description type)) ,(c-type-description type))
((pointer ,name) ((pointer ,(c-type-description res))
,@(unless (c-type-size type) ,@(unless (c-type-size type)
'(size))) '(size)))
`(alien-indirect (alien-value ,pointer) `(alien-indirect (alien-value ,pointer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment