mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
description tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6297 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0781dc0250
commit
6978b88eed
14 changed files with 526 additions and 190 deletions
|
@ -38,6 +38,7 @@ main(int argc, char** argv)
|
|||
NSString *name = nil;
|
||||
NSString *user = nil;
|
||||
BOOL found = NO;
|
||||
NSDictionary *locale;
|
||||
int i;
|
||||
|
||||
proc = [NSProcessInfo processInfo];
|
||||
|
@ -169,6 +170,7 @@ main(int argc, char** argv)
|
|||
/* We don't want dwrite in the defaults database - so remove it. */
|
||||
[defs removePersistentDomainForName: [proc processName]];
|
||||
|
||||
locale = [defs dictionaryRepresentation];
|
||||
domains = [defs persistentDomainNames];
|
||||
for (i = 0; i < [domains count]; i++) {
|
||||
NSString *domainName = [domains objectAtIndex: i];
|
||||
|
@ -188,7 +190,8 @@ main(int argc, char** argv)
|
|||
const char *ptr;
|
||||
|
||||
printf("%s %s '", [domainName cString], [key cString]);
|
||||
ptr = [[obj description] cString];
|
||||
ptr = [[obj descriptionWithLocale: locale indent: 0]
|
||||
cString];
|
||||
while (*ptr) {
|
||||
if (*ptr == '\'') {
|
||||
putchar('\'');
|
||||
|
@ -206,7 +209,8 @@ main(int argc, char** argv)
|
|||
const char *ptr;
|
||||
|
||||
printf("%s %s '", [domainName cString], [name cString]);
|
||||
ptr = [[obj description] cString];
|
||||
ptr = [[obj descriptionWithLocale: locale indent: 0]
|
||||
cString];
|
||||
while (*ptr) {
|
||||
if (*ptr == '\'') {
|
||||
putchar('\'');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue