removed unneeded code

This commit is contained in:
hyung-hwan 2018-02-28 10:23:08 +00:00
parent ffa6c39852
commit ed729adc2e

View File

@ -789,7 +789,6 @@ static int put_formatted_string (hcl_t* hcl, int mask, const hcl_ooch_t* ptr, hc
static HCL_INLINE int print_formatted (hcl_t* hcl, hcl_ooi_t nargs, hcl_fmtout_t* data) static HCL_INLINE int print_formatted (hcl_t* hcl, hcl_ooi_t nargs, hcl_fmtout_t* data)
{ {
hcl_oop_char_t fmtoop; hcl_oop_char_t fmtoop;
hcl_ooi_t i;
//hcl_bch_t nbuf[MAXNBUF], bch; //hcl_bch_t nbuf[MAXNBUF], bch;
int n, base, neg, sign; int n, base, neg, sign;
@ -813,6 +812,7 @@ static HCL_INLINE int print_formatted (hcl_t* hcl, hcl_ooi_t nargs, hcl_fmtout_t
data->count = 0; data->count = 0;
/* TODO: traverse until fmtend... */
while (1) while (1)
{ {
checkpoint = fmt; checkpoint = fmt;
@ -949,29 +949,6 @@ reswitch:
flagc |= FLAGC_WIDTH; flagc |= FLAGC_WIDTH;
} }
goto reswitch; goto reswitch;
#if 0
case 'n': /* number of characters printed so far */
if (lm_flag & LF_J) /* j */
*(va_arg(ap, hcl_intmax_t*)) = data->count;
else if (lm_flag & LF_Z) /* z */
*(va_arg(ap, hcl_ooi_t*)) = data->count;
#if (HCL_SIZEOF_LONG_LONG > 0)
else if (lm_flag & LF_Q) /* ll */
*(va_arg(ap, long long int*)) = data->count;
#endif
else if (lm_flag & LF_L) /* l */
*(va_arg(ap, long int*)) = data->count;
else if (lm_flag & LF_H) /* h */
*(va_arg(ap, short int*)) = data->count;
else if (lm_flag & LF_C) /* hh */
*(va_arg(ap, char*)) = data->count;
else if (flagc & FLAGC_LENMOD)
goto invalid_format;
else
*(va_arg(ap, int*)) = data->count;
break;
#endif
/* integer conversions */ /* integer conversions */
case 'd': case 'd':
@ -986,7 +963,7 @@ reswitch:
base = 10; base = 10;
goto number; goto number;
case 'X': case 'X':
//sprintn = sprintn_upper; //sprintn = sprintn_upper; /* TODO: handle this */
case 'x': case 'x':
base = 16; base = 16;
goto number; goto number;