/*--------------------------------------------------------------------------*/
#ifdef SDCC_STACK_AUTO
- #define OUTPUT_2DIGITS( B ) { output_2digits( B, lower_case, output_char, p ); charsOutputted += 2; }
+ #define OUTPUT_2DIGITS( B ) { output_2digits( B, lower_case, output_char, p ); charsOutputted += 2; }
static void output_2digits( unsigned char b, BOOL lower_case, pfn_outputchar output_char, void* p )
{
output_digit( b>>4, lower_case, output_char, p );
output_digit( b&0x0F, lower_case, output_char, p );
}
#else
- #define OUTPUT_2DIGITS( B ) output_2digits( B )
+ #define OUTPUT_2DIGITS( B ) output_2digits( B )
static void output_2digits( unsigned char b )
{
output_digit( b>>4 );
#define DEFAULT_FLOAT_PRECISION 6
#ifdef SDCC_STACK_AUTO
-#define OUTPUT_FLOAT(F, W, D, L, Z, S, P) output_float(F, W, D, L, Z, S, P, output_char, p)
+#define OUTPUT_FLOAT(F, W, D, L, Z, S, P) output_float(F, W, D, L, Z, S, P, output_char, p)
static unsigned char
output_float (float f, unsigned char reqWidth,
signed char reqDecimals,
char fpBuffer[128];
#endif
#else
-#define OUTPUT_FLOAT(F, W, D, L, Z, S, P) output_float(F, W, D, L, Z, S, P)
+#define OUTPUT_FLOAT(F, W, D, L, Z, S, P) output_float(F, W, D, L, Z, S, P)
static void
output_float (float f, unsigned char reqWidth,
signed char reqDecimals,
goto get_conversion_spec;
case 'C':
- if( char_argument )
+ if( char_argument )
c = va_arg(ap,char);
else
c = va_arg(ap,int);
#if defined (SDCC_ds390)
{
unsigned char memtype = value.byte[3];
- if (memtype > 0x80)
+ if (memtype >= 0x80)
c = 'C';
- else if (memtype > 0x60)
+ else if (memtype >= 0x60)
c = 'P';
- else if (memtype > 0x40)
+ else if (memtype >= 0x40)
c = 'I';
else
c = 'X';
#elif defined (SDCC_mcs51)
{
unsigned char memtype = value.byte[2];
- if (memtype > 0x80)
+ if (memtype >= 0x80)
c = 'C';
- else if (memtype > 0x60)
+ else if (memtype >= 0x60)
c = 'P';
- else if (memtype > 0x40)
+ else if (memtype >= 0x40)
c = 'I';
else
c = 'X';