~ubuntu-branches/ubuntu/breezy/gnustep-base/breezy

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSObjCRuntime.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (4 hoary)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** Interface to ObjC runtime for GNUStep
 
2
   Copyright (C) 1995, 1997, 2000 Free Software Foundation, Inc.
 
3
 
 
4
   Written by:  Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
 
5
   Date: 1995
 
6
   
 
7
   This file is part of the GNUstep Base Library.
 
8
 
 
9
   This library is free software; you can redistribute it and/or
 
10
   modify it under the terms of the GNU Library General Public
 
11
   License as published by the Free Software Foundation; either
 
12
   version 2 of the License, or (at your option) any later version.
 
13
   
 
14
   This library is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
   Library General Public License for more details.
 
18
   
 
19
   You should have received a copy of the GNU Library General Public
 
20
   License along with this library; if not, write to the Free
 
21
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
22
 
 
23
    AutogsdocSource: NSObjCRuntime.m
 
24
    AutogsdocSource: NSLog.m
 
25
 
 
26
   */ 
 
27
 
 
28
#ifndef __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
 
29
#define __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
 
30
 
 
31
#include <GNUstepBase/GSObjCRuntime.h>
 
32
 
 
33
GS_EXPORT NSString      *NSStringFromSelector(SEL aSelector);
 
34
GS_EXPORT SEL           NSSelectorFromString(NSString *aSelectorName);
 
35
GS_EXPORT Class         NSClassFromString(NSString *aClassName);
 
36
GS_EXPORT NSString      *NSStringFromClass(Class aClass);
 
37
GS_EXPORT const char    *NSGetSizeAndAlignment(const char *typePtr,
 
38
  unsigned int *sizep, unsigned int *alignp);
 
39
 
 
40
#ifndef NO_GNUSTEP
 
41
/* Logging */
 
42
/**
 
43
 *  OpenStep spec states that log messages go to stderr, but just in case
 
44
 *  someone wants them to go somewhere else, they can implement a function
 
45
 *  like this.
 
46
 */
 
47
typedef void NSLog_printf_handler (NSString* message);
 
48
GS_EXPORT NSLog_printf_handler  *_NSLog_printf_handler;
 
49
GS_EXPORT int   _NSLogDescriptor;
 
50
@class NSRecursiveLock;
 
51
GS_EXPORT NSRecursiveLock       *GSLogLock(void);
 
52
#endif
 
53
 
 
54
GS_EXPORT void                  NSLog (NSString *format, ...);
 
55
GS_EXPORT void                  NSLogv (NSString *format, va_list args);
 
56
 
 
57
#ifndef YES
 
58
#define YES             1
 
59
#endif
 
60
#ifndef NO
 
61
#define NO              0
 
62
#endif
 
63
#ifndef nil
 
64
#define nil             0
 
65
#endif
 
66
 
 
67
#endif /* __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE */