enhanced a few code segments that convert a digit to a number

This commit is contained in:
2011-11-09 00:54:27 +00:00
parent f2615f05a5
commit 595aab7555
8 changed files with 25 additions and 32 deletions

View File

@ -43,7 +43,7 @@
# include "syscall.h"
#endif
#define NTOC(n) (((n) >= 10)? (((n) - 10) + QSE_T('A')): (n) + QSE_T('0'))
#define NTOC(n) (QSE_T("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")[n])
#define WRITE_CHAR(c) \
do { \
qse_char_t __xxx_c = c; \