Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/sheet.c

    r7c3fb9b r28a5ebd  
    7979
    8080        sh->data = malloc(sh->dbuf_size);
    81         if (sh->data == NULL)
     81        if (sh->data == NULL) {
     82                free(sh);
    8283                return ENOMEM;
     84        }
    8385
    8486        list_initialize(&sh->tags);
     
    193195        size_t copy_sz;
    194196        size_t off, prev;
    195         wchar_t c;
     197        char32_t c;
    196198
    197199        spp = sh->data + spos->b_off;
     
    220222{
    221223        size_t cur_pos, prev_pos;
    222         wchar_t c;
     224        char32_t c;
    223225        coord_t cc;
    224226
     
    289291        size_t off;
    290292        coord_t cc;
    291         wchar_t c;
     293        char32_t c;
    292294        sheet_t *sh;
    293295
     
    318320
    319321/** 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);
     322char32_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);
    323325        if (next)
    324326                *next = spt;
     
    326328}
    327329
    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);
     330char32_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);
    331333        if (prev)
    332334                *prev = spt;
Note: See TracChangeset for help on using the changeset viewer.