Changes from Mark Kettenis. See ChangeLog Mar 23

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1997-05-03 18:13:17 +00:00
parent ef23424eac
commit 8587a2d6ee
4 changed files with 28 additions and 8 deletions

View file

@ -1,5 +1,9 @@
Sat May 3 12:28:48 1997 Andrew McCallum <mccallum@jprc.com> Sat May 3 12:28:48 1997 Andrew McCallum <mccallum@jprc.com>
* src/Makefile.in (UNICODE_HEADERS): New variable.
(DIST_FILES): Add UNICODE_HEADERS.
(copy-dist): Create directory for unicode.
* examples/Makefile.in (RCS_FILES): Added custom-zone.m. * examples/Makefile.in (RCS_FILES): Added custom-zone.m.
* examples/custom-zone.m: New file. * examples/custom-zone.m: New file.
@ -18,6 +22,18 @@ Sat May 3 12:28:48 1997 Andrew McCallum <mccallum@jprc.com>
Use NSBundle's pathForResource:ofType:inDirectory method properly. Use NSBundle's pathForResource:ofType:inDirectory method properly.
(Reported by Stevo Crvenkovski <stevoc@lotus.mpt.com.mk>.) (Reported by Stevo Crvenkovski <stevoc@lotus.mpt.com.mk>.)
Sun Mar 23 19:55:19 1997 Mark Kettenis <kettenis@phys.uva.nl>
* src/Makefile.in: Update config.h.in in $(srcdir)/src/include.
* configure.in: Look for config.guess in $(srcdir).
Sat Mar 22 18:25:43 1997 Mark Kettenis <kettenis@phys.uva.nl>
* src/NSDate.m ([NSDate +timeIntervalSinceReferenceDate]): Don't
use struct timezone.
([NSDate -timeIntervalSince1970]): New method.
([NSDate -isEqual:]): Correct bug if other specifies a later date.
Sun Mar 23 22:14:21 1997 Stevo Crvenkovski <stevoc@lotus.mpt.com.mk> Sun Mar 23 22:14:21 1997 Stevo Crvenkovski <stevoc@lotus.mpt.com.mk>
* src/NSGString.m: New file Initial implementation of Unicode * src/NSGString.m: New file Initial implementation of Unicode

View file

@ -676,10 +676,10 @@ include/o_map.h: include/o_map_bas.h include/o_map_cbs.h include/o_hash.h
Makefile: $(srcdir)/Makefile.in ../config.status Makefile: $(srcdir)/Makefile.in ../config.status
cd ..; $(SHELL) config.status cd ..; $(SHELL) config.status
../config.status: ../config.status:
cd ..; $(SHELL) configure --no-create cd ..; $(SHELL) $(srcdir)/configure --no-create
include/config.h.in: $(srcdir)/../configure.in $(srcdir)/../acconfig.h $(srcdir)/include/config.h.in: $(srcdir)/../configure.in $(srcdir)/../acconfig.h
cd ..; $(SHELL) autoheader cd $(srcdir)/..; $(SHELL) autoheader
include/config.h: include/config.h.in include/config.h: $(srcdir)/include/config.h.in
TAGS: $(DIST_FILES) TAGS: $(DIST_FILES)
etags $(DIST_FILES) etags $(DIST_FILES)

View file

@ -65,10 +65,9 @@
#ifndef __WIN32__ #ifndef __WIN32__
volatile NSTimeInterval interval; volatile NSTimeInterval interval;
struct timeval tp; struct timeval tp;
struct timezone tzp;
interval = UNIX_REFERENCE_INTERVAL; interval = UNIX_REFERENCE_INTERVAL;
gettimeofday (&tp, &tzp); gettimeofday (&tp, NULL);
interval += tp.tv_sec; interval += tp.tv_sec;
interval += (double)tp.tv_usec / 1000000.0; interval += (double)tp.tv_usec / 1000000.0;
@ -262,6 +261,11 @@
return seconds_since_ref - UNIX_REFERENCE_INTERVAL; return seconds_since_ref - UNIX_REFERENCE_INTERVAL;
} }
- (NSTimeInterval) timeIntervalSince1970
{
return seconds_since_ref - UNIX_REFERENCE_INTERVAL;
}
- (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate - (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate
{ {
return seconds_since_ref - [otherDate timeIntervalSinceReferenceDate]; return seconds_since_ref - [otherDate timeIntervalSinceReferenceDate];
@ -301,7 +305,7 @@
- (BOOL) isEqual: (id)other - (BOOL) isEqual: (id)other
{ {
if ([other isKindOf: [NSDate class]] if ([other isKindOf: [NSDate class]]
&& 1.0 > (seconds_since_ref - [other timeIntervalSinceReferenceDate])) && 1.0 > ABS(seconds_since_ref - [other timeIntervalSinceReferenceDate]))
return YES; return YES;
return NO; return NO;
} }

View file

@ -183,7 +183,7 @@ OBJC_SYS_DYNAMIC_FLAGS()
# Determine the target platform # Determine the target platform
#-------------------------------------------------------------------- #--------------------------------------------------------------------
if test "x$target" = "xNONE"; then if test "x$target" = "xNONE"; then
PLATFORM_OS=`config.guess` PLATFORM_OS=`$srcdir/config.guess`
else else
PLATFORM_OS="$target" PLATFORM_OS="$target"
fi fi