Changes in uspace/lib/posix/fnmatch.c [a12f7f1:a43fbc95] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fnmatch.c
ra12f7f1 ra43fbc95 30 30 * @{ 31 31 */ 32 /** @file Filename-matching.32 /** @file 33 33 */ 34 34 … … 45 45 #include "internal/common.h" 46 46 #include "fnmatch.h" 47 48 // TODO: documentation49 47 50 48 #define INVALID_PATTERN -1 … … 171 169 }; 172 170 173 /**174 *175 * @param key176 * @param elem177 * @return178 */179 171 static int _class_compare(const void *key, const void *elem) 180 172 { … … 183 175 } 184 176 185 /**186 *187 * @param cname188 * @param c189 * @return190 */191 177 static bool _is_in_class (const char *cname, int c) 192 178 { … … 205 191 } 206 192 207 /**208 *209 * @param pattern210 * @param str211 * @param flags212 * @return213 */214 193 static int _match_char_class(const char **pattern, const char *str, int flags) 215 194 { … … 225 204 /************** END CHARACTER CLASSES ****************/ 226 205 227 /**228 *229 * @param pattern230 * @param flags231 * @return232 */233 206 static _coll_elm_t _next_coll_elm(const char **pattern, int flags) 234 207 { … … 267 240 268 241 /** 269 * 270 * @param pattern 271 * @param str 272 * @param flags 273 * @return 242 * 274 243 */ 275 244 static int _match_bracket_expr(const char **pattern, const char *str, int flags) … … 358 327 359 328 /** 360 * 361 * @param pattern 362 * @param string 363 * @param flags 364 * @return 329 * 365 330 */ 366 331 static bool _partial_match(const char **pattern, const char **string, int flags) … … 456 421 } 457 422 458 /**459 *460 * @param pattern461 * @param string462 * @param flags463 * @return464 */465 423 static bool _full_match(const char *pattern, const char *string, int flags) 466 424 { … … 518 476 } 519 477 520 /**521 *522 * @param s523 * @return524 */525 478 static char *_casefold(const char *s) 526 479 { … … 553 506 554 507 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); 561 510 } 562 511 … … 655 604 /** @} 656 605 */ 606
Note:
See TracChangeset
for help on using the changeset viewer.