diff options
author | トトも <85485984+ElectronicsArchiver@users.noreply.github.com> | 2022-04-16 20:18:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 14:18:56 -0400 |
commit | 33cc3b9dd7bf3dae1c6cf86e46bb4923f96e7fff (patch) | |
tree | 02fb808d19aee560ac9d381ca5a52509881cdd44 | |
parent | 8f5a73a6585bd425807430fd80ce1e3a737f4c5f (diff) |
Source / Include Folder (#88)
Moved Source Files Into `src` Folder
-rw-r--r-- | .github/workflows/codecov.yml | 2 | ||||
-rw-r--r-- | CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | src/bar.c (renamed from bar.c) | 0 | ||||
-rw-r--r-- | src/bar.h (renamed from bar.h) | 0 | ||||
-rw-r--r-- | src/bfs.h (renamed from bfs.h) | 0 | ||||
-rw-r--r-- | src/bftw.c (renamed from bftw.c) | 0 | ||||
-rw-r--r-- | src/bftw.h (renamed from bftw.h) | 0 | ||||
-rw-r--r-- | src/color.c (renamed from color.c) | 0 | ||||
-rw-r--r-- | src/color.h (renamed from color.h) | 0 | ||||
-rw-r--r-- | src/ctx.c (renamed from ctx.c) | 0 | ||||
-rw-r--r-- | src/ctx.h (renamed from ctx.h) | 0 | ||||
-rw-r--r-- | src/darray.c (renamed from darray.c) | 0 | ||||
-rw-r--r-- | src/darray.h (renamed from darray.h) | 0 | ||||
-rw-r--r-- | src/diag.c (renamed from diag.c) | 0 | ||||
-rw-r--r-- | src/diag.h (renamed from diag.h) | 0 | ||||
-rw-r--r-- | src/dir.c (renamed from dir.c) | 0 | ||||
-rw-r--r-- | src/dir.h (renamed from dir.h) | 0 | ||||
-rw-r--r-- | src/dstring.c (renamed from dstring.c) | 0 | ||||
-rw-r--r-- | src/dstring.h (renamed from dstring.h) | 0 | ||||
-rw-r--r-- | src/eval.c (renamed from eval.c) | 0 | ||||
-rw-r--r-- | src/eval.h (renamed from eval.h) | 0 | ||||
-rw-r--r-- | src/exec.c (renamed from exec.c) | 0 | ||||
-rw-r--r-- | src/exec.h (renamed from exec.h) | 0 | ||||
-rw-r--r-- | src/expr.h (renamed from expr.h) | 0 | ||||
-rw-r--r-- | src/fsade.c (renamed from fsade.c) | 0 | ||||
-rw-r--r-- | src/fsade.h (renamed from fsade.h) | 0 | ||||
-rw-r--r-- | src/main.c (renamed from main.c) | 0 | ||||
-rw-r--r-- | src/mtab.c (renamed from mtab.c) | 0 | ||||
-rw-r--r-- | src/mtab.h (renamed from mtab.h) | 0 | ||||
-rw-r--r-- | src/opt.c (renamed from opt.c) | 0 | ||||
-rw-r--r-- | src/opt.h (renamed from opt.h) | 0 | ||||
-rw-r--r-- | src/parse.c (renamed from parse.c) | 0 | ||||
-rw-r--r-- | src/parse.h (renamed from parse.h) | 0 | ||||
-rw-r--r-- | src/printf.c (renamed from printf.c) | 0 | ||||
-rw-r--r-- | src/printf.h (renamed from printf.h) | 0 | ||||
-rw-r--r-- | src/pwcache.c (renamed from pwcache.c) | 0 | ||||
-rw-r--r-- | src/pwcache.h (renamed from pwcache.h) | 0 | ||||
-rw-r--r-- | src/stat.c (renamed from stat.c) | 0 | ||||
-rw-r--r-- | src/stat.h (renamed from stat.h) | 0 | ||||
-rw-r--r-- | src/trie.c (renamed from trie.c) | 0 | ||||
-rw-r--r-- | src/trie.h (renamed from trie.h) | 0 | ||||
-rw-r--r-- | src/typo.c (renamed from typo.c) | 0 | ||||
-rw-r--r-- | src/typo.h (renamed from typo.h) | 0 | ||||
-rw-r--r-- | src/util.c (renamed from util.c) | 0 | ||||
-rw-r--r-- | src/util.h (renamed from util.h) | 0 | ||||
-rw-r--r-- | src/xregex.c (renamed from xregex.c) | 0 | ||||
-rw-r--r-- | src/xregex.h (renamed from xregex.h) | 0 | ||||
-rw-r--r-- | src/xspawn.c (renamed from xspawn.c) | 0 | ||||
-rw-r--r-- | src/xspawn.h (renamed from xspawn.h) | 0 | ||||
-rw-r--r-- | src/xtime.c (renamed from xtime.c) | 0 | ||||
-rw-r--r-- | src/xtime.h (renamed from xtime.h) | 0 | ||||
-rw-r--r-- | tests/trie.c | 2 | ||||
-rw-r--r-- | tests/xtimegm.c | 2 |
54 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 70cbcd1..742a3c1 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -25,7 +25,7 @@ jobs: - name: Generate coverage run: | make -j$(nproc) gcov check - gcov -abcfu *.c tests/*.c + gcov -abcfu src/*.c tests/*.c - uses: codecov/codecov-action@v2 with: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d4244ae..28bfac2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -138,7 +138,7 @@ Hacking `bfs` is written in [C](https://en.wikipedia.org/wiki/C_(programming_language)), specifically [C11](https://en.wikipedia.org/wiki/C11_(C_standard_revision)). You can get a feel for the coding style by skimming the source code. -[`main.c`](/main.c) contains an overview of the rest of source files. +[`main.c`](src/main.c) contains an overview of the rest of source files. A quick summary: - Tabs for indentation, spaces for alignment. @@ -232,7 +232,10 @@ tests/xtimegm: xtime.o tests/xtimegm.o $(BIN_GOALS): +$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@ -%.o: %.c .flags +%.o: src/%.c .flags + $(CC) $(ALL_CFLAGS) -c $< -o $@ + +tests/%.o: tests/%.c .flags $(CC) $(ALL_CFLAGS) -c $< -o $@ # Need a rule for .flags to convince make to apply the above pattern rule if diff --git a/dstring.c b/src/dstring.c index f344d09..f344d09 100644 --- a/dstring.c +++ b/src/dstring.c diff --git a/dstring.h b/src/dstring.h index 54106f3..54106f3 100644 --- a/dstring.h +++ b/src/dstring.h diff --git a/pwcache.c b/src/pwcache.c index 91435bd..91435bd 100644 --- a/pwcache.c +++ b/src/pwcache.c diff --git a/pwcache.h b/src/pwcache.h index f1a1db3..f1a1db3 100644 --- a/pwcache.h +++ b/src/pwcache.h diff --git a/tests/trie.c b/tests/trie.c index 4326196..0158fd8 100644 --- a/tests/trie.c +++ b/tests/trie.c @@ -16,7 +16,7 @@ #undef NDEBUG -#include "../trie.h" +#include "../src/trie.h" #include <assert.h> #include <stdlib.h> #include <string.h> diff --git a/tests/xtimegm.c b/tests/xtimegm.c index f4e28ee..d774b9e 100644 --- a/tests/xtimegm.c +++ b/tests/xtimegm.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ****************************************************************************/ -#include "../xtime.h" +#include "../src/xtime.h" #include <stdbool.h> #include <stdint.h> #include <stdio.h> |