Skip to content

Commit 8db9718

Browse files
Merge pull request #8 from jeromekelleher/initial-c-prototype
Initial partially working C prototype
2 parents 1af91b9 + 422d991 commit 8db9718

File tree

10 files changed

+1637
-0
lines changed

10 files changed

+1637
-0
lines changed

.clang-format

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Language: Cpp
2+
BasedOnStyle: GNU
3+
SortIncludes: false
4+
AllowShortIfStatementsOnASingleLine: false
5+
BreakBeforeBraces: Linux
6+
TabWidth: 4
7+
IndentWidth: 4
8+
ColumnLimit: 89
9+
SpaceBeforeParens:
10+
ControlStatements
11+
SpacesInCStyleCastParentheses: false
12+
SpaceAfterCStyleCast: true
13+
IndentCaseLabels: true
14+
AlignAfterOpenBracket: DontAlign
15+
BinPackArguments: true
16+
BinPackParameters: true
17+
AlwaysBreakAfterReturnType: AllDefinitions
18+
19+
# These are disabled for version 6 compatibility
20+
# StatementMacros: ["PyObject_HEAD"]
21+
# AlignConsecutiveMacros: true

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
all: ext
3+
4+
ext: _vcztoolsmodule.c
5+
CFLAGS="-std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-cast-function-type" \
6+
python3 setup.py build_ext --inplace
7+
8+
clean:
9+
rm -f *.so *.o tags
10+
rm -fR build

0 commit comments

Comments
 (0)