sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 1f3345b9e6645227796cb50a0b85d7045cc7cbc0
parent a582cb8a2fed2e3d165154cd9a348880851c05a2
Author: sin <sin@2f30.org>
Date:   Sat, 10 Jan 2015 14:21:09 +0000

Staticise some symbols in tr(1)

Diffstat:
Mtr.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tr.c b/tr.c @@ -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)