Deleted Added
full compact
yacc.y (118147) yacc.y (122145)
1%{
2/*-
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Paul Borman at Krystal Technologies.
8 *

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

37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)yacc.y 8.1 (Berkeley) 6/6/93";
41#endif /* 0 */
42#endif /* not lint */
43
44#include <sys/cdefs.h>
1%{
2/*-
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Paul Borman at Krystal Technologies.
8 *

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

37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)yacc.y 8.1 (Berkeley) 6/6/93";
41#endif /* 0 */
42#endif /* not lint */
43
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/usr.bin/mklocale/yacc.y 118147 2003-07-29 07:56:05Z ache $");
45__FBSDID("$FreeBSD: head/usr.bin/mklocale/yacc.y 122145 2003-11-05 22:52:51Z davidxu $");
46
47#include <arpa/inet.h>
48
49#include <ctype.h>
50#include <err.h>
51#include <rune.h>
52#include <stddef.h>
53#include <stdio.h>

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

118
119entry : ENCODING STRING
120 { if (strcmp($2, "NONE") &&
121 strcmp($2, "UTF2") &&
122 strcmp($2, "UTF-8") &&
123 strcmp($2, "EUC") &&
124 strcmp($2, "GBK") &&
125 strcmp($2, "GB18030") &&
46
47#include <arpa/inet.h>
48
49#include <ctype.h>
50#include <err.h>
51#include <rune.h>
52#include <stddef.h>
53#include <stdio.h>

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

118
119entry : ENCODING STRING
120 { if (strcmp($2, "NONE") &&
121 strcmp($2, "UTF2") &&
122 strcmp($2, "UTF-8") &&
123 strcmp($2, "EUC") &&
124 strcmp($2, "GBK") &&
125 strcmp($2, "GB18030") &&
126 strcmp($2, "GB2312") &&
126 strcmp($2, "BIG5") &&
127 strcmp($2, "MSKanji"))
128 warnx("ENCODING %s is not supported by libc", $2);
129 strncpy(new_locale.encoding, $2, sizeof(new_locale.encoding)); }
130 | VARIABLE
131 { new_locale.variable_len = strlen($1) + 1;
132 new_locale.variable = xmalloc(new_locale.variable_len);
133 strcpy((char *)new_locale.variable, $1);

--- 753 unchanged lines hidden ---
127 strcmp($2, "BIG5") &&
128 strcmp($2, "MSKanji"))
129 warnx("ENCODING %s is not supported by libc", $2);
130 strncpy(new_locale.encoding, $2, sizeof(new_locale.encoding)); }
131 | VARIABLE
132 { new_locale.variable_len = strlen($1) + 1;
133 new_locale.variable = xmalloc(new_locale.variable_len);
134 strcpy((char *)new_locale.variable, $1);

--- 753 unchanged lines hidden ---