Changeset 948222e4 in mainline for uspace/lib/c/generic/str.c


Ignore:
Timestamp:
2018-03-14T12:04:14Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
963037b0
Parents:
5b61171
git-author:
Jiri Svoboda <jiri@…> (2018-03-13 17:02:57)
git-committer:
Jiri Svoboda <jiri@…> (2018-03-14 12:04:14)
Message:

A few more cases of for loops without iteration expression (which isn't really a for loop).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    r5b61171 r948222e4  
    13601360
    13611361        /* Skip over leading delimiters. */
    1362         for (tmp = cur = 0;
    1363             (ch = str_decode(s, &tmp, len)) && str_chr(delim, ch); /**/)
     1362        tmp = 0;
     1363        cur = 0;
     1364        while ((ch = str_decode(s, &tmp, len)) && str_chr(delim, ch))
    13641365                cur = tmp;
    13651366        start = &s[cur];
    13661367
    13671368        /* Skip over token characters. */
    1368         for (tmp = cur;
    1369             (ch = str_decode(s, &tmp, len)) && !str_chr(delim, ch); /**/)
     1369        tmp = cur;
     1370        while ((ch = str_decode(s, &tmp, len)) && !str_chr(delim, ch))
    13701371                cur = tmp;
    13711372        end = &s[cur];
Note: See TracChangeset for help on using the changeset viewer.