Commit Diff


commit - 1826e8069b12965bd84eec8e675a809a575ae7f5
commit + b58dfdc420bb51d6027a6dbff55ad2bd1235021c
blob - 15dde1419ccd216ec1bb6669c04d11da04f6b5c2
blob + 3344aeac27a0c5d0e85706e5967a72c931ebb1b1
--- diff.c
+++ diff.c
@@ -19,13 +19,14 @@
 
 /* Commandline diff utility to test diff implementations. */
 
+#include <sys/cdefs.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 
 #include <err.h>
 #include <fcntl.h>
-#include <inttypes.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
 
blob - 58ac3edf910a5e2bbe7786b68cfc1b65c8d3abbf
blob + a99ba63a9c677f5ece15973291d9a5c5ae3e84dc
--- diff_atomize_text.c
+++ diff_atomize_text.c
@@ -18,6 +18,9 @@
 
 /* Split source by line breaks, and calculate a simplistic checksum. */
 
+#include <stdint.h>
+
+#include "arraylist.h"
 #include "diff_main.h"
 
 static int
blob - 8d0a4e044720b05ed22b8d9f0db8e3add0a57e63
blob + 56a2983c1ad2e85915e26f7216896658700a0d40
--- diff_main.c
+++ diff_main.c
@@ -20,16 +20,12 @@
  * Generic infrastructure to implement various diff algorithms (implementation).
  */
 
-#include <sys/queue.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <stdio.h>
-#include <string.h>
-#include <limits.h>
 
-#include <assert.h>
-
+#include "arraylist.h"
 #include "diff_main.h"
 #include "debug.h"
 
blob - 06fcdec25a7df06734dad168bc906fdcde16973e
blob + 4ea96bff15e84fb22f3ca280abfa462033a58c3c
--- diff_myers.c
+++ diff_myers.c
@@ -22,6 +22,9 @@
  * and the canonical Myers algorithm (using quadratic space).
  */
 
+#include <stdbool.h>
+#include <stdlib.h>
+
 #include "diff_main.h"
 #include "debug.h"
 
blob - d018670201b56be5b1902a1265459412acd1e4ba
blob + 3aec65dd78cefe1855aa4b7c3ea83ac3ca96598e
--- diff_output.c
+++ diff_output.c
@@ -16,6 +16,11 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
 #include "diff_main.h"
 #include "debug.h"
 
blob - d95b912dc924daab9e84510717bd4b79c2aff320
blob + e23b94cafee7ab142de2f55d8cb65f54ff9a1981
--- diff_patience.c
+++ diff_patience.c
@@ -22,6 +22,8 @@
  */
 
 #include <assert.h>
+#include <stdbool.h>
+#include <stdlib.h>
 
 #include "diff_main.h"
 #include "debug.h"