<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>sorry, still not a bad idea, but not where my crash is.<BR>
I wasn't paying close enough attention. Those aren't used on NT386GNU.<BR>
The crash is probably here:<BR>
 <BR>
C:\dev2\cm3.2\m3-libs\m3core\src\time\posix\DateBsd.m3(47):      date.zone    := M3toC.CopyStoT (tm.tm_zone);<BR><BR>
I don't know why yet. (meta reason -- these time formats aren't worthwhile even if forward slashes in paths and X Windows are....)<BR>
 <BR>
 - Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: jayk123@hotmail.com<BR>To: m3devel@elegosoft.com<BR>Date: Tue, 12 Feb 2008 15:57:25 +0000<BR>Subject: [M3devel] utime.i3 and imported data<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
For good reason, imported (dynamically linked) data doesn't work great on Win32.<BR>Functions work much better. Data can work, but you generally need the header to say __declspec(dllimport), to change it to a declaration of a pointer. I've seen GNU ld has some workaround but I'm not familiar with it, it doesn't worthwhile to me, and I'm having a problem.<BR> <BR>I strongly suggest all the Utime.i3:<BR> <BR><*EXTERNAL*> VAR timezone: time_t;<BR><*EXTERNAL*> VAR daylight: int;<BR><*EXTERNAL*> VAR tzname: ARRAY [0..1] OF char_star;<BR><BR>be changed to functions:<BR> <BR><*EXTERNAL Utime__get_timezone*> get_timezone(): time_t;<BR><*EXTERNAL Utime__get_daylight*> get_daylight(): int;<BR><*EXTERNAL Utime__get_tzname*> get_tzname(a: [0..1]): char_star;<BR><BR> <BR>with an implementation in C:<BR> <BR>UtimeC.c<BR>#include <time.h><BR>time_t Utime__get_timezone(void)<BR>{<BR>    return timezone;<BR>}<BR> <BR>int Utime__get_daylight(void)<BR>{<BR>    return daylight;<BR>}<BR> <BR>char* Utime__get_tzname(unsigned a)<BR>{<BR>    return tzname[a];<BR>}<BR><BR>for now I'm going to try another workaround..where NT386GNU has this data as not external and some C code to call tzset and then copy the data from the C globals to Modula-3 globals.<BR> <BR>The datetime feature I added to Quake is crashing, I think due to this...<BR> <BR> - Jay<BR><BR>
<HR>
Shed those extra pounds with MSN and The Biggest Loser! <A href="http://biggestloser.msn.com/" target=_blank>Learn more.</A> </BLOCKQUOTE><br /><hr />Helping your favorite cause is as easy as instant messaging. You IM, we give. <a href='http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join' target='_new'>Learn more.</a></body>
</html>