Changeset e330da6e in mainline
- Timestamp:
- 2017-03-30T06:33:22Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 907d91a
- Parents:
- 5b46ec8
- git-author:
- Supragya Raj <supragyaraj@…> (2017-03-30 06:33:22)
- git-committer:
- Jakub Jermar <jakub@…> (2017-03-30 06:33:22)
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/include/types.h
r5b46ec8 re330da6e 45 45 typedef uint32_t pfn_t; 46 46 47 typedef int32_t ptrdiff_t; 48 47 49 typedef struct { 48 50 /** Address where the task was placed. */ -
boot/arch/ia64/include/types.h
r5b46ec8 re330da6e 40 40 typedef uint64_t uintptr_t; 41 41 42 typedef int64_t ptrdiff_t; 43 42 44 typedef struct { 43 45 void *addr; -
boot/arch/mips32/include/types.h
r5b46ec8 re330da6e 37 37 typedef uint32_t uintptr_t; 38 38 39 typedef int32_t ptrdiff_t; 40 39 41 typedef struct { 40 42 /** Address where the task was placed. */ -
boot/arch/ppc32/include/types.h
r5b46ec8 re330da6e 38 38 typedef int32_t native_t; 39 39 40 typedef int32_t ptrdiff_t; 41 40 42 typedef struct { 41 43 void *addr; -
boot/arch/riscv64/include/types.h
r5b46ec8 re330da6e 37 37 typedef uint64_t uintptr_t; 38 38 39 typedef int64_t ptrdiff_t; 40 39 41 typedef struct { 40 42 void *start; -
boot/arch/sparc64/include/types.h
r5b46ec8 re330da6e 38 38 typedef int64_t native_t; 39 39 40 typedef int64_t ptrdiff_t; 41 40 42 typedef struct { 41 43 void *addr; -
boot/generic/src/printf_core.c
r5b46ec8 re330da6e 605 605 606 606 switch (uc) { 607 /** @todo Unimplemented qualifiers: 608 * t ptrdiff_t - ISO C 99 609 */ 607 case 't': 608 /* ptrdiff_t */ 609 if (sizeof(ptrdiff_t) == sizeof(int32_t)) 610 qualifier = PrintfQualifierInt; 611 else 612 qualifier = PrintfQualifierLongLong; 610 613 case 'h': 611 614 /* Char or short */ -
kernel/generic/include/typedefs.h
r5b46ec8 re330da6e 61 61 typedef volatile uint32_t ioport32_t; 62 62 63 typedef native_t ptrdiff_t; 64 63 65 #ifdef __32_BITS__ 64 66 -
kernel/generic/src/printf/printf_core.c
r5b46ec8 re330da6e 733 733 734 734 switch (uc) { 735 /** @todo Unimplemented qualifiers: 736 * t ptrdiff_t - ISO C 99 737 */ 735 case 't': 736 /* ptrdiff_t */ 737 if (sizeof(ptrdiff_t) == sizeof(int32_t)) 738 qualifier = PrintfQualifierInt; 739 else 740 qualifier = PrintfQualifierLongLong; 738 741 case 'h': 739 742 /* Char or short */ -
kernel/test/print/print2.c
r5b46ec8 re330da6e 52 52 TPRINTF("Real output: [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21); 53 53 54 char ch[12]; 55 ptrdiff_t d, neg_d; 56 57 d = &ch[0] - &ch[12]; 58 neg_d = (unsigned)(-d); 59 TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n"); 60 TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n"); 61 TPRINTF("Real output: [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d); 62 54 63 sysarg_t nat = UINTN_C(0x12345678); 55 64 -
uspace/app/tester/print/print2.c
r5b46ec8 re330da6e 53 53 TPRINTF("Real output: [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21); 54 54 55 char ch[12]; 56 ptrdiff_t d, neg_d; 57 58 d = &ch[0] - &ch[12]; 59 neg_d = (unsigned)(-d); 60 TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n"); 61 TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n"); 62 TPRINTF("Real output: [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d); 63 55 64 return NULL; 56 65 } -
uspace/lib/c/generic/io/printf_core.c
r5b46ec8 re330da6e 1448 1448 1449 1449 switch (uc) { 1450 /** @todo Unimplemented qualifiers: 1451 * t ptrdiff_t - ISO C 99 1452 */ 1450 case 't': 1451 /* ptrdiff_t */ 1452 if (sizeof(ptrdiff_t) == sizeof(int32_t)) 1453 qualifier = PrintfQualifierInt; 1454 else 1455 qualifier = PrintfQualifierLongLong; 1453 1456 case 'h': 1454 1457 /* Char or short */
Note:
See TracChangeset
for help on using the changeset viewer.