diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 19:17:00 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 19:17:00 +0100 |
commit | 7cea2578637b823e93798e308ab0811c7fd7b7a4 (patch) | |
tree | 0db0eb3e9065528052ef618059ec7da91a44418a /Objective-C/PyObjC/objc_support.h | |
parent | b44ee368288b98ed5125ccb214e6d665c134be1f (diff) |
Directory layout: Put code imported from PyObjC into its own directory.
darcs-hash:e3dd1138105e4eece0fbcbc13365eb3a25ffb808
Diffstat (limited to 'Objective-C/PyObjC/objc_support.h')
-rw-r--r-- | Objective-C/PyObjC/objc_support.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Objective-C/PyObjC/objc_support.h b/Objective-C/PyObjC/objc_support.h new file mode 100644 index 0000000..a9b4b28 --- /dev/null +++ b/Objective-C/PyObjC/objc_support.h @@ -0,0 +1,46 @@ +/* Copyright (c) 1996,97,98 by Lele Gaifax. All Rights Reserved + * Copyright (2) 2003 Ronald Oussoren + * + * This software may be used and distributed freely for any purpose + * provided that this notice is included unchanged on any and all + * copies. The author does not warrant or guarantee this software in + * any way. + * + * This file is part of the PyObjC package. + * + * RCSfile: objc_support.h,v + * Revision: 1.16 + * Date: 1998/08/18 15:35:57 + * + * Created Tue Sep 10 14:11:38 1996. + * + * TODO: the functions exported by this file should be changed, the names + * should start with 'PyObjC' and should be the same as the names used in + * pyobjc-api.h (where appropriate). + */ + +#ifndef _objc_support_H +#define _objc_support_H + +#ifdef GNU_RUNTIME + +# include "objc-runtime-gnu.h" + +#else /* NeXTSTEP / Mac OS X */ + +# include "objc-runtime-apple.h" + +#endif + +extern ssize_t PyObjCRT_SizeOfReturnType(const char* type); +extern ssize_t PyObjCRT_SizeOfType(const char *type); +extern ssize_t PyObjCRT_AlignOfType(const char *type); +extern const char *PyObjCRT_SkipTypeSpec (const char *type); +extern const char* PyObjCRT_SkipTypeQualifiers (const char* type); + +extern int PyObjCRT_SetupClass( + Class, Class, const char*, Class, Class, ssize_t, struct objc_ivar_list*, + struct objc_protocol_list*); +extern void PyObjCRT_ClearClass(Class cls); + +#endif /* _objc_support_H */ |