mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Headers/Additions/GNUstepBase/behavior.h: GS_EXPORT functions.
* Headers/Foundation/NSDistributedLock.h, Source/NSDistributedLock.m: Change return type of -initWithPath: to id. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze_1_8_0@17625 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a76300af71
commit
5f46006ea4
4 changed files with 16 additions and 12 deletions
|
@ -1,3 +1,12 @@
|
|||
2003-09-05 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepBase/behavior.h: GS_EXPORT functions.
|
||||
|
||||
2003-09-04 18:41 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/Foundation/NSDistributedLock.h, Source/NSDistributedLock.m:
|
||||
Change return type of -initWithPath: to id.
|
||||
|
||||
2003-09-03 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Tools/gdomap.c (main): Don't chdir to /tmp on MinGW.
|
||||
|
|
|
@ -27,12 +27,7 @@
|
|||
#ifndef __behavior_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __behavior_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#if NeXT_RUNTIME
|
||||
#include <objc/objc.h>
|
||||
#include <objc/objc-class.h>
|
||||
#else
|
||||
#include <objc/objc-api.h>
|
||||
#endif
|
||||
#include <GNUstepBase/GSObjCRuntime.h>
|
||||
|
||||
/* Call this method from CLASS's +initialize method to add a behavior
|
||||
to CLASS. A "behavior" is like a protocol with an implementation.
|
||||
|
@ -51,14 +46,14 @@
|
|||
|
||||
*/
|
||||
|
||||
void behavior_class_add_class (Class class,
|
||||
GS_EXPORT void behavior_class_add_class (Class class,
|
||||
Class behavior);
|
||||
void behavior_class_add_category (Class class,
|
||||
GS_EXPORT void behavior_class_add_category (Class class,
|
||||
struct objc_category *category);
|
||||
void behavior_class_add_methods (Class class,
|
||||
GS_EXPORT void behavior_class_add_methods (Class class,
|
||||
struct objc_method_list *methods);
|
||||
|
||||
/* Set to non-zero if you want debugging messages on stderr. */
|
||||
void behavior_set_debug(int i);
|
||||
GS_EXPORT void behavior_set_debug(int i);
|
||||
|
||||
#endif /* __behavior_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
|
||||
+ (NSDistributedLock*) lockWithPath: (NSString*)aPath;
|
||||
- (NSDistributedLock*) initWithPath: (NSString*)aPath;
|
||||
- (id) initWithPath: (NSString*)aPath;
|
||||
|
||||
- (void) breakLock;
|
||||
- (NSDate*) lockDate;
|
||||
|
|
|
@ -99,7 +99,7 @@ static NSFileManager *mgr = nil;
|
|||
* The directory in which the last path component resides must already
|
||||
* exist ... create it using NSFileManager if you need to.
|
||||
*/
|
||||
- (NSDistributedLock*) initWithPath: (NSString*)aPath
|
||||
- (id) initWithPath: (NSString*)aPath
|
||||
{
|
||||
NSString *lockDir;
|
||||
BOOL isDirectory;
|
||||
|
|
Loading…
Reference in a new issue