Ignore:
File:
1 edited

Legend:

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

    r28a5ebd r7c3fb9b  
    7979
    8080        sh->data = malloc(sh->dbuf_size);
    81         if (sh->data == NULL) {
    82                 free(sh);
     81        if (sh->data == NULL)
    8382                return ENOMEM;
    84         }
    8583
    8684        list_initialize(&sh->tags);
     
    195193        size_t copy_sz;
    196194        size_t off, prev;
    197         char32_t c;
     195        wchar_t c;
    198196
    199197        spp = sh->data + spos->b_off;
     
    222220{
    223221        size_t cur_pos, prev_pos;
    224         char32_t c;
     222        wchar_t c;
    225223        coord_t cc;
    226224
     
    291289        size_t off;
    292290        coord_t cc;
    293         char32_t c;
     291        wchar_t c;
    294292        sheet_t *sh;
    295293
     
    320318
    321319/** 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);
     320wchar_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);
    325323        if (next)
    326324                *next = spt;
     
    328326}
    329327
    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);
     328wchar_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);
    333331        if (prev)
    334332                *prev = spt;
Note: See TracChangeset for help on using the changeset viewer.