summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
commit0842b7d53ffede64468e775f5c79965e3d9e48ae (patch)
treeec0e60a06ede057b5afe3f1a6eccc05036f5c424 /usr.bin/tr
parent7510724a04e34e0c4cdf7551cd6e74fb053368e8 (diff)
downloadFreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.zip
FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.tar.gz
Revert most part of 200420 as requested, as more review and polish is
needed.
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/cmap.c3
-rw-r--r--usr.bin/tr/cmap.h1
-rw-r--r--usr.bin/tr/cset.c3
-rw-r--r--usr.bin/tr/cset.h1
-rw-r--r--usr.bin/tr/str.c2
-rw-r--r--usr.bin/tr/tr.c4
6 files changed, 14 insertions, 0 deletions
diff --git a/usr.bin/tr/cmap.c b/usr.bin/tr/cmap.c
index 8c2ab97..811040c 100644
--- a/usr.bin/tr/cmap.c
+++ b/usr.bin/tr/cmap.c
@@ -33,7 +33,10 @@
__FBSDID("$FreeBSD$");
#include <assert.h>
+#include <limits.h>
+#include <stdbool.h>
#include <stdlib.h>
+#include <wchar.h>
#include "cmap.h"
static struct cmapnode *cmap_splay(struct cmapnode *, wint_t);
diff --git a/usr.bin/tr/cmap.h b/usr.bin/tr/cmap.h
index a7c1a30..9a81e13 100644
--- a/usr.bin/tr/cmap.h
+++ b/usr.bin/tr/cmap.h
@@ -29,6 +29,7 @@
#ifndef CMAP_H
#define CMAP_H
+#include <limits.h>
#include <stdbool.h>
#include <wchar.h>
diff --git a/usr.bin/tr/cset.c b/usr.bin/tr/cset.c
index 2535eed..1b42129 100644
--- a/usr.bin/tr/cset.c
+++ b/usr.bin/tr/cset.c
@@ -33,7 +33,10 @@
__FBSDID("$FreeBSD$");
#include <assert.h>
+#include <stdbool.h>
#include <stdlib.h>
+#include <wchar.h>
+#include <wctype.h>
#include "cset.h"
static struct csnode * cset_delete(struct csnode *, wchar_t);
diff --git a/usr.bin/tr/cset.h b/usr.bin/tr/cset.h
index 4a8108a..ab3eabd 100644
--- a/usr.bin/tr/cset.h
+++ b/usr.bin/tr/cset.h
@@ -30,6 +30,7 @@
#define CSET_H
#include <stdbool.h>
+#include <wchar.h>
#include <wctype.h>
struct csnode {
diff --git a/usr.bin/tr/str.c b/usr.bin/tr/str.c
index 1dee776..86ae173 100644
--- a/usr.bin/tr/str.c
+++ b/usr.bin/tr/str.c
@@ -44,6 +44,8 @@ static const char sccsid[] = "@(#)str.c 8.2 (Berkeley) 4/28/95";
#include <ctype.h>
#include <err.h>
#include <errno.h>
+#include <stddef.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c
index 6db16af..61195ff 100644
--- a/usr.bin/tr/tr.c
+++ b/usr.bin/tr/tr.c
@@ -47,12 +47,16 @@ static const char sccsid[] = "@(#)tr.c 8.2 (Berkeley) 5/4/95";
#include <sys/types.h>
+#include <ctype.h>
#include <err.h>
+#include <limits.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <wchar.h>
+#include <wctype.h>
#include "cmap.h"
#include "cset.h"
OpenPOWER on IntegriCloud