delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/26/05:42:36

From: Martin Stromberg <eplmst AT lu DOT erisoft DOT se>
Message-Id: <200101260746.IAA04919@lws256.lu.erisoft.se>
Subject: Re: djasm patch
To: djgpp-workers AT delorie DOT com
Date: Fri, 26 Jan 2001 08:46:36 +0100 (MET)
In-Reply-To: <20010125161754.A22046@kendall.sfbr.org> from "JT Williams" at Jan 25, 2001 04:17:54 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv 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);
> 

It looks like your undoing my change to ISO format of time. The right
line is "sprintf(tmp, "@(#) %s built %04d-%02d-%02d %02d:%02d:%02d by
djasm\n",". It should be right in the CVS as I've commited it.


Right,

						MartinS

- Raw text -


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