* lib/strptime.h (strptime): Use 'restrict' for args where
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Jan 2007 23:12:55 +0000 (23:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Jan 2007 23:12:55 +0000 (23:12 +0000)
commit88c14dcf4d4df04f3c12f7d506484993850c55ad
treea6a663a5e3da0d4a8f6b02df957792aa2607f2c4
parent0730a6cdc74a97b1b5b507c0be6116cc0967c056
* lib/strptime.h (strptime): Use 'restrict' for args where
POSIX requires this.
* lib/strptime.c (strptime): Likewise.
Change license notice from LGPL to GPL, since gnulib-tool will
change this as needed.
Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
defined.
Include "strptime.h" first, to check interface.
Do not #undef _LIBC and _NL_CURRENT.
Do not include <stdlib.h>; no longer needed.
Include "time_r.h" and declare ptime_locale_status
only if _LIBC is not defined.
(__P): Remove unused macro.
(match_string): Bring back glibc version, but use it only if _LIBC
is defined.
(__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
Remove unnecessary assertion and abort() call.
Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
* m4/strptime.m4: Fix serial number comment.
(gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
* modules/strptime (Files): Add m4/tm_gmtoff.m4.
(Depends-on): Add time_r.
ChangeLog
lib/strptime.c
lib/strptime.h
m4/strptime.m4
modules/strptime