Changes in uspace/dist/src/c/demos/edit/sheet.c [7c3fb9b:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/edit/sheet.c
r7c3fb9b r28a5ebd 193 193 size_t copy_sz; 194 194 size_t off, prev; 195 wchar_t c;195 char32_t c; 196 196 197 197 spp = sh->data + spos->b_off; … … 220 220 { 221 221 size_t cur_pos, prev_pos; 222 wchar_t c;222 char32_t c; 223 223 coord_t cc; 224 224 … … 289 289 size_t off; 290 290 coord_t cc; 291 wchar_t c;291 char32_t c; 292 292 sheet_t *sh; 293 293 … … 318 318 319 319 /** Get a character at spt and return next spt */ 320 wchar_t spt_next_char(spt_t spt, spt_t *next)321 { 322 wchar_t ch = str_decode(spt.sh->data, &spt.b_off, spt.sh->text_size);320 char32_t spt_next_char(spt_t spt, spt_t *next) 321 { 322 char32_t ch = str_decode(spt.sh->data, &spt.b_off, spt.sh->text_size); 323 323 if (next) 324 324 *next = spt; … … 326 326 } 327 327 328 wchar_t spt_prev_char(spt_t spt, spt_t *prev)329 { 330 wchar_t ch = str_decode_reverse(spt.sh->data, &spt.b_off, spt.sh->text_size);328 char32_t spt_prev_char(spt_t spt, spt_t *prev) 329 { 330 char32_t ch = str_decode_reverse(spt.sh->data, &spt.b_off, spt.sh->text_size); 331 331 if (prev) 332 332 *prev = spt;
Note:
See TracChangeset
for help on using the changeset viewer.