general cleanups. Removed lots of unused code and redundant error checks

This commit is contained in:
Francesco Cozzuto
2022-08-24 16:46:32 +02:00
parent 71e8a9e4cb
commit cd74dda4a9
29 changed files with 333 additions and 813 deletions
+3 -12
View File
@@ -59,8 +59,8 @@ BUILD_MODE = RELEASE
# following set of flags to the CFLAGS and
# LFLAGS. If the BUILD_MODE is COVERAGE, then
# the flags are also determined based on the CC.
CFLAGS_DEBUG = -DDEBUG -g
LFLAGS_DEBUG =
CFLAGS_DEBUG = -DDEBUG -g
LFLAGS_DEBUG =
CFLAGS_RELEASE = -DNDEBUG -O3
LFLAGS_RELEASE =
@@ -150,15 +150,6 @@ $(CLI): $(CLI_OFILES) $(LIB)
$(TST): $(TST_OFILES) $(LIB)
gcc $^ -o $@ $(LFLAGS)
#$(REPORTDIR)/%.gcov: src/%.c
# @ mkdir -p $(@D)
# gcov --stdout $(patsubst $(SRCDIR)/%.c, $(OBJDIR)/%.c, $^) > $@
#
#report: $(patsubst $(SRCDIR)/%.c, $(REPORTDIR)/%.gcov, $(ALL_CFILES))
# lcov --capture --directory $(OBJDIR) --output-file coverage.info
# genhtml coverage.info --output-directory .
#
report:
lcov --capture --directory $(OBJDIR) --output-file $(OBJDIR)/coverage.info
@ mkdir -p report
@@ -172,4 +163,4 @@ clean:
rm -rf $(OBJDIR)
rm -rf $(REPORTDIR)
rm -f $(LIB)
rm -f $(CLI)
rm -f $(CLI)