Skip to content

Commit cde93d4

Browse files
committed
Minor cleanups.
Remove some unneccessary includes, plus 'stdbool.h' is deprecated from C23.
1 parent facf92c commit cde93d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020, 2021, 2022 Eddy L O Jansson
3+
Copyright (c) 2020, 2021, 2022, 2026 Eddy Jansson
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lzw-eddy.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#include <stdlib.h>
77
#include <string.h>
88
#include <stdint.h>
9-
#include <assert.h>
10-
#include <stdbool.h>
119
#include <errno.h>
1210

1311
#include "build_const.h"

lzw.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Variable-length code LZW compressor and decompressor for fixed-memory decoding.
3-
Copyright (c) 2020-2022, Eddy L O Jansson. Licensed under The MIT License.
3+
Copyright (c) 2020-2026, Eddy Jansson. Licensed under The MIT License.
44
55
See https://github.com/eloj/lzw-eddy
66
*/
@@ -9,7 +9,9 @@ extern "C" {
99
#endif
1010

1111
#include <stdint.h>
12+
#if __STDC_VERSION__ < 202311l
1213
#include <stdbool.h>
14+
#endif
1315

1416
#if defined(_MSC_VER)
1517
#include <BaseTsd.h>
@@ -116,7 +118,7 @@ ssize_t lzw_compress(struct lzw_state *state, uint8_t *src, size_t slen, uint8_t
116118

117119
/*
118120
Variable-length code LZW compressor and decompressor for fixed-memory decoding.
119-
Copyright (c) 2020-2022, Eddy L O Jansson. Licensed under The MIT License.
121+
Copyright (c) 2020-2026, Eddy Jansson. Licensed under The MIT License.
120122
121123
See https://github.com/eloj/lzw-eddy
122124
*/

0 commit comments

Comments
 (0)