mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Header tidyups, particularly updating of version compatibility macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24000 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
87c5bf8cfb
commit
38c0c4a580
113 changed files with 884 additions and 641 deletions
|
@ -20,20 +20,21 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#ifndef __NSMethodSignature_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSMethodSignature_h_GNUSTEP_BASE_INCLUDE
|
||||
#import <GNUstepBase/GSVersionMacros.h>
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
#if OS_API_VERSION(GS_API_OPENSTEP, GS_API_MACOSX)
|
||||
/**
|
||||
* <p>Info about layout of arguments.
|
||||
* Extended from the original OpenStep version to let us know if the
|
||||
|
@ -45,9 +46,9 @@ typedef struct {
|
|||
int offset;
|
||||
unsigned size;
|
||||
const char *type;
|
||||
unsigned align; // extension, available only ifndef NO_GNUSTEP
|
||||
unsigned qual; // extension, available only ifndef NO_GNUSTEP
|
||||
BOOL isReg; // extension, available only ifndef NO_GNUSTEP
|
||||
unsigned align; // extension, available only in GNUSTEP
|
||||
unsigned qual; // extension, available only in GNUSTEP
|
||||
BOOL isReg; // extension, available only in GNUSTEP
|
||||
} NSArgumentInfo;
|
||||
</example>
|
||||
* <p>NB. The offset and register information may not always be reliable.
|
||||
|
@ -59,7 +60,7 @@ typedef struct {
|
|||
int offset;
|
||||
unsigned size;
|
||||
const char *type;
|
||||
#ifndef NO_GNUSTEP
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
unsigned align;
|
||||
unsigned qual;
|
||||
BOOL isReg;
|
||||
|
@ -89,11 +90,15 @@ typedef struct {
|
|||
const char *_methodTypes;
|
||||
unsigned _argFrameLength;
|
||||
unsigned _numArgs;
|
||||
#ifdef STRICT_MACOS_X
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
NSArgumentInfo *_info;
|
||||
#else
|
||||
#if OS_API_VERSION(GS_API_OPENSTEP, GS_API_MACOSX)
|
||||
void *_info;
|
||||
#else
|
||||
NSArgumentInfo *_info;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,7 +107,7 @@ typedef struct {
|
|||
*/
|
||||
+ (NSMethodSignature*) signatureWithObjCTypes: (const char*)t;
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
#if OS_API_VERSION(GS_API_OPENSTEP, GS_API_MACOSX)
|
||||
/**
|
||||
* Returns full information on given argument. Indices start at 0. Provide
|
||||
* -1 to get info on return value.
|
||||
|
@ -152,7 +157,7 @@ typedef struct {
|
|||
|
||||
@end
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
/**
|
||||
* Declares a convenience method for getting the entire array of raw type and
|
||||
* size information.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue