[hackers] [sbase] Staticise some symbols in tr(1) || sin

From: <git_AT_suckless.org>
Date: Sat, 10 Jan 2015 15:26:41 +0100 (CET)

commit 1f3345b9e6645227796cb50a0b85d7045cc7cbc0
Author: sin <sin_AT_2f30.org>
Date: Sat Jan 10 14:21:09 2015 +0000

    Staticise some symbols in tr(1)

diff --git a/tr.c b/tr.c
index cfd1c94..854c190 100644
--- a/tr.c
+++ b/tr.c
_AT_@ -20,7 +20,7 @@ struct range {
 #define PUNCT "!\"#$%&'()*+,-./:;<=>?_AT_[\\]^_`{|}~"
 #define ALNUM DIGIT UPPER LOWER
 
-struct class {
+static struct {
         char *name;
         char *str;
 } classes[] = {
_AT_@ -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)
Received on Sat Jan 10 2015 - 15:26:41 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 10 2015 - 15:36:11 CET