Module: dylan-user Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND define library c-ffi use functional-dylan; export c-ffi; export unix-core; end; define module c-ffi-interface create destroy, C-char-at, C-char-at-setter, C-signed-char-at, C-signed-char-at-setter, C-unsigned-char-at, C-unsigned-char-at-setter, C-short-at, C-short-at-setter, C-signed-short-at, C-signed-short-at-setter, C-unsigned-short-at, C-unsigned-short-at-setter, C-long-at, C-long-at-setter, C-signed-long-at, C-signed-long-at-setter, C-unsigned-long-at, C-unsigned-long-at-setter, C-int-at, C-int-at-setter, C-signed-int-at, C-signed-int-at-setter, C-unsigned-int-at, C-unsigned-int-at-setter, C-float-at, C-float-at-setter, C-double-at, C-double-at-setter, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , C-pointer-at, C-pointer-at-setter, pointer-address, null-pointer, null-pointer?, , C-string-constant, , , C-unicode-string-constant, , , , register-c-dylan-object, unregister-c-dylan-object, export-c-dylan-object, import-c-dylan-object, /* [gts, 11/97, wait until harp backend ready] once handled by conversion, the following line should be commented out */ \with-stack-structure, \with-c-string, pointer-cast, c-type-cast, copy-into!, copy-bytes!, equal-memory?, clear-memory!, ; end module; // These don't belong here but need to be shared between libraries // which use the standard UNIX header interfaces and DUIM (which doesn't). define module unix-core end; define module c-ffi-kludges use machine-words, export: all; create check-import-range, check-export-range, export-to-machine-word, export-c-string, export-c-boolean, import-c-boolean; end; define module c-ffi use c-ffi-interface, export: all; use dylan-c-ffi, export: all; use dylan-extensions, export: { , }; use c-ffi-kludges, export: all; end; define module c-ffi-implementation use c-ffi; use unix-core; use functional-dylan; use dylan-extensions; use dylan-primitives; use dylan-c-ffi; use machine-words; use simple-format; end;