localedef: Replace avl tree (cddl) with RB tree, plus ...
authorJohn Marino <draco@marino.st>
Sat, 7 Nov 2015 19:45:40 +0000 (20:45 +0100)
committerJohn Marino <draco@marino.st>
Sun, 8 Nov 2015 01:33:28 +0000 (02:33 +0100)
commitcacd7ea7a517f23b901e0cf7e0d6b0ad03e88146
treebb989c36ee2fc4c27909d99b224599f95bb82d91
parente62135578c2715e2d8242b4d6d6cf5595aacb732
localedef: Replace avl tree (cddl) with RB tree, plus ...

When FreeBSD adopted DragonFly's locales, the AVL tree code was replaced
with an RB tree equivalent. While cddl wasn't an issue here, let's bring
in FreeBSD's changes since they did the work.

Some other changes:
 * replace (safe) strcpy+strncat with snprintf
 * rework charmap types/prototypes to remove GCC pragmas
 * Support case where wchar_t is an unsigned int (ARM)
 * Change -D "DragonFly-style" option description to -D "BSD-style"
12 files changed:
usr.bin/localedef/Makefile
usr.bin/localedef/README
usr.bin/localedef/avl.c [deleted file]
usr.bin/localedef/avl.h [deleted file]
usr.bin/localedef/avl_impl.h [deleted file]
usr.bin/localedef/charmap.c
usr.bin/localedef/collate.c
usr.bin/localedef/ctype.c
usr.bin/localedef/localedef.1
usr.bin/localedef/localedef.c
usr.bin/localedef/localedef.h
usr.bin/localedef/wide.c