delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/25/17:16:05

X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f
Date: Thu, 25 Jan 2001 16:17:54 -0600
From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp-workers AT delorie DOT com
Subject: djasm patch
Message-ID: <20010125161754.A22046@kendall.sfbr.org>
Mail-Followup-To: djgpp-workers AT delorie DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
Reply-To: djgpp-workers AT delorie DOT com

Bill Currie has added a lot of features to djasm.
With his permission, I am posting here some of the
diff hunks for review.  If they are acceptable, we
might as well fold them in to the `official' djasm.

Following is a very small change.
-- 
jtw


--- djasm.y	Thu Jan 25 16:11:57 2001
+++ /home/jeffw/tmp/bcurrie/djasm/djasm.y	Sat Mar 27 03:01:32 1999
@@ -2519,20 +2640,20 @@
   struct tm *tm;
   time(&now);
   tm = localtime(&now);
-  sprintf(tmp, "%cId: %s built %04d-%02d-%02d %02d:%02d:%02d by djasm $\n",
+  sprintf(tmp, "%cId: %s built %02d/%02d/%02d %02d:%02d:%02d by djasm $\n",
 	  '$', inname,
-	  tm->tm_year + 1900,
 	  tm->tm_mon + 1,
 	  tm->tm_mday,
+	  tm->tm_year,
 	  tm->tm_hour,
 	  tm->tm_min,
 	  tm->tm_sec);
   add_copyright(tmp);
-  sprintf(tmp, "@(#) %s built %04d-%02d-%02d %02d:%02d:%02d by djasm\n",
+  sprintf(tmp, "@(#) %s built %02d/%02d/%02d %02d:%02d:%02d by djasm\n",
 	  inname,
-	  tm->tm_year + 1900,
 	  tm->tm_mon + 1,
 	  tm->tm_mday,
+	  tm->tm_year,
 	  tm->tm_hour,
 	  tm->tm_min,
 	  tm->tm_sec);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019