mktime needs to know if daylight time savings are on

(obs from Bernd Gutmann).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1879 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2007-05-07 11:21:29 +00:00
parent dd2126958b
commit b13be040d8
3 changed files with 8 additions and 1 deletions

View File

@ -161,6 +161,7 @@ low_level_trace(yap_low_level_port port, PredEntry *pred, CELL *args)
LOCK(Yap_heap_regs->low_level_trace_lock); LOCK(Yap_heap_regs->low_level_trace_lock);
sc = Yap_heap_regs; sc = Yap_heap_regs;
vsc_count++; vsc_count++;
return;
#ifdef COMMENTED #ifdef COMMENTED
if (vsc_count > 1388060LL && vsc_count < 1388070LL) { if (vsc_count > 1388060LL && vsc_count < 1388070LL) {
if (vsc_count==1388061LL) if (vsc_count==1388061LL)

View File

@ -16,6 +16,8 @@
<h2>Yap-5.1.2:</h2> <h2>Yap-5.1.2:</h2>
<ul> <ul>
<li> FIXED: mktime needs to know if daylight time savings are on
(obs from Bernd Gutmann).</li>
<li> FIXED: handle atom lookup and functor overflows while parsing <li> FIXED: handle atom lookup and functor overflows while parsing
(obs from Bernd Gutmann).</li> (obs from Bernd Gutmann).</li>
<li> FIXED: get rid of static structures for modules (obs from Bernd <li> FIXED: get rid of static structures for modules (obs from Bernd

View File

@ -8,8 +8,11 @@
* * * *
************************************************************************** **************************************************************************
* * * *
* $Id: sys.c,v 1.30 2007-05-02 11:16:43 vsc Exp $ * * $Id: sys.c,v 1.31 2007-05-07 11:21:29 vsc Exp $ *
* mods: $Log: not supported by cvs2svn $ * mods: $Log: not supported by cvs2svn $
* mods: Revision 1.30 2007/05/02 11:16:43 vsc
* mods: small fixes to sys.c
* mods:
* mods: Revision 1.29 2006/10/10 14:08:17 vsc * mods: Revision 1.29 2006/10/10 14:08:17 vsc
* mods: small fixes on threaded implementation. * mods: small fixes on threaded implementation.
* mods: * mods:
@ -186,6 +189,7 @@ sysmktime(void)
loc.tm_hour = YAP_IntOfTerm(YAP_ARG4); loc.tm_hour = YAP_IntOfTerm(YAP_ARG4);
loc.tm_min = YAP_IntOfTerm(YAP_ARG5); loc.tm_min = YAP_IntOfTerm(YAP_ARG5);
loc.tm_sec = YAP_IntOfTerm(YAP_ARG6); loc.tm_sec = YAP_IntOfTerm(YAP_ARG6);
loc.tm_isdst = -1;
if ((tim = mktime(&loc)) < 0) { if ((tim = mktime(&loc)) < 0) {
return YAP_Unify(YAP_ARG8, YAP_MkIntTerm(errno)); return YAP_Unify(YAP_ARG8, YAP_MkIntTerm(errno));