X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fpackage.lisp;h=abaad4655e0851e2f16132a77ed538684324fbad;hb=1eef42e18bc87785aec91ce4710085d30898b160;hp=14226383da860ad8e0046d99bcb75122cbacadf5;hpb=7653a03580807774202e699a091a2e8520db5cf8;p=uffi.git diff --git a/src/package.lisp b/src/package.lisp index 1422638..abaad46 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -2,23 +2,19 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: package.cl +;;;; Name: package.lisp ;;;; Purpose: Defines UFFI package ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg ;;;; -;;;; UFFI users are granted the rights to distribute and use this software -;;;; as governed by the terms of the Lisp Lesser GNU Public License -;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :cl-user) +(in-package #:cl-user) -(defpackage :uffi - (:use :cl) +(defpackage #:uffi + (:use #:cl) (:export ;; immediate types @@ -46,10 +42,16 @@ #:deref-pointer #:ensure-char-character #:ensure-char-integer + #:ensure-char-storable #:null-pointer-p #:make-null-pointer + #:make-pointer + #:pointer-address #:+null-cstring-pointer+ #:char-array-to-pointer + #:with-cast-pointer + #:def-foreign-var + #:convert-from-foreign-usb8 ;; string functions #:convert-from-cstring @@ -61,6 +63,7 @@ #:convert-to-foreign-string #:allocate-foreign-string #:with-foreign-string + #:foreign-string-length ;; function call #:def-function @@ -69,9 +72,11 @@ #:find-foreign-library #:load-foreign-library #:default-foreign-library-type + #:foreign-library-types ;; OS #:run-shell-command + #:getenv ))