[1505] in Coldmud discussion meeting
stupid me
daemon@ATHENA.MIT.EDU (Thu Dec 2 10:32:41 1999
)
Date: Thu, 02 Dec 1999 10:17:44 -0500
From: Nobody <psyclone42@geocities.com>
To: coldstuff@cold.org
Reply-To: coldstuff@cold.org
This is a multi-part message in MIME format.
--------------DEC7A98ADDB0BE0C4B03EEEB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
i seem to have sent the email without the patch. DOH.
--------------DEC7A98ADDB0BE0C4B03EEEB
Content-Type: text/plain; charset=us-ascii;
name="borland-ctime.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="borland-ctime.diff"
--- Genesis-1.1.8-STABLE/src/ops/misc.c Tue Jul 13 17:05:03 1999
+++ driver-src/src/ops/misc.c Thu Dec 2 10:02:52 1999
@@ -85,6 +85,13 @@
} else
time(&t);
+#ifdef __BORLANDC__
+ if (t < 18000) {
+ THROW((type_id,
+ "Borland's time util is broken, and requires time values above 18000"))
+ }
+#endif
+
tms = localtime(&t);
l = list_new(12);
@@ -154,6 +161,14 @@
return;
tval = (num_args) ? args[0].u.val : time(NULL);
+
+#ifdef __BORLANDC__
+ if (tval < 18000) {
+ THROW((type_id,
+ "Borland's time util is broken, and requires time values above 18000"))
+ }
+#endif
+
timestr = ctime(&tval);
str = string_from_chars(timestr, 24);
--------------DEC7A98ADDB0BE0C4B03EEEB--