Ignore:
Timestamp:
2009-03-31T22:51:41Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce87a8aa
Parents:
b54d2f1
Message:

Start converting string functions according to the terminology agreed upon.

File:
1 edited

Legend:

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

    rb54d2f1 re1813cf  
    595595        while (true) {
    596596                i = nxt;
    597                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     597                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    598598
    599599                if (uc == '\0') break;
     
    619619                        do {
    620620                                i = nxt;
    621                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     621                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    622622                                switch (uc) {
    623623                                case '#':
     
    649649
    650650                                        i = nxt;
    651                                         uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     651                                        uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    652652                                        if (uc == '\0')
    653653                                                break;
     
    658658                                /* Get width value from argument list */
    659659                                i = nxt;
    660                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     660                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    661661                                width = (int) va_arg(ap, int);
    662662                                if (width < 0) {
     
    671671                        if (uc == '.') {
    672672                                i = nxt;
    673                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     673                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    674674                                if (isdigit(uc)) {
    675675                                        while (true) {
     
    678678
    679679                                                i = nxt;
    680                                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     680                                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    681681                                                if (uc == '\0')
    682682                                                        break;
     
    687687                                        /* Get precision value from the argument list */
    688688                                        i = nxt;
    689                                         uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     689                                        uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    690690                                        precision = (int) va_arg(ap, int);
    691691                                        if (precision < 0) {
     
    706706                                qualifier = PrintfQualifierShort;
    707707                                i = nxt;
    708                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     708                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    709709                                if (uc == 'h') {
    710710                                        i = nxt;
    711                                         uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     711                                        uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    712712                                        qualifier = PrintfQualifierByte;
    713713                                }
     
    717717                                qualifier = PrintfQualifierLong;
    718718                                i = nxt;
    719                                 uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     719                                uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    720720                                if (uc == 'l') {
    721721                                        i = nxt;
    722                                         uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT);
     722                                        uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT);
    723723                                        qualifier = PrintfQualifierLongLong;
    724724                                }
Note: See TracChangeset for help on using the changeset viewer.