Changeset 28a5ebd in mainline for uspace/app/edit/sheet.c
- Timestamp:
- 2020-06-18T15:39:50Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/sheet.c
r4f663f3e r28a5ebd 195 195 size_t copy_sz; 196 196 size_t off, prev; 197 wchar_t c;197 char32_t c; 198 198 199 199 spp = sh->data + spos->b_off; … … 222 222 { 223 223 size_t cur_pos, prev_pos; 224 wchar_t c;224 char32_t c; 225 225 coord_t cc; 226 226 … … 291 291 size_t off; 292 292 coord_t cc; 293 wchar_t c;293 char32_t c; 294 294 sheet_t *sh; 295 295 … … 320 320 321 321 /** Get a character at spt and return next spt */ 322 wchar_t spt_next_char(spt_t spt, spt_t *next)323 { 324 wchar_t ch = str_decode(spt.sh->data, &spt.b_off, spt.sh->text_size);322 char32_t spt_next_char(spt_t spt, spt_t *next) 323 { 324 char32_t ch = str_decode(spt.sh->data, &spt.b_off, spt.sh->text_size); 325 325 if (next) 326 326 *next = spt; … … 328 328 } 329 329 330 wchar_t spt_prev_char(spt_t spt, spt_t *prev)331 { 332 wchar_t ch = str_decode_reverse(spt.sh->data, &spt.b_off, spt.sh->text_size);330 char32_t spt_prev_char(spt_t spt, spt_t *prev) 331 { 332 char32_t ch = str_decode_reverse(spt.sh->data, &spt.b_off, spt.sh->text_size); 333 333 if (prev) 334 334 *prev = spt;
Note:
See TracChangeset
for help on using the changeset viewer.