cnfparse.c

Small library to make config parsing easier
git clone git://git.finwo.net/lib/cnfparse.c
Log | Files | Refs | README | LICENSE

commit 6cab434919083670bf166ab05df7f7088b8d076e
parent 72076448dca192d312fd4a794f144f951c3ad231
Author: finwo <finwo@pm.me>
Date:   Wed,  7 Oct 2026 15:52:23 +0200

Merge branch 'main' of git.finwo.net:lib/cnfparse.c

# Conflicts:
#	Makefile
#	test/0000-basics.c

Diffstat:
MMakefile | 1-
MREADME.md | 2+-
Msrc/cnfparse.c | 2+-
Msrc/cnfparse.h | 2+-
Mtest/assert.h | 2+-
5 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -32,7 +32,6 @@ default: $(BIN) README.md $(BIN): $(OBJ) $(EXAMPLE_SRC:.c=.o) $(CC) $(CFLAGS) $^ -o $@ -# Test targets — each file is compiled independently and run $(TESTS): $(OBJ) $(TESTS:=.c) $(CC) $@.c $(SRC) -I test $(CFLAGS) -o $@ diff --git a/README.md b/README.md @@ -3,7 +3,7 @@ finwo/cnfparse > Small library to make config parsing easier -This library makes use of [dep](https://github.com/finwo/dep) to manage it's +This library makes use of [dep](https://github.com/finwo/dep) to manage its dependencies and exports. Installation diff --git a/src/cnfparse.c b/src/cnfparse.c @@ -59,7 +59,7 @@ void cnf_directive_free(struct cnf_directive *subject) { if (subject->name) { free(subject->name); } - for(int i = 0 ; i < subject->argc ; i++) { + for(size_t i = 0 ; i < subject->argc ; i++) { free(subject->argv[i]); } if (subject->argv) { diff --git a/src/cnfparse.h b/src/cnfparse.h @@ -6,7 +6,7 @@ /// /// > Small library to make config parsing easier /// -/// This library makes use of [dep](https://github.com/finwo/dep) to manage it's +/// This library makes use of [dep](https://github.com/finwo/dep) to manage its /// dependencies and exports. /// /// Installation diff --git a/test/assert.h b/test/assert.h @@ -8,7 +8,7 @@ /// /// - Single header file, no other library dependencies /// - Simple ANSI C. The library should work with virtually every C(++) compiler on -/// virtually any playform +/// virtually any platform /// - Reporting of assertion failures, including the expression and location of the /// failure /// - Stops test on first failed assertion