Ignore:
File:
1 edited

Legend:

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

    r5a6cc679 ra35b458  
    4949        if (search == NULL)
    5050                return NULL;
    51        
     51
    5252        wchar_t *p = str_to_awstr(pattern);
    5353        if (p == NULL) {
     
    5555                return NULL;
    5656        }
    57        
     57
    5858        search->pattern_length = wstr_length(p);
    59        
     59
    6060        if (reverse) {
    6161                /* Reverse the pattern */
     
    6868                }
    6969        }
    70        
     70
    7171        search->pattern = p;
    72        
     72
    7373        search->client_data = client_data;
    7474        search->ops = ops;
     
    7979                return NULL;
    8080        }
    81        
     81
    8282        search->pattern_pos = 0;
    83        
     83
    8484        search->back_table[0] = -1;
    8585        search->back_table[1] = 0;
     
    101101                }
    102102        }
    103        
     103
    104104        return search;
    105105}
     
    108108{
    109109        search_equals_fn eq = s->ops.equals;
    110        
     110
    111111        wchar_t cur_char;
    112112        errno_t rc = EOK;
     
    129129                }
    130130        }
    131        
     131
    132132        match->end = NULL;
    133133        match->length = 0;
    134        
     134
    135135        return rc;
    136136}
     
    140140        free(search->pattern);
    141141        free(search->back_table);
    142        
     142
    143143}
    144144
Note: See TracChangeset for help on using the changeset viewer.