- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- Location:
- iolib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
iolib/dofmt.c
r7d0d347 r8973acd 33 33 #define todigit(x) ((x)+'0') 34 34 35 int 32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args)35 int16_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args) 36 36 { 37 37 register int16_t fcode; 38 38 39 int 32_t k,39 int16_t k, 40 40 n, 41 41 lzero, … … 69 69 ; 70 70 71 if ((n = (int 32_t)format - (int32_t)bp)) {71 if ((n = (int16_t)(format - bp))) { 72 72 73 73 count += n; … … 244 244 } 245 245 246 lzero = (int 32_t)bp - (int32_t)p + (int32_t)prec;246 lzero = (int16_t)(bp - p + prec); 247 247 248 248 if (fsharp AND bp NE p) … … 297 297 lzero = 0; 298 298 299 k = (n = (int 32_t)p - (int32_t)bp) + (int32_t)(lzero +299 k = (n = (int16_t)(p - bp)) + (lzero + 300 300 (prefix[0] EQ '\0' ? 0 : (prefix[1] EQ '\0' ? 1 : 2))); 301 301 -
iolib/dofmt.x
r7d0d347 r8973acd 16 16 */ 17 17 18 extern int 32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args);18 extern int16_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args); -
iolib/printf.c
r7d0d347 r8973acd 23 23 */ 24 24 25 int 32_t printf(int8_t *fmt, ...)25 int16_t printf(int8_t *fmt, ...) 26 26 { 27 register int 32_t count;27 register int16_t count; 28 28 va_list aptr; 29 29 -
iolib/printf.x
r7d0d347 r8973acd 15 15 */ 16 16 17 extern int 32_t printf(int8_t *fmt, ...);17 extern int16_t printf(int8_t *fmt, ...); -
iolib/sprintf.c
r7d0d347 r8973acd 17 17 */ 18 18 19 int 32_t sprintf(int8_t *str, int8_t *fmt, ...)19 int16_t sprintf(int8_t *str, int8_t *fmt, ...) 20 20 { 21 register int 32_t count;21 register int16_t count; 22 22 va_list aptr; 23 23 -
iolib/sprintf.x
r7d0d347 r8973acd 15 15 */ 16 16 17 extern int 32_t sprintf(int8_t *str, int8_t *fmt, ...);17 extern int16_t sprintf(int8_t *str, int8_t *fmt, ...);
Note:
See TracChangeset
for help on using the changeset viewer.