messages.c revision 5aec55eb0591d2fcdd38d7dd5408a6ff3456e596
/*
* 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 2010 Nexenta Systems, Inc. All rights reserved.
*/
/*
* LC_MESSAGES database generation routines for localedef.
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <alloca.h>
#include "localedef.h"
#include "parser.tab.h"
#include "lmessages.h"
static struct lc_messages_T msgs;
void
init_messages(void)
{
}
void
{
char *str;
return;
}
switch (last_kw) {
case T_YESSTR:
break;
case T_NOSTR:
break;
case T_YESEXPR:
break;
case T_NOEXPR:
break;
default:
break;
}
}
void
dump_messages(void)
{
FILE *f;
char *ptr;
warn(_("missing field 'yesstr'"));
}
warn(_("missing field 'nostr'"));
}
/*
* CLDR likes to add : separated lists for yesstr and nostr.
* Legacy Solaris code does not seem to grok this. Fix it.
*/
*ptr = 0;
*ptr = 0;
if ((f = open_category()) == NULL) {
return;
}
return;
}
close_category(f);
}