chore: some nitpicking

min-heap
Jef Roosens 2023-01-27 20:48:51 +01:00
parent ab418e57b3
commit d77b3e4fee
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 10 additions and 7 deletions

View File

@ -8,6 +8,8 @@ SRC_DIR ?= src
TEST_DIR ?= test
INC_DIRS ?= include
LIB := $(BUILD_DIR)/$(LIB_FILENAME)
SRCS != find '$(SRC_DIR)' -iname '*.c'
SRCS_H != find $(INC_DIRS) -iname '*.h'
SRCS_TEST != find '$(TEST_DIR)' -iname '*.c'
@ -40,7 +42,7 @@ all: vieter
objs: $(OBJS)
.PHONY: vieter
vieter: $(BUILD_DIR)/$(LIB_FILENAME)
vieter: $(LIB)
$(BUILD_DIR)/$(LIB_FILENAME): $(OBJS)
ar -rcs $@ $(OBJS)
@ -69,10 +71,11 @@ build-test: $(BINS_TEST)
# For simplicity, we link every object file to each of the test files. This
# might be changed later if this starts to become too slow.
$(BINS_TEST): %: %.c.o $(OBJS)
$(CC) $^ -o $@
$(BINS_TEST): %: %.c.o $(LIB)
$(CC) \
$^ -o $@
# Allow with the include directory, each test includes $(TEST_DIR) (which
# Along with the include directory, each test includes $(TEST_DIR) (which
# contains the acutest.h header file), and the src directory of the module it's
# testing. This allows tests to access internal methods, which aren't publicly
# exposed.

View File

@ -6,7 +6,7 @@ be implemented in C (or just parts I want to implement in C because it's fun).
The goal of this library is to be as self-contained as possible; data
structures should be implemented manually if possible.
See the [source code](/src) for the list of modules.
See the [source code](src) for the list of modules.
## Development
@ -43,7 +43,7 @@ only used in a .c file, the import should be placed in the .c file instead.
This library uses [Acutest](https://github.com/mity/acutest) for its tests.
Tests should be placed in the `test` subdirectory, further divided into
directories that correspond those in `src`. Test files should begin with
directories that correspond to those in `src`. Test files should begin with
`test_`, and their format should follow the expected format for Acutest.
Each `test_` is compiled separately into a binary, linked with libvieter. A

View File

@ -37,7 +37,7 @@ typedef struct vieter_cron_simple_time {
/*
* Allocate and initialize a new empty cron expression.
*/
vieter_cron_expression *ce_init();
vieter_cron_expression *vieter_cron_expr_init();
/*
* Deallocate a cron expression.