Changeset 1433ecda in mainline for uspace/app/bdsh/tok.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/tok.c
r47b2d7e3 r1433ecda 114 114 tok_push_token(tok); 115 115 116 } 117 else if (next_char == '|') { 116 } else if (next_char == '|') { 118 117 /* Pipes are tokens that are delimiters and should be 119 118 * output as a separate token … … 137 136 return rc; 138 137 } 139 } 140 else if (next_char == '\'') { 138 } else if (next_char == '\'') { 141 139 /* A string starts with a quote (') and ends again with a quote. 142 140 * A literal quote is written as '' … … 149 147 return rc; 150 148 } 151 } 152 else { 149 } else { 153 150 if (!tok_pending_chars(tok)) { 154 151 tok_start_token(tok, TOKTYPE_TEXT); … … 196 193 /* Swallow the additional one in the input */ 197 194 tok_get_char(tok); 198 } 199 else { 195 } else { 200 196 /* The string end */ 201 197 return tok_push_token(tok); 202 198 } 203 } 204 else { 199 } else { 205 200 rc = tok_push_char(tok, tok_get_char(tok)); 206 201 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.