generated from cpmachado/c-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign planning and setup refactor (#3)
* Set version mechanism to config.mk * Refactor Makefile, add CPPLINT * First iteration of CI github Action * Rollback action cpplint version to 1.6.1 * Add bagde of action to readme * Superficial requirement analysis * Refactor dist to be placed within build folder * Remove clean dep in Makefile from dist * Add dist step to CI * Normalise paranthesization in Makefile * Adopt Google Styleguide * Add cppcheck to linting * Add to wishlist of new version of egc
- Loading branch information
Showing
12 changed files
with
297 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: make | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
- run: pip install cpplint===1.6.1 | ||
- run: sudo apt install cppcheck -y | ||
- run: make lint | ||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: make dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
# Tarballs | ||
*.zip | ||
*.tar.gz | ||
|
||
# binaries | ||
*.o | ||
*.a | ||
*.d | ||
egc | ||
|
||
# user config.h | ||
config.h | ||
# build folder | ||
build | ||
|
||
# tags | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set noparent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Requirement analysis | ||
|
||
## What is egc? | ||
|
||
egc is defined as a program and library that supports mathematical methods | ||
associated with egyptian mathematics. | ||
|
||
The source of these is a course I took in university: | ||
- Estrada et al., "História da matemática" | ||
+ URI: <http://hdl.handle.net/10400.2/10668> | ||
|
||
## Components | ||
- egc: cli interface | ||
+ shell to perform operations | ||
+ enable scripting | ||
+ options to redirect output | ||
- libegc: library to leverage this methods | ||
+ table structure | ||
+ multiplication method | ||
+ division method | ||
+ unit fraction type | ||
+ egyptian fraction type and computation | ||
+ false position method | ||
+ TBD |
Oops, something went wrong.