diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-09 17:25:27 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-09 18:30:01 -0600 |
commit | 70a683d6733713181b8f9ae25a8bfad133d5ba68 (patch) | |
tree | bf35a2d4b1dd27e2be905c104087f40ff81236fa /src/preproc | |
parent | ccc63e65c723e235fafc5099b383959c92664c38 (diff) | |
download | groff-git-70a683d6733713181b8f9ae25a8bfad133d5ba68.tar.gz |
[src]: Group and order standard libc inclusions.
Inclusion order is not supposed to matter for standard C header files,
so treating this as a code style issue.
* src/devices/grodvi/dvi.cpp:
* src/devices/grolj4/lj4.cpp:
* src/include/stringclass.h:
* src/libs/libbib/linear.cpp:
* src/libs/libbib/search.cpp:
* src/libs/libdriver/printer.cpp:
* src/libs/libgroff/assert.cpp:
* src/libs/libgroff/color.cpp:
* src/libs/libgroff/errarg.cpp:
* src/libs/libgroff/font.cpp:
* src/libs/libgroff/nametoindex.cpp:
* src/libs/libgroff/prime.cpp:
* src/libs/libgroff/relocate.cpp:
* src/libs/libgroff/searchpath.cpp:
* src/preproc/eqn/box.cpp:
* src/preproc/eqn/delim.cpp:
* src/preproc/eqn/pile.cpp:
* src/preproc/eqn/script.cpp:
* src/preproc/html/pre-html.cpp:
* src/preproc/pic/pic.h:
* src/preproc/preconv/preconv.cpp:
* src/preproc/soelim/soelim.cpp:
* src/roff/groff/groff.cpp:
* src/roff/troff/troff.h:
* src/utils/hpftodit/hpftodit.cpp:
* src/utils/indxbib/indxbib.cpp:
* src/utils/lkbib/lkbib.cpp:
* src/utils/lookbib/lookbib.cpp:
* src/utils/tfmtodit/tfmtodit.cpp: Do it.
Diffstat (limited to 'src/preproc')
-rw-r--r-- | src/preproc/eqn/box.cpp | 1 | ||||
-rw-r--r-- | src/preproc/eqn/delim.cpp | 1 | ||||
-rw-r--r-- | src/preproc/eqn/pile.cpp | 2 | ||||
-rw-r--r-- | src/preproc/eqn/script.cpp | 1 | ||||
-rw-r--r-- | src/preproc/html/pre-html.cpp | 7 | ||||
-rw-r--r-- | src/preproc/pic/pic.h | 4 | ||||
-rw-r--r-- | src/preproc/preconv/preconv.cpp | 3 | ||||
-rw-r--r-- | src/preproc/soelim/soelim.cpp | 5 |
8 files changed, 13 insertions, 11 deletions
diff --git a/src/preproc/eqn/box.cpp b/src/preproc/eqn/box.cpp index 23ce99916..5f6343eeb 100644 --- a/src/preproc/eqn/box.cpp +++ b/src/preproc/eqn/box.cpp @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <assert.h> + #include "eqn.h" #include "pbox.h" diff --git a/src/preproc/eqn/delim.cpp b/src/preproc/eqn/delim.cpp index f066da7da..01557c52b 100644 --- a/src/preproc/eqn/delim.cpp +++ b/src/preproc/eqn/delim.cpp @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <assert.h> + #include "eqn.h" #include "pbox.h" diff --git a/src/preproc/eqn/pile.cpp b/src/preproc/eqn/pile.cpp index cd38b89c6..fcc2e925f 100644 --- a/src/preproc/eqn/pile.cpp +++ b/src/preproc/eqn/pile.cpp @@ -15,9 +15,11 @@ for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ + // piles and matrices #include <assert.h> + #include "eqn.h" #include "pbox.h" diff --git a/src/preproc/eqn/script.cpp b/src/preproc/eqn/script.cpp index 9d4e05f9f..f485eb93a 100644 --- a/src/preproc/eqn/script.cpp +++ b/src/preproc/eqn/script.cpp @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <assert.h> + #include "eqn.h" #include "pbox.h" diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp index 9f2439be3..fecfb0539 100644 --- a/src/preproc/html/pre-html.cpp +++ b/src/preproc/html/pre-html.cpp @@ -23,12 +23,11 @@ #include "lib.h" -#include <signal.h> +#include <assert.h> #include <ctype.h> -#include <stdlib.h> #include <errno.h> - -#include <assert.h> +#include <signal.h> +#include <stdlib.h> #include "errarg.h" #include "error.h" diff --git a/src/preproc/pic/pic.h b/src/preproc/pic/pic.h index 11825780d..1a99498a4 100644 --- a/src/preproc/pic/pic.h +++ b/src/preproc/pic/pic.h @@ -18,9 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "lib.h" +#include <assert.h> +#include <errno.h> #include <math.h> #include <stdlib.h> -#include <errno.h> #ifdef NEED_DECLARATION_RAND #undef rand @@ -46,7 +47,6 @@ extern "C" { } #endif -#include <assert.h> #include "cset.h" #include "stringclass.h" #include "lf.h" diff --git a/src/preproc/preconv/preconv.cpp b/src/preproc/preconv/preconv.cpp index a08f3d483..d403425ee 100644 --- a/src/preproc/preconv/preconv.cpp +++ b/src/preproc/preconv/preconv.cpp @@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "lib.h" +#include <assert.h> #include <stdlib.h> #include <errno.h> #include <sys/stat.h> @@ -25,8 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <uchardet/uchardet.h> #endif -#include <assert.h> - #include "errarg.h" #include "error.h" #include "localcharset.h" diff --git a/src/preproc/soelim/soelim.cpp b/src/preproc/soelim/soelim.cpp index 8793e0e8e..bafc5cd02 100644 --- a/src/preproc/soelim/soelim.cpp +++ b/src/preproc/soelim/soelim.cpp @@ -18,11 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "lib.h" +#include <assert.h> #include <ctype.h> -#include <stdlib.h> #include <errno.h> - -#include <assert.h> +#include <stdlib.h> #include "errarg.h" #include "error.h" |