Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit e8db19e

Browse files
committed
80 lines refactor, and new repo folder layout.
1 parent 5cb873a commit e8db19e

20 files changed

+1403
-1199
lines changed

.github/workflows/makefile_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
pip install lizard
2525
2626
- name: Build with GCC
27-
run: gcc -O3 -Wall -Wextra -Werror -Wno-unused-result -o proj1 *.c
27+
run: gcc -O3 -Wall -Wextra -Werror -Wno-unused-result -o ./src/proj1 ./src/*.c
2828

2929
- name: Copy bin file to dir
30-
run: cp ./proj1 ./tests/
30+
run: cp ./src/proj1 ./tests/
3131

3232
- name: Run tests public
3333
run: make
@@ -65,4 +65,4 @@ jobs:
6565

6666
- name: Run Lizard
6767
run: lizard -L 50 -T nloc=30 -C 15 -m *.c
68-
working-directory: ./
68+
working-directory: ./src/

.github/workflows/python_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
pip install lizard
2525
2626
- name: Build with GCC
27-
run: gcc -O3 -Wall -Wextra -Werror -Wno-unused-result -o parksystem *.c
27+
run: gcc -O3 -Wall -Wextra -Werror -Wno-unused-result -o ./src/parksystem ./src/*.c
2828

2929
- name: Run tests
3030
run: pytest -v ./tests/run.py
@@ -44,4 +44,4 @@ jobs:
4444

4545
- name: Run Lizard
4646
run: lizard -L 50 -T nloc=30 -C 15 -m *.c
47-
working-directory: ./
47+
working-directory: ./src/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ modules.order
5151
Module.symvers
5252
Mkfile.old
5353
dkms.conf
54+
55+
# macOS
56+
.DS_Store

car_hashtable.c

Lines changed: 0 additions & 153 deletions
This file was deleted.

car_hashtable.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)