- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / coreutils / tr.c
index f423ab0cf1ee2314cd5056a9b8293fc45bc9c57c..5d3dd4cd8e68c417c4bbbd4549982898290a3088 100644 (file)
@@ -83,9 +83,8 @@ static unsigned int expand(const char *arg, char *buffer)
        char *buffer_start = buffer;
        unsigned i; /* XXX: FIXME: use unsigned char? */
        unsigned char ac;
-#if ENABLE_FEATURE_TR_CLASSES
 #define CLO ":]"
-       const char * const classes[] = {
+       static const char * const classes[] = {
                "alpha"CLO, "alnum"CLO, "digit"CLO, "lower"CLO, "upper"CLO, "space"CLO,
                "blank"CLO, "punct"CLO, "cntrl"CLO, NULL
        };
@@ -102,7 +101,6 @@ static unsigned int expand(const char *arg, char *buffer)
 //#define CLASS_xdigit 10
 //#define CLASS_graph 11
 //#define CLASS_print 12
-#endif
        while (*arg) {
                if (*arg == '\\') {
                        arg++;