mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
ef23424eac
commit
8587a2d6ee
4 changed files with 28 additions and 8 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,5 +1,9 @@
|
|||
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/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.
|
||||
(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>
|
||||
|
||||
* src/NSGString.m: New file Initial implementation of Unicode
|
||||
|
|
|
@ -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
|
||||
cd ..; $(SHELL) config.status
|
||||
../config.status:
|
||||
cd ..; $(SHELL) configure --no-create
|
||||
include/config.h.in: $(srcdir)/../configure.in $(srcdir)/../acconfig.h
|
||||
cd ..; $(SHELL) autoheader
|
||||
include/config.h: include/config.h.in
|
||||
cd ..; $(SHELL) $(srcdir)/configure --no-create
|
||||
$(srcdir)/include/config.h.in: $(srcdir)/../configure.in $(srcdir)/../acconfig.h
|
||||
cd $(srcdir)/..; $(SHELL) autoheader
|
||||
include/config.h: $(srcdir)/include/config.h.in
|
||||
|
||||
TAGS: $(DIST_FILES)
|
||||
etags $(DIST_FILES)
|
||||
|
|
|
@ -65,10 +65,9 @@
|
|||
#ifndef __WIN32__
|
||||
volatile NSTimeInterval interval;
|
||||
struct timeval tp;
|
||||
struct timezone tzp;
|
||||
|
||||
interval = UNIX_REFERENCE_INTERVAL;
|
||||
gettimeofday (&tp, &tzp);
|
||||
gettimeofday (&tp, NULL);
|
||||
interval += tp.tv_sec;
|
||||
interval += (double)tp.tv_usec / 1000000.0;
|
||||
|
||||
|
@ -262,6 +261,11 @@
|
|||
return seconds_since_ref - UNIX_REFERENCE_INTERVAL;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) timeIntervalSince1970
|
||||
{
|
||||
return seconds_since_ref - UNIX_REFERENCE_INTERVAL;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate
|
||||
{
|
||||
return seconds_since_ref - [otherDate timeIntervalSinceReferenceDate];
|
||||
|
@ -301,7 +305,7 @@
|
|||
- (BOOL) isEqual: (id)other
|
||||
{
|
||||
if ([other isKindOf: [NSDate class]]
|
||||
&& 1.0 > (seconds_since_ref - [other timeIntervalSinceReferenceDate]))
|
||||
&& 1.0 > ABS(seconds_since_ref - [other timeIntervalSinceReferenceDate]))
|
||||
return YES;
|
||||
return NO;
|
||||
}
|
||||
|
|
|
@ -183,7 +183,7 @@ OBJC_SYS_DYNAMIC_FLAGS()
|
|||
# Determine the target platform
|
||||
#--------------------------------------------------------------------
|
||||
if test "x$target" = "xNONE"; then
|
||||
PLATFORM_OS=`config.guess`
|
||||
PLATFORM_OS=`$srcdir/config.guess`
|
||||
else
|
||||
PLATFORM_OS="$target"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue