Changeset 9bfb74a in mainline for uspace/app/bdsh/tok.c
- Timestamp:
- 2024-11-28T23:11:39Z (3 days ago)
- Parents:
- 12dd36c (diff), 12f5a1be (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Manuele Conti <conti.manuele@…> (2024-11-28 23:11:39)
- git-committer:
- GitHub <noreply@…> (2024-11-28 23:11:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/tok.c
r12dd36c r9bfb74a 138 138 return rc; 139 139 } 140 } else if (next_char == '\'') { 140 } else if (next_char == '<') { 141 if (tok_pending_chars(tok)) { 142 rc = tok_push_token(tok); 143 if (rc != EOK) { 144 return rc; 145 } 146 } 147 148 tok_start_token(tok, TOKTYPE_RDIN); 149 150 rc = tok_push_char(tok, tok_get_char(tok)); 151 if (rc != EOK) { 152 return rc; 153 } 154 155 rc = tok_push_token(tok); 156 if (rc != EOK) { 157 return rc; 158 } 159 } else if (next_char == '>') { 160 if (tok_pending_chars(tok)) { 161 rc = tok_push_token(tok); 162 if (rc != EOK) { 163 return rc; 164 } 165 } 166 167 tok_start_token(tok, TOKTYPE_RDOU); 168 169 rc = tok_push_char(tok, tok_get_char(tok)); 170 if (rc != EOK) { 171 return rc; 172 } 173 174 rc = tok_push_token(tok); 175 if (rc != EOK) { 176 return rc; 177 } 178 } else if (next_char == '\'') { 141 179 /* 142 180 * A string starts with a quote (') and ends again with a quote.
Note:
See TracChangeset
for help on using the changeset viewer.