annotate lib/mktime-internal.h @ 12228:465038ef6bc4

mktime, timegm: share common declaration * lib/mktime-internal.h: New file. * lib/mktime.c: Use it rather than open-coding a declaration. * lib/timegm.c: Likewise. * modules/mktime (Files): Ship it. * modules/timegm (Files): Likewise. Suggested by Bruno Haible. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Mon, 02 Nov 2009 11:39:38 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12228
465038ef6bc4 mktime, timegm: share common declaration
Eric Blake <ebb9@byu.net>
parents:
diff changeset
1 #include <time.h>
465038ef6bc4 mktime, timegm: share common declaration
Eric Blake <ebb9@byu.net>
parents:
diff changeset
2 time_t mktime_internal (struct tm *,
465038ef6bc4 mktime, timegm: share common declaration
Eric Blake <ebb9@byu.net>
parents:
diff changeset
3 struct tm * (*) (time_t const *, struct tm *),
465038ef6bc4 mktime, timegm: share common declaration
Eric Blake <ebb9@byu.net>
parents:
diff changeset
4 time_t *);