Skip to content

Commit f16d3b8

Browse files
authored
Merge pull request #141 from gansm/0.9.0
0.9.0
2 parents 541f127 + 2d5e0be commit f16d3b8

File tree

466 files changed

+142077
-79957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+142077
-79957
lines changed

.bettercodehub.yml

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

.codacy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
exclude_paths:
6+
- 'final/font/**'
7+
- 'test/**'
8+
exclude_paths:
9+
- 'debian/**'
10+
- 'doc/**'
11+
- 'misc/**'
12+
- 'm4/**'
13+
- 'scripts/**'
14+

.codedocs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PROJECT_NAME = "The Final Cut"
2-
EXCLUDE = debian, doc, icon, logo, m4, scripts, examples
1+
PROJECT_NAME = "FINAL CUT"
2+
EXCLUDE = doc, misc, m4, scripts, examples
33
EXCLUDE_PATTERNS = */test/*
44

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# EditorConfig helps maintain consistent coding styles
2+
# for multiple developers working on the same project
3+
# across various editors and IDEs.
4+
#
5+
# http://editorconfig.org
6+
7+
root = true
8+
9+
[*]
10+
indent_style = space
11+
indent_size = 2
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true
16+
max_line_length=72
17+
18+
[ChangeLog]
19+
trim_trailing_whitespace = false
20+
21+
[*.txt]
22+
trim_trailing_whitespace = false
23+
24+
[*.md]
25+
trim_trailing_whitespace = false
26+
27+
# Domain-Specific Properties
28+
[*.h]
29+
curly_bracket_next_line = true
30+
spaces_around_operators = true
31+
indent_brace_style = Allman
32+
33+
[*.cpp]
34+
curly_bracket_next_line = true
35+
spaces_around_operators = true
36+
indent_brace_style = Allman
37+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug
11+
12+
Give a detailed description of what the bug is.
13+
14+
15+
## How to reproduce the bug?
16+
17+
Explain step-by-step the procedure to reproduce this behavior.
18+
19+
20+
## What behavior did you expect?
21+
22+
Describe what you would expect instead.
23+
24+
25+
## In which environment did the bug occur?
26+
* Which operating system do you use?<br />
27+
_Linux, FreeBSD, NetBSD, OpenBSD, macOS, Cygwin, or Solaris_
28+
29+
* Which distribution do you use?
30+
31+
* On which CPU architecture did you test?
32+
33+
* Which compiler in which version did you use?
34+
35+
* Which terminal do you use?
36+
37+
* What does the environment variable $TERM contain?
38+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Feature request
3+
about: Make a suggestion for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Feature Request
11+
12+
13+
**Do you want to solve a problem with your feature request? Please describe it.**
14+
15+
Describe clearly and precisely what the problem is.
16+
Example: I have an issue when [...]
17+
18+
19+
**Your desired solution**
20+
21+
Describe clearly and concisely what you want to reach.
22+
23+
24+
**Alternatives you have considered**
25+
26+
Describe clearly and concisely the other solutions you considered.
27+
28+
29+
**Additional context**
30+
31+
Add additional context or screenshots to your feature request here.
32+

.github/scripts/get_code_cov.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
SAVE_DIR="$PWD"
4+
5+
run_gcov ()
6+
{
7+
FILENAME="$1"
8+
GCDAFILE="${FILENAME%.cpp}.gcda"
9+
10+
if test -f "$GCDAFILE"
11+
then
12+
gcov -lp "$FILENAME"
13+
elif test -f "./.libs/$GCDAFILE"
14+
then
15+
gcov -lp -o "./.libs/" "$FILENAME"
16+
fi
17+
}
18+
19+
find "./test/" \
20+
"./final/" \
21+
-type f \
22+
-name "*.cpp" \
23+
-print \
24+
| while read -r FILENAME
25+
do
26+
cd "$(dirname "$FILENAME")" \
27+
&& run_gcov "$(basename "$FILENAME")"
28+
cd "$SAVE_DIR" || exit
29+
done
30+

.github/workflows/alpine.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Alpine Linux build"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 7 * * 2'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Repository checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Install latest Alpine Linux
19+
uses: jirutka/setup-alpine@v1
20+
with:
21+
arch: x86_64
22+
branch: latest-stable
23+
packages: >
24+
gcc
25+
g++
26+
make
27+
automake
28+
autoconf
29+
autoconf-archive
30+
libtool
31+
pkgconf
32+
gpm
33+
gpm-dev
34+
linux-headers
35+
ncurses-dev
36+
ncurses-terminfo
37+
cppunit
38+
39+
- name: Test on Alpine Linux environment
40+
run: |
41+
uname -a
42+
whoami
43+
pwd
44+
g++ --version
45+
autoreconf --force --install --verbose --warnings=all
46+
automake --add-missing --copy
47+
./configure --prefix=/usr
48+
make -j10
49+
shell: alpine.sh {0}
50+

.github/workflows/arm.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "ARM build"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 7 * * 2'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
name: Build on ${{ matrix.arch }}
15+
16+
# Run steps on a matrix of 3 arch/distro combinations
17+
strategy:
18+
matrix:
19+
include:
20+
- arch: aarch64
21+
- arch: armv7
22+
- arch: armv6
23+
24+
steps:
25+
- name: Repository checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Test on ARM architecture
29+
uses: uraimo/run-on-arch-action@v2
30+
id: runcmd
31+
with:
32+
arch: ${{ matrix.arch }}
33+
distro: bullseye
34+
run: |
35+
cat /etc/os-release
36+
uname -a
37+
whoami
38+
tty || echo
39+
pwd
40+
# Install dependencies via apt-get
41+
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
42+
apt-get update
43+
apt-get -y install \
44+
ca-certificates \
45+
make \
46+
gcc \
47+
g++ \
48+
gpm \
49+
libgpm-dev \
50+
libcppunit-dev \
51+
libncurses-dev \
52+
pkg-config \
53+
libtool \
54+
automake \
55+
autoconf \
56+
autoconf-archive
57+
# Build
58+
g++ --version
59+
autoreconf -v --install --force
60+
./configure --prefix=/usr
61+
make -j10
62+
63+
- name: Get the output
64+
run: |
65+
echo "The uname output was ${{ steps.runcmd.outputs.uname }}"
66+

.github/workflows/codeql-analysis.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL analysis"
7+
8+
on:
9+
push:
10+
branches: [ main ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ main ]
14+
schedule:
15+
- cron: '0 7 * * 2'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: ['cpp']
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v3
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v2
42+
with:
43+
languages: ${{ matrix.language }}
44+
# If you wish to specify custom queries, you can do so here or in a config file.
45+
# By default, queries listed here will override any specified in a config file.
46+
# Prefix the list here with "+" to use these queries and those in the config file.
47+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
48+
49+
# ℹ️ Command-line programs to run using the OS shell.
50+
# 📚 https://git.io/JvXDl
51+
52+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
53+
# and modify them (or add more) to build your code if your project
54+
# uses a compiled language
55+
56+
- name: Build dependencies
57+
run: sudo apt-get install autoconf-archive
58+
59+
- name: Create configure file
60+
run: autoreconf -v --install --force
61+
62+
- name: Create makefiles
63+
run: ./configure --prefix=/usr CPPFLAGS="-DDEBUG" CXXFLAGS="-g -O0 -DDEBUG -W -Wall -pedantic"
64+
65+
- name: Build
66+
run: make V=1 -j10
67+
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)