Deleted Added
full compact
timelocal.h (51186) timelocal.h (53940)
1/*-
2 * Copyright (c) 1997 FreeBSD Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997 FreeBSD Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libc/stdtime/timelocal.h 51186 1999-09-11 21:35:21Z dt $
26 * $FreeBSD: head/lib/libc/stdtime/timelocal.h 53940 1999-11-30 07:33:37Z ache $
27 */
28
29/*
30 * Private header file for the strftime and strptime localization
31 * stuff.
32 */
33struct lc_time_T {
34 const char * mon[12];
35 const char * month[12];
36 const char * wday[7];
37 const char * weekday[7];
38 const char * X_fmt;
39 const char * x_fmt;
40 const char * c_fmt;
41 const char * am;
42 const char * pm;
43 const char * date_fmt;
44 const char * alt_month[12];
27 */
28
29/*
30 * Private header file for the strftime and strptime localization
31 * stuff.
32 */
33struct lc_time_T {
34 const char * mon[12];
35 const char * month[12];
36 const char * wday[7];
37 const char * weekday[7];
38 const char * X_fmt;
39 const char * x_fmt;
40 const char * c_fmt;
41 const char * am;
42 const char * pm;
43 const char * date_fmt;
44 const char * alt_month[12];
45 const char * Ex_fmt;
45};
46
47extern struct lc_time_T _time_localebuf;
48extern int _time_using_locale;
49extern const struct lc_time_T _C_time_locale;
50
51#define Locale (_time_using_locale ? &_time_localebuf : &_C_time_locale)
52
46};
47
48extern struct lc_time_T _time_localebuf;
49extern int _time_using_locale;
50extern const struct lc_time_T _C_time_locale;
51
52#define Locale (_time_using_locale ? &_time_localebuf : &_C_time_locale)
53