mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Patch from Richard.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2623 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3dd1e6b669
commit
4fbe10eb9e
5 changed files with 34 additions and 14 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
|||
Thu Nov 6 19:00:00 1997 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Tools/Makefile.postamble: Modified to install gdomap in cpu/os
|
||||
specific location.
|
||||
|
||||
* src/Dictionary.m: ([-descriptionWithIndent:]) Modified to encode
|
||||
empty strings as "" so that ascii property lists work when a
|
||||
dictionary entry is empty.
|
||||
|
||||
* src/NSArray.m: ([-descriptionWithIndent:]) Modified to encode empty
|
||||
strings as "" so that ascii property lists work when a string in the
|
||||
array is empty.
|
||||
|
||||
* src/TcpPort.m: Modified in various places so that we look in the
|
||||
correct location for gdomap.
|
||||
|
||||
Thu Nov 6 10:14:39 1997 Adam Fedor <fedor@doc.com>
|
||||
|
||||
* src/GNUmakefile (DEFS): Remove PLATFORM_OS.
|
||||
|
|
|
@ -230,7 +230,8 @@
|
|||
id object;
|
||||
string = [key description];
|
||||
|
||||
if ([string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
if ([string length] == 0
|
||||
|| [string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
[desc appendFormat: @"%*s%s = ", level, "", [string quotedCString]];
|
||||
else
|
||||
[desc appendFormat: @"%*s%s = ", level, "", [string cStringNoCopy]];
|
||||
|
@ -246,7 +247,8 @@
|
|||
/* This should be a string or number, so decide if we need to
|
||||
quote it */
|
||||
string = [object description];
|
||||
if ([string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
if ([string length] == 0
|
||||
|| [string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
[desc appendFormat: @"%s;\n", [string quotedCString]];
|
||||
else
|
||||
[desc appendFormat: @"%s;\n", [string cStringNoCopy]];
|
||||
|
|
|
@ -389,6 +389,11 @@ static Class NSMutableArray_concrete_class;
|
|||
}
|
||||
|
||||
- (NSString*) description
|
||||
{
|
||||
return [self descriptionWithIndent: 0];
|
||||
}
|
||||
|
||||
- (NSString*) descriptionWithIndent: (int)level
|
||||
{
|
||||
id string;
|
||||
id desc;
|
||||
|
@ -415,7 +420,8 @@ static Class NSMutableArray_concrete_class;
|
|||
/* This should be a string or number, so decide if we need to
|
||||
quote it */
|
||||
string = [object description];
|
||||
if ([string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
if ([string length] == 0
|
||||
|| [string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
[desc appendFormat: @"%s", [string quotedCString]];
|
||||
else
|
||||
[desc appendString: string];
|
||||
|
@ -437,7 +443,8 @@ static Class NSMutableArray_concrete_class;
|
|||
/* This should be a string or number, so decide if we need to
|
||||
quote it */
|
||||
string = [object description];
|
||||
if ([string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
if ([string length] == 0
|
||||
|| [string rangeOfCharacterFromSet: quotables].length > 0)
|
||||
[desc appendString: [NSString stringWithCString:
|
||||
[string quotedCString]]];
|
||||
else
|
||||
|
@ -448,11 +455,6 @@ static Class NSMutableArray_concrete_class;
|
|||
return desc;
|
||||
}
|
||||
|
||||
- (NSString*) descriptionWithIndent: (unsigned)level
|
||||
{
|
||||
return [self description];
|
||||
}
|
||||
|
||||
/* The NSCopying Protocol */
|
||||
|
||||
- (id) copy
|
||||
|
|
|
@ -64,8 +64,8 @@
|
|||
|
||||
#define GDOMAP 1 /* 1 = Use name server. */
|
||||
#define stringify_it(X) #X
|
||||
#define make_gdomap_cmd(X) stringify_it(X) "/Tools/gdomap &"
|
||||
#define make_gdomap_err(X) "check that " stringify_it(X) "/Tools/gdomap is running and owned by root."
|
||||
#define make_gdomap_cmd(X) stringify_it(X) "/Tools/"GNUSTEP_TARGET_DIR"/gdomap &"
|
||||
#define make_gdomap_err(X) "check that " stringify_it(X) "/Tools/"GNUSTEP_TARGET_DIR"/gdomap is running and owned by root."
|
||||
|
||||
#endif /* !__WIN32__ */
|
||||
#include <string.h> /* for memset() and strchr() */
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
# after-all::
|
||||
|
||||
# Things to do before installing
|
||||
before-install::
|
||||
$(INSTALL) -m 05755 gdomap $(GNUSTEP_SYSTEM_ROOT)/Tools
|
||||
# before-install::
|
||||
|
||||
# Things to do after installing
|
||||
# after-install::
|
||||
after-install::
|
||||
$(INSTALL) -m 05755 gdomap $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
||||
|
||||
# Things to do before uninstalling
|
||||
# before-uninstall::
|
||||
|
|
Loading…
Reference in a new issue