* style(9)'fy
* declare prototype for __time_load_locale() in timelocal.h
This commit is contained in:
parent
e91387ab2a
commit
7974fd2f78
@ -34,7 +34,7 @@
|
||||
|
||||
static struct lc_time_T _time_locale;
|
||||
static int _time_using_locale;
|
||||
static char * time_locale_buf;
|
||||
static char *time_locale_buf;
|
||||
|
||||
#define LCTIME_SIZE (sizeof(struct lc_time_T) / sizeof(char *))
|
||||
|
||||
@ -57,17 +57,17 @@ static const struct lc_time_T _C_time_locale = {
|
||||
"%H:%M:%S",
|
||||
|
||||
/*
|
||||
** x_fmt
|
||||
** Since the C language standard calls for
|
||||
** "date, using locale's date format," anything goes.
|
||||
** Using just numbers (as here) makes Quakers happier;
|
||||
** it's also compatible with SVR4.
|
||||
*/
|
||||
* x_fmt
|
||||
* Since the C language standard calls for
|
||||
* "date, using locale's date format," anything goes.
|
||||
* Using just numbers (as here) makes Quakers happier;
|
||||
* it's also compatible with SVR4.
|
||||
*/
|
||||
"%m/%d/%y",
|
||||
|
||||
/*
|
||||
** c_fmt
|
||||
*/
|
||||
* c_fmt
|
||||
*/
|
||||
"%a %b %e %H:%M:%S %Y",
|
||||
|
||||
/* am */
|
||||
@ -80,21 +80,21 @@ static const struct lc_time_T _C_time_locale = {
|
||||
"%a %b %e %H:%M:%S %Z %Y",
|
||||
|
||||
/* alt_month
|
||||
** Standalone months forms for %OB
|
||||
*/
|
||||
* Standalone months forms for %OB
|
||||
*/
|
||||
{
|
||||
"January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"
|
||||
},
|
||||
|
||||
/* md_order
|
||||
** Month / day order in dates
|
||||
*/
|
||||
* Month / day order in dates
|
||||
*/
|
||||
"md",
|
||||
|
||||
/* ampm_fmt
|
||||
** To determine 12-hour clock format time (empty, if N/A)
|
||||
*/
|
||||
* To determine 12-hour clock format time (empty, if N/A)
|
||||
*/
|
||||
"%I:%M:%S %p"
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 1997 FreeBSD Inc.
|
||||
* Copyright (c) 1997-2002 FreeBSD Project.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -26,29 +26,30 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef _TIMELOCAL_H
|
||||
#define _TIMELOCAL_H
|
||||
#ifndef _TIMELOCAL_H_
|
||||
#define _TIMELOCAL_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;
|
||||
const char *am;
|
||||
const char *pm;
|
||||
const char *date_fmt;
|
||||
const char *alt_month[12];
|
||||
const char *md_order;
|
||||
const char *ampm_fmt;
|
||||
};
|
||||
|
||||
struct lc_time_T * __get_current_time_locale(void);
|
||||
struct lc_time_T *__get_current_time_locale(void);
|
||||
int __time_load_locale(const char *);
|
||||
|
||||
#endif /* _TIMELOCAL_H */
|
||||
#endif /* !_TIMELOCAL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user