diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-09-06 21:52:08 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-09-06 21:52:08 +0200 |
| commit | c353b1a162065e4efb7da30d8e57631654ebd6fc (patch) | |
| tree | 782381d9782578e3313ccd1cc6e24aa9ce2f9c2c | |
| parent | 9e8caf1e06ba7510160305da11a30d91dcfc23e5 (diff) | |
| download | data-structures-c353b1a162065e4efb7da30d8e57631654ebd6fc.tar.gz data-structures-c353b1a162065e4efb7da30d8e57631654ebd6fc.tar.bz2 data-structures-c353b1a162065e4efb7da30d8e57631654ebd6fc.zip | |
noch mehr code aufräumen
| -rw-r--r-- | makefile | 2 | ||||
| -rw-r--r-- | src/avl-tree.c | 4 | ||||
| -rw-r--r-- | src/list-tail-node.c | 2 | ||||
| -rw-r--r-- | src/queue.c | 2 |
4 files changed, 4 insertions, 6 deletions
| @@ -19,7 +19,7 @@ BINS=bin/allocator \ | |||
| 19 | bin/stack-array \ | 19 | bin/stack-array \ |
| 20 | bin/stack-linked-list | 20 | bin/stack-linked-list |
| 21 | 21 | ||
| 22 | CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g | 22 | CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c17 -g |
| 23 | 23 | ||
| 24 | all: $(BINS) | 24 | all: $(BINS) |
| 25 | 25 | ||
diff --git a/src/avl-tree.c b/src/avl-tree.c index 5059f3f..fcd9e37 100644 --- a/src/avl-tree.c +++ b/src/avl-tree.c | |||
| @@ -336,10 +336,8 @@ print(struct tree_node *tree) | |||
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | int | 338 | int |
| 339 | main() | 339 | main(void) |
| 340 | { | 340 | { |
| 341 | |||
| 342 | |||
| 343 | #if 0 /* 1a/b */ | 341 | #if 0 /* 1a/b */ |
| 344 | tree = insert(tree, 20); | 342 | tree = insert(tree, 20); |
| 345 | tree = insert(tree, 4); | 343 | tree = insert(tree, 4); |
diff --git a/src/list-tail-node.c b/src/list-tail-node.c index edfcf31..524e5bb 100644 --- a/src/list-tail-node.c +++ b/src/list-tail-node.c | |||
| @@ -171,7 +171,7 @@ list_free(struct list *list) | |||
| 171 | /* -->8-- */ | 171 | /* -->8-- */ |
| 172 | 172 | ||
| 173 | int | 173 | int |
| 174 | main() | 174 | main(void) |
| 175 | { | 175 | { |
| 176 | struct list list[1]; | 176 | struct list list[1]; |
| 177 | 177 | ||
diff --git a/src/queue.c b/src/queue.c index 6a472ee..5d25d65 100644 --- a/src/queue.c +++ b/src/queue.c | |||
| @@ -91,7 +91,7 @@ queue_free(struct queue *queue) | |||
| 91 | /* -->8-- */ | 91 | /* -->8-- */ |
| 92 | 92 | ||
| 93 | int | 93 | int |
| 94 | main() | 94 | main(void) |
| 95 | { | 95 | { |
| 96 | struct queue queue[1]; | 96 | struct queue queue[1]; |
| 97 | 97 | ||
