Changeset 1433ecda in mainline for uspace/app/bdsh/tok.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/tok.c

    r47b2d7e3 r1433ecda  
    114114                        tok_push_token(tok);
    115115
    116                 }
    117                 else if (next_char == '|') {
     116                } else if (next_char == '|') {
    118117                        /* Pipes are tokens that are delimiters and should be
    119118                         * output as a separate token
     
    137136                                return rc;
    138137                        }
    139                 }
    140                 else if (next_char == '\'') {
     138                } else if (next_char == '\'') {
    141139                        /* A string starts with a quote (') and ends again with a quote.
    142140                         * A literal quote is written as ''
     
    149147                                return rc;
    150148                        }
    151                 }
    152                 else {
     149                } else {
    153150                        if (!tok_pending_chars(tok)) {
    154151                                tok_start_token(tok, TOKTYPE_TEXT);
     
    196193                                /* Swallow the additional one in the input */
    197194                                tok_get_char(tok);
    198                         }
    199                         else {
     195                        } else {
    200196                                /* The string end */
    201197                                return tok_push_token(tok);
    202198                        }
    203                 }
    204                 else {
     199                } else {
    205200                        rc = tok_push_char(tok, tok_get_char(tok));
    206201                        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.