#include "alloc.h"
#include "codec.h"
#include "dstr.h"
+#include "macros.h"
#include "sub.h"
#include "base64.h"
#define PUTWRAP(x) WRAP({ \
char ch = encodemap[x]; \
- if (f & CDCF_LOWERC) ch = tolower((unsigned char)ch); \
+ if (f & CDCF_LOWERC) ch = TOLOWER(ch); \
DPUTC(d, ch); \
})
case 0: \
break; \
case CDCF_LOWERC: \
- if (isupper(ch)) goto badch; \
+ if (ISUPPER(ch)) goto badch; \
default: \
- ch = toupper(ch); \
+ ch = TOUPPER(ch); \
} \
x = decodemap[ch]; \
switch (x) { \