timelocal.h revision 50476
1353952Sdim/*-
2353952Sdim * Copyright (c) 1997 FreeBSD Inc.
3353952Sdim * All rights reserved.
4353952Sdim *
5353952Sdim * Redistribution and use in source and binary forms, with or without
6353952Sdim * modification, are permitted provided that the following conditions
7353952Sdim * are met:
8353952Sdim * 1. Redistributions of source code must retain the above copyright
9353952Sdim *    notice, this list of conditions and the following disclaimer.
10353952Sdim * 2. Redistributions in binary form must reproduce the above copyright
11353952Sdim *    notice, this list of conditions and the following disclaimer in the
12353952Sdim *    documentation and/or other materials provided with the distribution.
13353952Sdim *
14353952Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15353952Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16353952Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17353952Sdim * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18353952Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19353952Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20353952Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21353952Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22353952Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23353952Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24353952Sdim * SUCH DAMAGE.
25353952Sdim *
26353952Sdim * $FreeBSD: head/lib/libc/stdtime/timelocal.h 50476 1999-08-28 00:22:10Z peter $
27353952Sdim */
28353952Sdim
29353952Sdim/*
30353952Sdim * Private header file for the strftime and strptime localization
31353952Sdim * stuff.
32353952Sdim */
33353952Sdimstruct lc_time_T {
34353952Sdim	const char *	mon[12];
35353952Sdim	const char *	month[12];
36353952Sdim	const char *	wday[7];
37353952Sdim	const char *	weekday[7];
38353952Sdim	const char *	X_fmt;
39353952Sdim	const char *	x_fmt;
40353952Sdim	const char *	c_fmt;
41353952Sdim	const char *	am;
42353952Sdim	const char *	pm;
43353952Sdim	const char *	date_fmt;
44353952Sdim};
45353952Sdim
46353952Sdimextern	struct lc_time_T _time_localebuf;
47353952Sdimextern	int _time_using_locale;
48353952Sdimextern	const struct lc_time_T _C_time_locale;
49353952Sdim
50353952Sdim#define Locale	(_time_using_locale ? &_time_localebuf : &_C_time_locale)
51353952Sdim
52353952Sdim