Changes in uspace/app/edit/sheet.c [28a5ebd:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/sheet.c
r28a5ebd r7c3fb9b 79 79 80 80 sh->data = malloc(sh->dbuf_size); 81 if (sh->data == NULL) { 82 free(sh); 81 if (sh->data == NULL) 83 82 return ENOMEM; 84 }85 83 86 84 list_initialize(&sh->tags); … … 195 193 size_t copy_sz; 196 194 size_t off, prev; 197 char32_t c;195 wchar_t c; 198 196 199 197 spp = sh->data + spos->b_off; … … 222 220 { 223 221 size_t cur_pos, prev_pos; 224 char32_t c;222 wchar_t c; 225 223 coord_t cc; 226 224 … … 291 289 size_t off; 292 290 coord_t cc; 293 char32_t c;291 wchar_t c; 294 292 sheet_t *sh; 295 293 … … 320 318 321 319 /** Get a character at spt and return next spt */ 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);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); 325 323 if (next) 326 324 *next = spt; … … 328 326 } 329 327 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);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); 333 331 if (prev) 334 332 *prev = spt;
Note:
See TracChangeset
for help on using the changeset viewer.