Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/fnmatch.c

    ra12f7f1 ra43fbc95  
    3030 * @{
    3131 */
    32 /** @file Filename-matching.
     32/** @file
    3333 */
    3434
     
    4545#include "internal/common.h"
    4646#include "fnmatch.h"
    47 
    48 // TODO: documentation
    4947
    5048#define INVALID_PATTERN -1
     
    171169};
    172170
    173 /**
    174  *
    175  * @param key
    176  * @param elem
    177  * @return
    178  */
    179171static int _class_compare(const void *key, const void *elem)
    180172{
     
    183175}
    184176
    185 /**
    186  *
    187  * @param cname
    188  * @param c
    189  * @return
    190  */
    191177static bool _is_in_class (const char *cname, int c)
    192178{
     
    205191}
    206192
    207 /**
    208  *
    209  * @param pattern
    210  * @param str
    211  * @param flags
    212  * @return
    213  */
    214193static int _match_char_class(const char **pattern, const char *str, int flags)
    215194{
     
    225204/************** END CHARACTER CLASSES ****************/
    226205
    227 /**
    228  *
    229  * @param pattern
    230  * @param flags
    231  * @return
    232  */
    233206static _coll_elm_t _next_coll_elm(const char **pattern, int flags)
    234207{
     
    267240
    268241/**
    269  *
    270  * @param pattern
    271  * @param str
    272  * @param flags
    273  * @return
     242 *
    274243 */
    275244static int _match_bracket_expr(const char **pattern, const char *str, int flags)
     
    358327
    359328/**
    360  *
    361  * @param pattern
    362  * @param string
    363  * @param flags
    364  * @return
     329 *
    365330 */
    366331static bool _partial_match(const char **pattern, const char **string, int flags)
     
    456421}
    457422
    458 /**
    459  *
    460  * @param pattern
    461  * @param string
    462  * @param flags
    463  * @return
    464  */
    465423static bool _full_match(const char *pattern, const char *string, int flags)
    466424{
     
    518476}
    519477
    520 /**
    521  *
    522  * @param s
    523  * @return
    524  */
    525478static char *_casefold(const char *s)
    526479{
     
    553506
    554507        if ((flags & FNM_CASEFOLD) != 0) {
    555                 if (pattern) {
    556                         free((char *) pattern);
    557                 }
    558                 if (string) {
    559                         free((char *) string);
    560                 }
     508                free((char *) pattern);
     509                free((char *) string);
    561510        }
    562511
     
    655604/** @}
    656605 */
     606
Note: See TracChangeset for help on using the changeset viewer.