comparison target-utils/libprintf/doprnt.c @ 201:84611183c8c3

target-utils/libprintf: minor polish
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 19 Dec 2013 08:26:14 +0000
parents 40f607bb0a2c
children
comparison
equal deleted inserted replaced
200:2847b6cbd915 201:84611183c8c3
7 #define PUTC(ch) ((*outfunc)((ch), outfunc_param)) 7 #define PUTC(ch) ((*outfunc)((ch), outfunc_param))
8 8
9 #define ARG() \ 9 #define ARG() \
10 _ulong = flags&LONGINT ? va_arg(argp, long) : va_arg(argp, int); 10 _ulong = flags&LONGINT ? va_arg(argp, long) : va_arg(argp, int);
11 11
12 #define BUF 256 12 #define BUF 12
13 13
14 #define todigit(c) ((c) - '0') 14 #define todigit(c) ((c) - '0')
15 #define tochar(n) ((n) + '0') 15 #define tochar(n) ((n) + '0')
16
17 /* have to deal with the negative buffer count kludge */
18 #define NEGATIVE_COUNT_KLUDGE
19 16
20 #define LONGINT 0x01 /* long integer */ 17 #define LONGINT 0x01 /* long integer */
21 #define LONGDBL 0x02 /* long double; unimplemented */ 18 #define LONGDBL 0x02 /* long double; unimplemented */
22 #define SHORTINT 0x04 /* short integer */ 19 #define SHORTINT 0x04 /* short integer */
23 #define ALT 0x08 /* alternate form */ 20 #define ALT 0x08 /* alternate form */