Loading...
stdtime/timelocal.h Libc-583 Libc-262
--- Libc/Libc-583/stdtime/timelocal.h
+++ Libc/Libc-262/stdtime/timelocal.h
@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 1997-2002 FreeBSD Project.
+ * Copyright (c) 1997 FreeBSD Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -23,35 +23,32 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $FreeBSD: src/lib/libc/stdtime/timelocal.h,v 1.11 2002/01/24 15:07:44 phantom Exp $
+ * $FreeBSD: src/lib/libc/stdtime/timelocal.h,v 1.5.2.1 2000/10/26 16:21:35 ache Exp $
  */
-
-#ifndef _TIMELOCAL_H_
-#define	_TIMELOCAL_H_
-
-#include <xlocale.h>
 
 /*
  * Private header file for the strftime and strptime localization
  * stuff.
  */
 struct lc_time_T {
-	const char	*mon[12];
-	const char	*month[12];
-	const char	*wday[7];
-	const char	*weekday[7];
-	const char	*X_fmt;
-	const char	*x_fmt;
-	const char	*c_fmt;
-	const char	*am;
-	const char	*pm;
-	const char	*date_fmt;
-	const char	*alt_month[12];
-	const char	*md_order;
-	const char	*ampm_fmt;
+	const char *	mon[12];
+	const char *	month[12];
+	const char *	wday[7];
+	const char *	weekday[7];
+	const char *	X_fmt;
+	const char *	x_fmt;
+	const char *    c_fmt;  /* not used, just compatibility placeholder */
+	const char *	am;
+	const char *	pm;
+	const char *	date_fmt;
+	const char *	alt_month[12];
+	const char *    Ef_fmt;
+	const char *    EF_fmt;
 };
 
-struct lc_time_T *__get_current_time_locale(locale_t);
-int	__time_load_locale(const char *, locale_t);
+extern	struct lc_time_T _time_localebuf;
+extern	int _time_using_locale;
+extern	const struct lc_time_T _C_time_locale;
 
-#endif /* !_TIMELOCAL_H_ */
+#define Locale	(_time_using_locale ? &_time_localebuf : &_C_time_locale)
+