source: trunk/source/objc-bridge/objc-package.lisp @ 13537

Last change on this file since 13537 was 13067, checked in by rme, 10 years ago

Update copyright notices.

File size: 2.2 KB
Line 
1;;;-*-Mode: LISP; Package: CCL -*-
2;;;
3;;;   Copyright (C) 2007-2009 Clozure Associates and contributors.
4;;;   This file is part of Clozure CL. 
5;;;
6;;;   Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
7;;;   License , known as the LLGPL and distributed with Clozure CL as the
8;;;   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
9;;;   which is distributed with Clozure CL as the file "LGPL".  Where these
10;;;   conflict, the preamble takes precedence. 
11;;;
12;;;   Clozure CL is referenced in the preamble as the "LIBRARY."
13;;;
14;;;   The LLGPL is also available online at
15;;;   http://opensource.franz.com/preamble.html
16;;;
17
18(in-package "CCL")
19
20;;; All class names and instance variable names are interned in the NS package
21;;; Force all symbols interned in the NS package to be external
22
23(defpackage "NS"
24  (:use)
25  (:export "+CGFLOAT-ZERO+" "CGFLOAT" "CG-FLOAT"))
26
27(eval-when (:compile-toplevel :load-toplevel :execute)
28  (package-force-export "NS"))
29
30;;; ObjC function names (as produced by #/) are interned in NSF.
31(defpackage "NEXTSTEP-FUNCTIONS"
32  (:use)
33  (:nicknames "NSFUN"))
34
35(eval-when (:compile-toplevel :load-toplevel :execute)
36  (package-force-export "NSFUN"))
37
38(defpackage "OBJC"
39  (:use)
40  (:export "OBJC-OBJECT" "OBJC-CLASS-OBJECT" "OBJC-CLASS" "OBJC-METACLASS"
41           "@CLASS" "@SELECTOR" "MAKE-OBJC-INSTANCE" "RETURNING-FOREIGN-STRUCT"
42           "DEFMETHOD" "SLET" "SEND" "SEND/STRET" "SEND-SUPER" "SEND-SUPER/STRET"
43           "DEFINE-OBJC-METHOD" "DEFINE-OBJC-CLASS-METHOD"
44           "OBJC-MESSAGE-SEND" "OBJC-MESSAGE-SEND-STRET"
45           "OBJC-MESSAGE-SEND-SUPER" "OBJC-MESSAGE-SEND-SUPER-STRET"
46           "LOAD-FRAMEWORK" "*OBJC-DESCRIPTION-MAX-LENGTH*"
47           ))
48
49
50(eval-when (:compile-toplevel :load-toplevel :execute)
51  (import '(objc:@class objc:@selector objc:make-objc-instance
52            objc:send objc:send/stret objc:send-super objc:send-super/stret
53            ns:+cgfloat-zero+ ns:cgfloat ns:cg-float
54            objc:define-objc-method objc:define-objc-class-method
55            objc:objc-message-send objc:objc-message-send-stret
56            objc:objc-message-send-super objc:objc-message-send-super-stret
57            objc:*objc-description-max-length*)
58          "CCL"))
59
60(provide "OBJC-PACKAGE")
Note: See TracBrowser for help on using the repository browser.