summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libwavpack/bits.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwavpack/bits.c')
-rw-r--r--apps/codecs/libwavpack/bits.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/apps/codecs/libwavpack/bits.c b/apps/codecs/libwavpack/bits.c
index e1700df539..1fe6aacf75 100644
--- a/apps/codecs/libwavpack/bits.c
+++ b/apps/codecs/libwavpack/bits.c
@@ -17,28 +17,6 @@
#include "wavpack.h"
#include <string.h>
-#include <ctype.h>
-
-/* dirty fix */
-const char _ctype_[257]={
- 0,
- _C, _C, _C, _C, _C, _C, _C, _C,
- _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C,
- _C, _C, _C, _C, _C, _C, _C, _C,
- _C, _C, _C, _C, _C, _C, _C, _C,
- _S|_B, _P, _P, _P, _P, _P, _P, _P,
- _P, _P, _P, _P, _P, _P, _P, _P,
- _N, _N, _N, _N, _N, _N, _N, _N,
- _N, _N, _P, _P, _P, _P, _P, _P,
- _P, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U,
- _U, _U, _U, _U, _U, _U, _U, _U,
- _U, _U, _U, _U, _U, _U, _U, _U,
- _U, _U, _U, _P, _P, _P, _P, _P,
- _P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L,
- _L, _L, _L, _L, _L, _L, _L, _L,
- _L, _L, _L, _L, _L, _L, _L, _L,
- _L, _L, _L, _P, _P, _P, _P, _C
-};
////////////////////////// Bitstream functions ////////////////////////////////
@@ -118,7 +96,7 @@ void little_endian_to_native (void *data, char *format)
break;
default:
- if (isdigit (*format))
+ if (*format >= '0' && *format <= '9')
cp += *format - '0';
break;
@@ -150,7 +128,7 @@ void native_to_little_endian (void *data, char *format)
break;
default:
- if (isdigit (*format))
+ if (*format >= '0' && *format <= '9')
cp += *format - '0';
break;