diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 13:06:51 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 13:11:00 -0600 |
commit | 037df4afccb4577351f8155a0b9a36825ac7eb15 (patch) | |
tree | b03f0e5abfd0602df56d7548c161966de8e74895 | |
parent | ef72481ffee3403dc50e93b5686c30ed841e0257 (diff) |
Tidy #includes: We don't use PRI* anymore
-rw-r--r-- | lib9p/core_gen/c.py | 5 | ||||
-rw-r--r-- | lib9p/core_generated.c | 5 | ||||
-rw-r--r-- | lib9p/srv.c | 1 | ||||
-rw-r--r-- | lib9p/tests/test_server/fs_whoami.c | 5 | ||||
-rw-r--r-- | libhw_cr/rp2040_hwspi.c | 2 | ||||
-rw-r--r-- | libhw_cr/w5500.c | 2 | ||||
-rw-r--r-- | libhw_generic/include/libhw/generic/net.h | 1 |
7 files changed, 7 insertions, 14 deletions
diff --git a/lib9p/core_gen/c.py b/lib9p/core_gen/c.py index 5776035..0947ec2 100644 --- a/lib9p/core_gen/c.py +++ b/lib9p/core_gen/c.py @@ -23,9 +23,8 @@ def gen_c(versions: set[str], typs: list[idl.UserType]) -> str: ret = f"""/* Generated by `{' '.join(sys.argv)}`. DO NOT EDIT! */ -#include <stddef.h> /* for size_t */ -#include <inttypes.h> /* for PRI* macros */ -#include <string.h> /* for memset() */ +#include <stddef.h> /* for size_t */ +#include <string.h> /* for memset() */ #include <libmisc/assert.h> #include <libmisc/endian.h> diff --git a/lib9p/core_generated.c b/lib9p/core_generated.c index e19f6e6..6e3633f 100644 --- a/lib9p/core_generated.c +++ b/lib9p/core_generated.c @@ -1,8 +1,7 @@ /* Generated by `lib9p/core.gen lib9p/idl/0000-uninitialized.9p lib9p/idl/2002-9P2000.9p lib9p/idl/2003-9P2000.p9p.9p lib9p/idl/2005-9P2000.u.9p lib9p/idl/2010-9P2000.L.9p lib9p/idl/2012-9P2000.e.9p`. DO NOT EDIT! */ -#include <stddef.h> /* for size_t */ -#include <inttypes.h> /* for PRI* macros */ -#include <string.h> /* for memset() */ +#include <stddef.h> /* for size_t */ +#include <string.h> /* for memset() */ #include <libmisc/assert.h> #include <libmisc/endian.h> diff --git a/lib9p/srv.c b/lib9p/srv.c index 18165e0..cd5d3fb 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <inttypes.h> /* for PRI* */ #include <limits.h> /* for SSIZE_MAX, not set by newlib */ #include <stddef.h> /* for size_t */ #include <stdlib.h> /* for malloc() */ diff --git a/lib9p/tests/test_server/fs_whoami.c b/lib9p/tests/test_server/fs_whoami.c index 8d9752a..7e1d635 100644 --- a/lib9p/tests/test_server/fs_whoami.c +++ b/lib9p/tests/test_server/fs_whoami.c @@ -4,8 +4,9 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <stdio.h> /* for snprintf() */ -#include <stdlib.h> /* for realloc(), free() */ +#include <inttypes.h> /* for PRI* */ +#include <stdio.h> /* for snprintf() */ +#include <stdlib.h> /* for realloc(), free() */ #include <libmisc/alloc.h> diff --git a/libhw_cr/rp2040_hwspi.c b/libhw_cr/rp2040_hwspi.c index 75acd58..a7840e8 100644 --- a/libhw_cr/rp2040_hwspi.c +++ b/libhw_cr/rp2040_hwspi.c @@ -4,8 +4,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <inttypes.h> /* for PRIu{n} */ - #include <hardware/clocks.h> /* for clock_get_hz() and clk_peri */ #include <hardware/gpio.h> #include <hardware/spi.h> diff --git a/libhw_cr/w5500.c b/libhw_cr/w5500.c index 6f3f302..77edc49 100644 --- a/libhw_cr/w5500.c +++ b/libhw_cr/w5500.c @@ -67,8 +67,6 @@ * SPDX-License-Identifier: MIT */ -#include <inttypes.h> /* for PRIu{n} */ - /* TODO: Write a <libhw/generic/gpio.h> to avoid w5500.c being * pico-sdk-specific. */ #include <hardware/gpio.h> /* pico-sdk:hardware_gpio */ diff --git a/libhw_generic/include/libhw/generic/net.h b/libhw_generic/include/libhw/generic/net.h index 573a01f..95d32da 100644 --- a/libhw_generic/include/libhw/generic/net.h +++ b/libhw_generic/include/libhw/generic/net.h @@ -7,7 +7,6 @@ #ifndef _LIBHW_GENERIC_NET_H_ #define _LIBHW_GENERIC_NET_H_ -#include <inttypes.h> /* for PRI{u,x}{n} */ #include <stddef.h> /* for size_t */ #include <stdint.h> /* for uint{n}_t} */ #include <sys/types.h> /* for ssize_t */ |