Module Name:    src
Committed By:   rillig
Date:           Mon Dec 28 19:07:44 UTC 2020

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y err.c init.c main1.c scan.l tree.c
        src/usr.bin/xlint/lint2: chk.c mem2.c msg.c read.c

Log Message:
lint: sort includes


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.93 -r1.94 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.91 -r1.92 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/xlint/lint2/mem2.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/xlint/lint2/read.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.107 src/usr.bin/xlint/lint1/cgram.y:1.108
--- src/usr.bin/xlint/lint1/cgram.y:1.107	Mon Dec 28 18:51:18 2020
+++ src/usr.bin/xlint/lint1/cgram.y	Mon Dec 28 19:07:43 2020
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.107 2020/12/28 18:51:18 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.108 2020/12/28 19:07:43 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,12 +35,12 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.107 2020/12/28 18:51:18 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.108 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
-#include <limits.h>
 
 #include "lint1.h"
 

Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.54 src/usr.bin/xlint/lint1/err.c:1.55
--- src/usr.bin/xlint/lint1/err.c:1.54	Tue Jun  2 21:10:07 2020
+++ src/usr.bin/xlint/lint1/err.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: err.c,v 1.54 2020/06/02 21:10:07 christos Exp $	*/
+/*	$NetBSD: err.c,v 1.55 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,12 +37,12 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.54 2020/06/02 21:10:07 christos Exp $");
+__RCSID("$NetBSD: err.c,v 1.55 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
 #include <sys/types.h>
-#include <stdlib.h>
 #include <stdarg.h>
+#include <stdlib.h>
 
 #include "lint1.h"
 

Index: src/usr.bin/xlint/lint1/init.c
diff -u src/usr.bin/xlint/lint1/init.c:1.30 src/usr.bin/xlint/lint1/init.c:1.31
--- src/usr.bin/xlint/lint1/init.c:1.30	Mon Dec 28 19:02:16 2020
+++ src/usr.bin/xlint/lint1/init.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: init.c,v 1.30 2020/12/28 19:02:16 rillig Exp $	*/
+/*	$NetBSD: init.c,v 1.31 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,12 +37,12 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.30 2020/12/28 19:02:16 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.31 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
+#include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 
 #include "lint1.h"
 

Index: src/usr.bin/xlint/lint1/main1.c
diff -u src/usr.bin/xlint/lint1/main1.c:1.28 src/usr.bin/xlint/lint1/main1.c:1.29
--- src/usr.bin/xlint/lint1/main1.c:1.28	Mon Dec 28 12:52:45 2020
+++ src/usr.bin/xlint/lint1/main1.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $	*/
+/*	$NetBSD: main1.c,v 1.29 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,17 +37,17 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $");
+__RCSID("$NetBSD: main1.c,v 1.29 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
 #include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
 #include <errno.h>
 #include <limits.h>
 #include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 #include "lint1.h"
 

Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.93 src/usr.bin/xlint/lint1/scan.l:1.94
--- src/usr.bin/xlint/lint1/scan.l:1.93	Mon Dec 28 18:51:18 2020
+++ src/usr.bin/xlint/lint1/scan.l	Mon Dec 28 19:07:43 2020
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.93 2020/12/28 18:51:18 rillig Exp $ */
+/* $NetBSD: scan.l,v 1.94 2020/12/28 19:07:43 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,16 +35,16 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.93 2020/12/28 18:51:18 rillig Exp $");
+__RCSID("$NetBSD: scan.l,v 1.94 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
-#include <stdlib.h>
-#include <string.h>
-#include <limits.h>
-#include <float.h>
 #include <ctype.h>
 #include <errno.h>
+#include <float.h>
+#include <limits.h>
 #include <math.h>
+#include <stdlib.h>
+#include <string.h>
 
 #include "lint1.h"
 #include "cgram.h"

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.91 src/usr.bin/xlint/lint1/tree.c:1.92
--- src/usr.bin/xlint/lint1/tree.c:1.91	Mon Dec 28 19:02:16 2020
+++ src/usr.bin/xlint/lint1/tree.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: tree.c,v 1.91 2020/12/28 19:02:16 rillig Exp $	*/
+/*	$NetBSD: tree.c,v 1.92 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,15 +37,15 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.91 2020/12/28 19:02:16 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.92 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
-#include <stdlib.h>
-#include <string.h>
 #include <float.h>
 #include <limits.h>
 #include <math.h>
 #include <signal.h>
+#include <stdlib.h>
+#include <string.h>
 
 #include "lint1.h"
 #include "cgram.h"

Index: src/usr.bin/xlint/lint2/chk.c
diff -u src/usr.bin/xlint/lint2/chk.c:1.24 src/usr.bin/xlint/lint2/chk.c:1.25
--- src/usr.bin/xlint/lint2/chk.c:1.24	Mon Dec 28 18:49:02 2020
+++ src/usr.bin/xlint/lint2/chk.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: chk.c,v 1.24 2020/12/28 18:49:02 rillig Exp $ */
+/* $NetBSD: chk.c,v 1.25 2020/12/28 19:07:43 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,13 +38,13 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: chk.c,v 1.24 2020/12/28 18:49:02 rillig Exp $");
+__RCSID("$NetBSD: chk.c,v 1.25 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
 #include <ctype.h>
-#include <string.h>
 #include <limits.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "lint2.h"
 

Index: src/usr.bin/xlint/lint2/mem2.c
diff -u src/usr.bin/xlint/lint2/mem2.c:1.9 src/usr.bin/xlint/lint2/mem2.c:1.10
--- src/usr.bin/xlint/lint2/mem2.c:1.9	Sun Jun 20 22:20:17 2004
+++ src/usr.bin/xlint/lint2/mem2.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: mem2.c,v 1.9 2004/06/20 22:20:17 jmc Exp $	*/
+/*	$NetBSD: mem2.c,v 1.10 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,13 +37,13 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: mem2.c,v 1.9 2004/06/20 22:20:17 jmc Exp $");
+__RCSID("$NetBSD: mem2.c,v 1.10 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
 #include <sys/param.h>
 #include <sys/types.h>
-#include <unistd.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "lint2.h"
 

Index: src/usr.bin/xlint/lint2/msg.c
diff -u src/usr.bin/xlint/lint2/msg.c:1.11 src/usr.bin/xlint/lint2/msg.c:1.12
--- src/usr.bin/xlint/lint2/msg.c:1.11	Tue May 24 12:49:11 2011
+++ src/usr.bin/xlint/lint2/msg.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: msg.c,v 1.11 2011/05/24 12:49:11 joerg Exp $	*/
+/*	$NetBSD: msg.c,v 1.12 2020/12/28 19:07:43 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,11 +37,11 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: msg.c,v 1.11 2011/05/24 12:49:11 joerg Exp $");
+__RCSID("$NetBSD: msg.c,v 1.12 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
-#include <stdio.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <string.h>
 
 #include "lint2.h"

Index: src/usr.bin/xlint/lint2/read.c
diff -u src/usr.bin/xlint/lint2/read.c:1.28 src/usr.bin/xlint/lint2/read.c:1.29
--- src/usr.bin/xlint/lint2/read.c:1.28	Fri Sep  7 15:16:15 2018
+++ src/usr.bin/xlint/lint2/read.c	Mon Dec 28 19:07:43 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.28 2018/09/07 15:16:15 christos Exp $ */
+/* $NetBSD: read.c,v 1.29 2020/12/28 19:07:43 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,15 +38,15 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: read.c,v 1.28 2018/09/07 15:16:15 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.29 2020/12/28 19:07:43 rillig Exp $");
 #endif
 
 #include <ctype.h>
 #include <limits.h>
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stdarg.h>
 
 #include "lint2.h"
 

Reply via email to