Staticise some symbols in tr(1)

This commit is contained in:
sin 2015-01-10 14:21:09 +00:00
parent a582cb8a2f
commit 1f3345b9e6
1 changed files with 5 additions and 5 deletions

10
tr.c
View File

@ -20,7 +20,7 @@ struct range {
#define PUNCT "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
#define ALNUM DIGIT UPPER LOWER
struct class {
static struct {
char *name;
char *str;
} classes[] = {
@ -38,10 +38,10 @@ struct class {
{ "xdigit", DIGIT "A-Fa-f" },
};
struct range *set1 = NULL;
size_t set1ranges = 0;
struct range *set2 = NULL;
size_t set2ranges = 0;
static struct range *set1 = NULL;
static size_t set1ranges = 0;
static struct range *set2 = NULL;
static size_t set2ranges = 0;
static size_t
rangelen(struct range r)