Changeset 1531


Ignore:
Timestamp:
Sep 28, 2004, 5:24:16 AM (21 years ago)
Author:
bird
Message:

New size prefixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/io/_output.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1530 r1531  
    1717#define FALSE           0
    1818#define TRUE            1
     19
     20
     21
    1922
    2023#define DEFAULT_PREC    6
     
    695698{
    696699  olocal v;
    697   char size, cont;
     700  int size;
     701  char cont;
    698702  unsigned char c;
    699703  int mbn, shift;
     
    818822        /* Size */
    819823
    820         if (*format == 'h' || *format == 'l' || *format == 'L')
     824        if (   *format == 'h' || *format == 'l' || *format == 'L'
     825            || *format == 'j' || *format == 'z' || *format == 't'
     826            || *format == 'q' || *format == 'Z' )
    821827          {
    822828            size = *format++;
    823829            if (size == 'l' && *format == 'l')
    824830              {
    825                 size = 'L'; ++format;
    826               }
     831                size = SIZE_LL; ++format;
     832              }
     833            else if (size == 'h' && *format == 'h')
     834              {
     835                size = SIZE_HH; ++format;
     836              }
     837            else if (size == 'q' || size == 'j')
     838                size = SIZE_LL;
     839            else if (size == 'z' || size == 'Z' || size == 't')
     840                size = 'l';
    827841          }
    828842
     
    835849
    836850          case 'n':
    837             if (size == 'L')
     851            if (size == 'L')
    838852              {
    839853                long long *ptr = va_arg (arg_ptr, long long *);