Mark the INVALID keyword as being deprecated since the concept of

"invalid runes" is useless without the rest of the deprecated rune interface.
This commit is contained in:
Tim J. Robbins 2002-12-21 11:37:05 +00:00
parent e43e24711b
commit 148f804340
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108158
2 changed files with 5 additions and 1 deletions

View File

@ -179,6 +179,7 @@ See
.Xr euc 4
for further details.
.It Dv INVALID
(deprecated)
A single
.Dv RUNE
follows and is used as the invalid rune for this locale.

View File

@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
#include <arpa/inet.h>
#include <ctype.h>
#include <err.h>
#include <rune.h>
#include <stddef.h>
#include <stdio.h>
@ -122,7 +123,9 @@ entry : ENCODING STRING
strcpy((char *)new_locale.variable, $1);
}
| INVALID RUNE
{ new_locale.invalid_rune = $2; }
{ warnx("the INVALID keyword is deprecated");
new_locale.invalid_rune = $2;
}
| LIST list
{ set_map(&types, $2, $1); }
| MAPLOWER map