/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2013 Garrett D'Amore <garrett@damore.org>
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
*/
/*
* LC_TIME database generation routines for localedef.
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include "localedef.h"
#include "parser.tab.h"
#include "timelocal.h"
void
init_time(void)
{
}
void
{
char *str;
return;
}
switch (last_kw) {
case T_D_T_FMT:
break;
case T_D_FMT:
break;
case T_T_FMT:
break;
case T_T_FMT_AMPM:
break;
case T_DATE_FMT:
/*
* This one is a Solaris extension, Too bad date just
* doesn't use %c, which would be simpler.
*/
break;
case T_ERA_D_FMT:
case T_ERA_T_FMT:
case T_ERA_D_T_FMT:
/* Silently ignore it. */
break;
default:
break;
}
}
static void
{
int i;
for (i = 0; i < limit; i++) {
return;
}
}
errf(_("too many list elements"));
}
void
{
char *str;
return;
}
switch (last_kw) {
case T_ABMON:
break;
case T_MON:
break;
case T_ABDAY:
break;
case T_DAY:
break;
case T_AM_PM:
} else {
errf(_("too many list elements"));
}
break;
case T_ALT_DIGITS:
case T_ERA:
break;
default:
break;
}
}
void
check_time_list(void)
{
switch (last_kw) {
case T_ABMON:
return;
break;
case T_MON:
return;
break;
case T_ABDAY:
return;
break;
case T_DAY:
return;
break;
case T_AM_PM:
return;
break;
case T_ERA:
case T_ALT_DIGITS:
return;
default:
errf(_("unknown list"));
break;
}
}
void
reset_time_list(void)
{
int i;
switch (last_kw) {
case T_ABMON:
for (i = 0; i < 12; i++) {
}
break;
case T_MON:
for (i = 0; i < 12; i++) {
}
break;
case T_ABDAY:
for (i = 0; i < 7; i++) {
}
break;
case T_DAY:
for (i = 0; i < 7; i++) {
}
break;
case T_AM_PM:
break;
}
}
void
dump_time(void)
{
FILE *f;
int i;
if ((f = open_category()) == NULL) {
return;
}
for (i = 0; i < 12; i++) {
return;
}
}
for (i = 0; i < 12; i++) {
return;
}
}
for (i = 0; i < 7; i++) {
return;
}
}
for (i = 0; i < 7; i++) {
return;
}
}
/*
* NOTE: If date_fmt is not specified, then we'll default to
* using the %c for date. This is reasonable for most
* locales, although for reasons that I don't understand
* Solaris historically has had a seperate format for date.
*/
return;
}
close_category(f);
}