r2385: *** empty log message ***
[uffi.git] / src / mcl / primitives.cl
index 0c89e918951539b3ef1f1ad2aa64c94578217615..4dac95437d62164bc9d328c8e9f7a59db3b9c2fb 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: ANSI-Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: UFFI -*-
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: UFFI -*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
@@ -7,7 +7,7 @@
 ;;;; Programmers:   Kevin M. Rosenberg and John DeSoi
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: primitives.cl,v 1.2 2002/04/06 19:11:15 kevin Exp $
+;;;; $Id: primitives.cl,v 1.6 2002/08/23 15:28:11 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;; and John DeSoi
 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
 (in-package :uffi)
 
+; Wrapper for unexported function we have to use
+(defmacro def-mcl-type (name type)
+  `(ccl::def-mactype (quote ,name) (ccl:find-mactype ,type)))
+
 
 (defmacro def-constant (name value &key (export nil))
   "Macro to define a constant and to export it"
@@ -37,8 +41,10 @@ supports takes advantage of this optimization."
   "Returns T if character is NULL"
   `(zerop ,val))
       
+
 (defmacro def-foreign-type (name type)
- `(ccl::def-mactype ,name ,(ccl:find-mactype (convert-from-uffi-type type :type))))
+ `(def-mcl-type ,name (convert-from-uffi-type ,type :type)))
+
 
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (defvar +type-conversion-hash+ (make-hash-table :size 20)))