Changeset e102943 in buchla-68k for iolib/dofmt.c
- Timestamp:
- 07/15/2017 11:33:07 AM (7 years ago)
- Branches:
- master
- Children:
- d18a473
- Parents:
- dade7a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
iolib/dofmt.c
rdade7a0 re102943 32 32 #define tonum(x) ((x)-'0') 33 33 #define todigit(x) ((x)+'0') 34 #define max(a,b) ((a)>(b)?(a):(b))35 #define min(a,b) ((a)<(b)?(a):(b))36 34 37 35 int32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args) … … 71 69 ; 72 70 73 if ( n = (int32_t)format - (int32_t)bp) {71 if ((n = (int32_t)format - (int32_t)bp)) { 74 72 75 73 count += n; … … 168 166 fixed: 169 167 170 if (prec < 0) 168 if (prec < 0) { 171 169 if (flzero AND width > 0) 172 170 prec = width; 173 171 else 174 172 prec = 1; 173 } 175 174 176 175 if (length) … … 265 264 266 265 default: 267 buf[0] = fcode;266 buf[0] = (int8_t)fcode; 268 267 goto c_merge; 269 268 270 269 case 'c': 271 buf[0] = va_arg(args, int16_t);270 buf[0] = (int8_t)va_arg(args, int16_t); 272 271 273 272 c_merge:
Note:
See TracChangeset
for help on using the changeset viewer.