mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-09 08:21:33 -04:00

Introduce memcpy_s() and wordcpy_s() that takes the destination buffer size as an argument. Use assert() which aborts our program to an eternal loop if we hit problems. Sprinkle asserts elsewhere as well. Signed-off-by: Daniel Lublin <daniel@lublin.se>
10 lines
292 B
Makefile
10 lines
292 B
Makefile
# Uses ../.clang-format
|
|
FMTFILES=main.c lib.h lib.c proto.h proto.c types.h assert.c assert.h
|
|
.PHONY: fmt
|
|
fmt:
|
|
clang-format --dry-run --ferror-limit=0 $(FMTFILES)
|
|
clang-format --verbose -i $(FMTFILES)
|
|
.PHONY: checkfmt
|
|
checkfmt:
|
|
clang-format --dry-run --ferror-limit=0 --Werror $(FMTFILES)
|