Skip to content

Commit

Permalink
minor tweaks and removed binary_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphGL committed Jul 24, 2024
1 parent 34960a4 commit 7a9b5ee
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 253 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.phony: test

test:
$(MAKE) -C bstr test
$(MAKE) -C flag test
$(MAKE) -C vec test
$(MAKE) -C binary_tree test
$(MAKE) -C bstr test 1> /dev/null
$(MAKE) -C flag test 1> /dev/null
$(MAKE) -C vec test 1> /dev/null
@echo "All tests passed"

16 changes: 0 additions & 16 deletions binary_tree/Makefile

This file was deleted.

54 changes: 0 additions & 54 deletions binary_tree/README.md

This file was deleted.

128 changes: 0 additions & 128 deletions binary_tree/bintree.c

This file was deleted.

21 changes: 0 additions & 21 deletions binary_tree/bintree.h

This file was deleted.

25 changes: 0 additions & 25 deletions binary_tree/maintest.c

This file was deleted.

6 changes: 2 additions & 4 deletions flag/flag.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,9 @@ void flag_parse(flag_Parser *p) {
break;
}

goto next_arg;
// goto to next flag after this flag is parsed
break;
}

next_arg:
continue;
}

p->parsed = true;
Expand Down
3 changes: 2 additions & 1 deletion vec/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ bool vec_append(vec_Vector *restrict dest, const vec_Vector *src) {
return true;
}

vec_Vector *vec_from(void *const array, size_t length, size_t item_size) {
vec_Vector *vec_from(void *const arr, size_t length, size_t item_size) {
char *const array = arr;
vec_Vector *vec = vec_new(item_size);
for (size_t i = 0; i < length; i++) {
if (!vec_push(vec, array + i * item_size)) {
Expand Down

0 comments on commit 7a9b5ee

Please sign in to comment.