Ignore:
Timestamp:
2009-06-03T19:34:45Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/printf_core.c

    r69e68e3 r98000fb  
    175175static int print_char(const char ch, int width, uint32_t flags, printf_spec_t *ps)
    176176{
    177         count_t counter = 0;
     177        size_t counter = 0;
    178178        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
    179179                while (--width > 0) {
     
    213213static int print_wchar(const wchar_t ch, int width, uint32_t flags, printf_spec_t *ps)
    214214{
    215         count_t counter = 0;
     215        size_t counter = 0;
    216216        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
    217217                while (--width > 0) {
     
    256256
    257257        /* Print leading spaces. */
    258         count_t strw = str_length(str);
     258        size_t strw = str_length(str);
    259259        if (precision == 0)
    260260                precision = strw;
    261261
    262262        /* Left padding */
    263         count_t counter = 0;
     263        size_t counter = 0;
    264264        width -= precision;
    265265        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    312312       
    313313        /* Left padding */
    314         count_t counter = 0;
     314        size_t counter = 0;
    315315        width -= precision;
    316316        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    434434       
    435435        width -= precision + size - number_size;
    436         count_t counter = 0;
     436        size_t counter = 0;
    437437       
    438438        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    597597        size_t j = 0;    /* Index to the first not printed nonformating character */
    598598       
    599         count_t counter = 0;  /* Number of characters printed */
     599        size_t counter = 0;   /* Number of characters printed */
    600600        int retval;           /* Return values from nested functions */
    601601       
Note: See TracChangeset for help on using the changeset viewer.