* Tools/cvtenc.m (main): Write using local/set encoding when

EscapeIn=YES.
* Tools/gdomap.c: Remove getopt function for MinGW
(patch from Leigh Smith <leigh@leighsmith.com>).
* Documentation/coding-standards.texi: Add section about object
persistance.
* configure.ac: Make it possible to override --enable-pass-arguments
when on cygwin.
* configure: Regenerate using 2.57


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17698 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2003-09-22 03:00:21 +00:00
parent 3fe833176d
commit 9973d7ef1e
7 changed files with 2678 additions and 1636 deletions

View file

@ -1,3 +1,22 @@
2003-09-21 Adam Fedor <fedor@gnu.org>
* Tools/cvtenc.m (main): Write using local/set encoding when
EscapeIn=YES.
* Tools/gdomap.c: Remove getopt function for MinGW
(patch from Leigh Smith <leigh@leighsmith.com>).
* Documentation/coding-standards.texi: Add section about object
persistance.
* configure.ac: Make it possible to override --enable-pass-arguments
when on cygwin.
* configure: Regenerate using 2.57
2003-09-20 yjchen <yjchenx@hotmail.com>
* Resources/Languages/TraditionalChinese: Quote escaped strings.
2003-09-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: Add a couple of checks to raise exceptions

View file

@ -61,6 +61,7 @@ into another language, under the above conditions for modified versions.
* Memory Management::
* Error Handling::
* Variable Declaration::
* Object Persistance::
* Contributing::
@end menu
@ -333,7 +334,7 @@ similar mechanism exists in libFoundation with the CLEANUP and FINALLY
blocks.
@c ******************************************************************
@node Variable Declaration, Contributing, Error Handling, Top
@node Variable Declaration, Object Persistance, Error Handling, Top
@section Variable Declaration
All variables should be decalred at the beginning of a block. The new
@ -346,7 +347,21 @@ GNUstep libraries which stopped them compiling with one of the
commonly used compilers.
@node Contributing, , Variable Declaration, Top
@c ******************************************************************
@node Object Persistance, Contributing, Variable Declaration, Top
@section Object Persistance
The standard method of saving and restoring object information in GNUstep
is through the use of the -encodeWithCoder: and -initWithCoder: methods.
Any object which requires persistance implements these methods. They are
used, for instance by Gorm, to save GUI interface elements. It is important
that all changes to these methods be backward compatible with previously
stored archives (for instance, those created by Gorm). The easiest way to do
this is to use class version numbers to indicate which archive configuration
should be read.
@node Contributing, , Object Persistance, Top
@section Contributing
Contributing code is not difficult. Here are

View file

@ -13,25 +13,25 @@
NSDecimalSeparator = ".";
NSThousandsSeparator = ",";
NSAMPMDesignation = (\u4e0a\u5348, \u4e0b\u5348);
NSAMPMDesignation = ("\u4e0a\u5348", "\u4e0b\u5348");
NSDateFormatString = "%A, %B %d, %Y";
NSDateTimeOrdering = DMYH;
NSEarlierTimeDesignations = (\u4e4b\u524d, \u904e\u53bb);
NSHourNameDesignations = ((0, \u5348\u591c), (12, \u4e2d\u5348), (10, \u4e0a\u5348), (14, \u4e0b\u5348), (19, \u665a\u4e0a));
NSLaterTimeDesignations = (\u4e4b\u5f8c, \u4ee5\u5f8c);
NSMonthNameArray = (\u4e00\u6708, \u4e8c\u6708, \u4e09\u6708, \u56db\u6708, \u4e94\u6708, \u516d\u6708, \u4e03\u6708, \u516b\u6708, \u4e5d\u6708, \u5341\u6708, \u5341\u4e00\u6708, \u5341\u4e8c\u6708);
NSNextDayDesignations = (\u660e\u5929);
NSNextNextDayDesignations = (\u5f8c\u5929);
NSPriorDayDesignations = (\u6628\u5929);
NSEarlierTimeDesignations = ("\u4e4b\u524d", "\u904e\u53bb");
NSHourNameDesignations = ((0, "\u5348\u591c"), (12, "\u4e2d\u5348"), (10, "\u4e0a\u5348"), (14, "\u4e0b\u5348"), (19, "\u665a\u4e0a"));
NSLaterTimeDesignations = ("\u4e4b\u5f8c", "\u4ee5\u5f8c");
NSMonthNameArray = ("\u4e00\u6708", "\u4e8c\u6708", "\u4e09\u6708", "\u56db\u6708", "\u4e94\u6708", "\u516d\u6708", "\u4e03\u6708", "\u516b\u6708", "\u4e5d\u6708", "\u5341\u6708", "\u5341\u4e00\u6708", "\u5341\u4e8c\u6708");
NSNextDayDesignations = ("\u660e\u5929");
NSNextNextDayDesignations = ("\u5f8c\u5929");
NSPriorDayDesignations = ("\u6628\u5929");
NSShortDateFormatString = "%m/%d/%Y";
NSShortMonthNameArray = (\u4e00\u6708, \u4e8c\u6708, \u4e09\u6708, \u56db\u6708, \u4e94\u6708, \u516d\u6708, \u4e03\u6708, \u516b\u6708, \u4e5d\u6708, \u5341\u6708, \u5341\u4e00\u6708, \u5341\u4e8c\u6708);
NSShortMonthNameArray = ("\u4e00\u6708", "\u4e8c\u6708", "\u4e09\u6708", "\u56db\u6708", "\u4e94\u6708", "\u516d\u6708", "\u4e03\u6708", "\u516b\u6708", "\u4e5d\u6708", "\u5341\u6708", "\u5341\u4e00\u6708", "\u5341\u4e8c\u6708");
NSShortTimeDateFormatString = "%d %b, %Y %H:%M";
NSShortWeekDayNameArray = (\u9031\u4e00, \u9031\u4e8c, \u9031\u4e09, \u9031\u56db, \u9031\u4e94, \u9031\u516d, \u9031\u65e5);
NSThisDayDesignations = (\u4eca\u5929);
NSShortWeekDayNameArray = ("\u9031\u4e00", "\u9031\u4e8c", "\u9031\u4e09", "\u9031\u56db", "\u9031\u4e94", "\u9031\u516d", "\u9031\u65e5");
NSThisDayDesignations = ("\u4eca\u5929");
NSTimeDateFormatString = "%a %b %d %Y %H:%M:%S %Z";
NSTimeFormatString = "%H:%M:%S";
NSWeekDayNameArray = (\u661f\u671f\u4e00, \u661f\u671f\u4e8c, \u661f\u671f\u4e09, \u661f\u671f\u56db, \u661f\u671f\u4e94, \u661f\u671f\u516d, \u661f\u671f\u65e5);
NSYearMonthWeekDesignations = (\u5e74, \u6708, \u9031);
NSWeekDayNameArray = ("\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d", "\u661f\u671f\u65e5");
NSYearMonthWeekDesignations = ("\u5e74", "\u6708", "\u9031");
}

View file

@ -229,6 +229,11 @@ main(int argc, char** argv, char **env)
myData = [[NSData alloc] initWithBytesNoCopy: c
length: o];
}
else if (eIn == YES)
{
myData = [myString dataUsingEncoding: iEnc
allowLossyConversion: NO];
}
else
{
myData = [myString dataUsingEncoding: oEnc

View file

@ -177,76 +177,6 @@ static void queue_probe(struct in_addr* to, struct in_addr *from,
int num_extras, struct in_addr* extra, int is_reply);
#ifdef __MINGW__
/* A simple implementation of getopt() */
static int
indexof(char c, char *string)
{
int i;
for (i = 0; i < strlen(string); i++)
{
if (string[i] == c)
{
return i;
}
}
return -1;
}
static char *optarg;
static char
getopt(int argc, char **argv, char *options)
{
static int argi;
static char *arg;
int index;
char retval = '\0';
optarg = NULL;
if (argi == 0)
{
argi = 1;
}
while (argi < argc)
{
arg = argv[argi];
if (strlen(arg) == 2)
{
if (arg[0] == '-')
{
if ((index = indexof(arg[1], options)) != -1)
{
retval = arg[1];
if (index < strlen(options))
{
if (options[index+1] == ':')
{
if (argi < argc-1)
{
argi++;
optarg = argv[argi];
}
else
{
return -1; /* ':' given, but argv exhausted */
}
}
}
}
}
}
argi++;
return retval;
}
return -1;
}
#endif
static char ebuf[2048];

4165
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -797,14 +797,16 @@ AC_CHECK_LIB(kvm, kvm_getenvv)
# On some systems - force redefinition to be used as the /proc stuff
# doesn't work. Allow NSProcessInfo initialization method also.
#--------------------------------------------------------------------
PASS_ARG=no
case "$target_os" in
cygwin*) PASS_ARG=yes;;
esac
AC_MSG_CHECKING("use of pass-through arguments")
AC_ARG_ENABLE(pass-arguments,
[ --enable-pass-arguments Force user main call to NSProcessInfo initialize],,
enable_pass_arguments=no)
enable_pass_arguments=$PASS_ARG)
case "$target_os" in
cygwin*) enable_pass_arguments=yes;;
esac
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else