Skip to content

Commit 08cabca

Browse files
committed
license header should be at the top; add source repo for attribution purposes and update musl home page
1 parent de008de commit 08cabca

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/myfnmatch.c

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
#include "myfnmatch.h"
2-
#ifndef HAS_FNMATCH
31
/*
4-
* Lifted from musl commit efa9d396f9d3af6c6f85ec86302b48206c574a38,
5-
* root/src/regex/fnmatch.c, under a GPLv3-compatible license.
6-
*
7-
* mfakto-specific changes: deleted unnecessary flags
8-
* Copyright (c) 2025 Mingye Wang
2+
* Lifted from musl under a GPLv3-compatible license.
93
*
10-
* musl (www.musl-libc.org)
11-
* Copyright (C) 2012-2013 Rich Felker
4+
* Source repo: https://git.musl-libc.org/cgit/musl
5+
* Commit ID: efa9d396f9d3af6c6f85ec86302b48206c574a38
6+
* Path: src/regex/fnmatch.c
7+
*
8+
* musl
9+
* Home page: https://musl.libc.org
10+
* Copyright (c) 2012-2013 Rich Felker
1211
* SPDX-License-Identifier: MIT
1312
*
13+
* mfakto-specific changes: deleted unnecessary flags
14+
* Copyright (c) 2025 Mingye Wang
15+
*/
16+
#include "myfnmatch.h"
17+
#ifndef HAS_FNMATCH
18+
/*
1419
* An implementation of what I call the "Sea of Stars" algorithm for
1520
* POSIX fnmatch(). The basic idea is that we factor the pattern into
1621
* a head component (which we match first and can reject without ever

0 commit comments

Comments
 (0)