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