mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Export string constants and annotate exported function implementations
Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
This commit is contained in:
parent
fb84b3b1e8
commit
0582eddd96
47 changed files with 769 additions and 945 deletions
|
@ -7932,7 +7932,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
|||
@end
|
||||
|
||||
|
||||
NSString* const GSMimeErrorDomain = @"GSMimeErrorDomain";
|
||||
GS_DECLARE NSString* const GSMimeErrorDomain = @"GSMimeErrorDomain";
|
||||
|
||||
typedef enum {
|
||||
TP_IDLE,
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#import "common.h"
|
||||
#import "GNUstepBase/NSDebug+GNUstepBase.h"
|
||||
|
||||
NSString*
|
||||
GS_DECLARE NSString*
|
||||
GSDebugFunctionMsg(const char *func, const char *file, int line, NSString *fmt)
|
||||
{
|
||||
NSString *message;
|
||||
|
@ -39,7 +39,7 @@ GSDebugFunctionMsg(const char *func, const char *file, int line, NSString *fmt)
|
|||
return message;
|
||||
}
|
||||
|
||||
NSString*
|
||||
GS_DECLARE NSString*
|
||||
GSDebugMethodMsg(id obj, SEL sel, const char *file, int line, NSString *fmt)
|
||||
{
|
||||
NSString *message;
|
||||
|
|
|
@ -27,18 +27,6 @@
|
|||
#import "GNUstepBase/NSObject+GNUstepBase.h"
|
||||
#import "GNUstepBase/NSStream+GNUstepBase.h"
|
||||
|
||||
/* Code used in GNUstepBase
|
||||
*/
|
||||
NSString * const GSStreamLocalAddressKey
|
||||
= @"GSStreamLocalAddressKey";
|
||||
NSString * const GSStreamLocalPortKey
|
||||
= @"GSStreamLocalPortKey";
|
||||
NSString * const GSStreamRemoteAddressKey
|
||||
= @"GSStreamRemoteAddressKey";
|
||||
NSString * const GSStreamRemotePortKey
|
||||
= @"GSStreamRemotePortKey";
|
||||
|
||||
|
||||
/* The remaining code is specific to the Apple Foundation
|
||||
*/
|
||||
#if !defined(GNUSTEP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue