]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: include idx.h everywhere
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jul 2023 18:24:08 +0000 (11:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Aug 2023 00:51:28 +0000 (17:51 -0700)
* src/system.h: Include idx.h here, instead of in every file
that currently uses idx_t.  This should make it easier to use
idx_t in the future.

src/basenc.c
src/cat.c
src/csplit.c
src/env.c
src/split.c
src/system.h

index be7a61641336d3e5213bc8770c3f95dd6543fc58..ce259c482add7a3d5474a7d9127799e3c9dea9e5 100644 (file)
@@ -25,7 +25,6 @@
 #include "system.h"
 #include "c-ctype.h"
 #include "fadvise.h"
-#include "idx.h"
 #include "quote.h"
 #include "xstrtol.h"
 #include "xdectoint.h"
index b109998bfaa00340f06b916c0d7c1d63ad46f660..12472d40d6f7850d9440012732a0fe3fd7301cbc 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -35,7 +35,6 @@
 
 #include "system.h"
 #include "alignalloc.h"
-#include "idx.h"
 #include "ioblksize.h"
 #include "fadvise.h"
 #include "full-write.h"
index 4052ca9089ed862722a08262a2accd67c755e981..dca525aaf8694f8b20f78c9aba26282e137b0375 100644 (file)
@@ -29,7 +29,6 @@
 #include <regex.h>
 
 #include "fd-reopen.h"
-#include "idx.h"
 #include "quote.h"
 #include "safe-read.h"
 #include "stdio--.h"
index 58879737ba8c4d286b0fb9c7659d1646832aa792..b008ea2cea365947b07679a0551193f81ced420c 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -24,7 +24,6 @@
 #include <signal.h>
 
 #include "system.h"
-#include "idx.h"
 #include "operand2sig.h"
 #include "quote.h"
 #include "sig2str.h"
index cf776364cd2e450dcc72eb24b94a6267da68074b..609d52e0871a9be03e3c847bde0dcfa818594b9d 100644 (file)
@@ -35,7 +35,6 @@
 #include "fd-reopen.h"
 #include "fcntl--.h"
 #include "full-write.h"
-#include "idx.h"
 #include "ioblksize.h"
 #include "quote.h"
 #include "sig2str.h"
index 2d9c47f48b073386033f813db364c38a9539cb54..b5ec074e7c3b7b002282644ba008dc54704c49df 100644 (file)
@@ -241,6 +241,7 @@ struct group *getgrgid (gid_t);
 uid_t getuid (void);
 #endif
 
+#include "idx.h"
 #include "xalloc.h"
 #include "verify.h"