shithub: scc

Download patch

ref: ba98fe9738f78620b50c8351d46c95f923052dd7
parent: 4bec09a47dc5436f4650bab3dabad013098f99d5
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Jan 17 04:08:36 EST 2016

Remove inttypes inclusion

This type is no longher needed.

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -1,5 +1,4 @@
 
-#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -1,6 +1,5 @@
 
 #include <ctype.h>
-#include <inttypes.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -680,7 +679,7 @@
 cpp(void)
 {
 	static struct {
-		uint8_t token;
+		unsigned char token;
 		void (*fun)(void);
 	} *bp, clauses [] = {
 		{DEFINE, define},
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -1,5 +1,4 @@
 
-#include <inttypes.h>
 #include <setjmp.h>
 #include <stdarg.h>
 #include <stdio.h>
--- a/cc1/error.c
+++ b/cc1/error.c
@@ -2,7 +2,6 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <inttypes.h>
 
 #include "../inc/cc.h"
 #include "cc1.h"
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -1,4 +1,3 @@
-#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -1,7 +1,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <inttypes.h>
 #include <setjmp.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/cc1/main.c
+++ b/cc1/main.c
@@ -1,5 +1,4 @@
 
-#include <inttypes.h>
 #include <setjmp.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -1,6 +1,5 @@
 
 #include <stddef.h>
-#include <inttypes.h>
 #include <setjmp.h>
 #include <stdio.h>
 
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -1,5 +1,4 @@
 
-#include <inttypes.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>