Changeset eb522e8 in mainline for uspace/lib/c/generic/io/printf_core.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/printf_core.c
r9e2e715 reb522e8 82 82 PrintfQualifierLong, 83 83 PrintfQualifierLongLong, 84 PrintfQualifierPointer 84 PrintfQualifierPointer, 85 PrintfQualifierSize 85 86 } qualifier_t; 86 87 … … 552 553 * - "" Signed or unsigned int (default value).@n 553 554 * - "l" Signed or unsigned long int.@n 554 * If conversion is "c", the character is w char_t (wide character).@n555 * If conversion is "c", the character is wint_t (wide character).@n 555 556 * If conversion is "s", the string is wchar_t * (wide string).@n 556 557 * - "ll" Signed or unsigned long long int.@n 558 * - "z" Signed or unsigned ssize_t or site_t.@n 557 559 * 558 560 * CONVERSION:@n … … 736 738 } 737 739 break; 740 case 'z': 741 qualifier = PrintfQualifierSize; 742 i = nxt; 743 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 744 break; 738 745 default: 739 746 /* Default type */ … … 763 770 case 'c': 764 771 if (qualifier == PrintfQualifierLong) 765 retval = print_wchar(va_arg(ap, w char_t), width, flags, ps);772 retval = print_wchar(va_arg(ap, wint_t), width, flags, ps); 766 773 else 767 774 retval = print_char(va_arg(ap, unsigned int), width, flags, ps); … … 849 856 precision = size << 1; 850 857 number = (uint64_t) (uintptr_t) va_arg(ap, void *); 858 break; 859 case PrintfQualifierSize: 860 size = sizeof(size_t); 861 number = (uint64_t) va_arg(ap, size_t); 851 862 break; 852 863 default:
Note:
See TracChangeset
for help on using the changeset viewer.