[Patch, libfortran] PR 47802 Implementation of CTIME intrinsic
Janne Blomqvist
blomqvist.janne@gmail.com
Thu Feb 24 21:28:00 GMT 2011
On Thu, Feb 24, 2011 at 23:24, Janne Blomqvist
<blomqvist.janne@gmail.com> wrote:
> Patch with the above improvements attached. Ok for trunk?
Er, wrong patch with a memory leak was attached. Please review this one instead.
>
> 2011-02-24 Janne Blomqvist <jb@gcc.gnu.org>
>
> PR libfortran/47802
> * config.h.in: Regenerated.
> * configure: Regenerated.
> * configure.ac: Remove checks for ctime and ctime_r, add check for
> strftime.
> * intrinsics/date_and_time.c (localtime_r): Move fallback
> implementation to time_1.h.
> * intrinsics/time_1.h (localtime_r): Fallback implementation.
> * intrinsics/ctime.c: Include time_1.h.
> (ctime_r): Remove fallback implementation.
> (strctime): New function.
> (fdate): Use strctime instead of ctime_r.
> (fdate_sub): Likewise.
> (ctime): Likewise.
> (ctime_sub): Likewise.
>
>
>
> --
> Janne Blomqvist
>
--
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctime2.diff
Type: text/x-patch
Size: 7373 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110224/23fddc4b/attachment.bin>
More information about the Fortran
mailing list