aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-03 00:15:30 -0700
committerMichael Forney <mforney@mforney.org>2021-10-03 00:45:06 -0700
commitac369afb858c399ba05638eb115ad69d58f42b95 (patch)
tree751ec788b12ba9eba96c3712565abac52b9c38f4
parent0dd2b051236ff1d286c0e4368862ce4f3fd3880c (diff)
downloadcproc-ac369afb858c399ba05638eb115ad69d58f42b95.tar.xz
qbe: Remove some unused includes
We now hard-code the float precision in the format string instead of using the float.h macros. The other headers were never used (except maybe prior to the first commit).
-rw-r--r--decl.c1
-rw-r--r--expr.c1
-rw-r--r--qbe.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/decl.c b/decl.c
index b7ed811..57a8014 100644
--- a/decl.c
+++ b/decl.c
@@ -1,5 +1,4 @@
#include <assert.h>
-#include <inttypes.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
diff --git a/expr.c b/expr.c
index fea06a0..57ef471 100644
--- a/expr.c
+++ b/expr.c
@@ -6,7 +6,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include "util.h"
#include "cc.h"
diff --git a/qbe.c b/qbe.c
index 91bcf11..a1f2773 100644
--- a/qbe.c
+++ b/qbe.c
@@ -1,7 +1,6 @@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
-#include <float.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>