summaryrefslogtreecommitdiff
path: root/src/hdrdump
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-15 19:43:49 +0000
committermidipix <writeonce@midipix.org>2019-08-15 19:52:19 +0000
commitd6e02b8ff5da79d895197a3a1c4839e1047d6c57 (patch)
tree7dadfe592ed4d5cf1880768ab9a9fbedaf97a55d /src/hdrdump
parentef6791a9a90b6ac5e08b253dc3091bf322efda7d (diff)
downloadperk-d6e02b8ff5da79d895197a3a1c4839e1047d6c57.tar.bz2
perk-d6e02b8ff5da79d895197a3a1c4839e1047d6c57.tar.xz
perk.h: eliminate #include's of referential headers.
The primary purpose of this commit is to eliminate the pulling in of definitions not strictly needed by perk.h. In particular, perk.h does not require any of the PE constants to be defined, and only refers to the raw PE structs by pointer. The secondary purpose of this commit is to allow for inclusion of perk.h by software that already comes with its own set of PE const and struct definitions.
Diffstat (limited to 'src/hdrdump')
-rw-r--r--src/hdrdump/pe_hdrdump_coff_image_hdr.c2
-rw-r--r--src/hdrdump/pe_hdrdump_coff_object_hdr.c2
-rw-r--r--src/hdrdump/pe_hdrdump_export_hdr.c2
-rw-r--r--src/hdrdump/pe_hdrdump_image_dos_hdr.c2
-rw-r--r--src/hdrdump/pe_hdrdump_import_tbl.c2
-rw-r--r--src/hdrdump/pe_hdrdump_opt_hdr.c2
-rw-r--r--src/hdrdump/pe_hdrdump_sec_tbl.c2
7 files changed, 14 insertions, 0 deletions
diff --git a/src/hdrdump/pe_hdrdump_coff_image_hdr.c b/src/hdrdump/pe_hdrdump_coff_image_hdr.c
index 04b47f7..d5c6e51 100644
--- a/src/hdrdump/pe_hdrdump_coff_image_hdr.c
+++ b/src/hdrdump/pe_hdrdump_coff_image_hdr.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_coff_object_hdr.c b/src/hdrdump/pe_hdrdump_coff_object_hdr.c
index ee3b870..b008456 100644
--- a/src/hdrdump/pe_hdrdump_coff_object_hdr.c
+++ b/src/hdrdump/pe_hdrdump_coff_object_hdr.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_export_hdr.c b/src/hdrdump/pe_hdrdump_export_hdr.c
index 4f96640..eae87f2 100644
--- a/src/hdrdump/pe_hdrdump_export_hdr.c
+++ b/src/hdrdump/pe_hdrdump_export_hdr.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_image_dos_hdr.c b/src/hdrdump/pe_hdrdump_image_dos_hdr.c
index b413565..5d6fe77 100644
--- a/src/hdrdump/pe_hdrdump_image_dos_hdr.c
+++ b/src/hdrdump/pe_hdrdump_image_dos_hdr.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_import_tbl.c b/src/hdrdump/pe_hdrdump_import_tbl.c
index 0a7f8d2..252352c 100644
--- a/src/hdrdump/pe_hdrdump_import_tbl.c
+++ b/src/hdrdump/pe_hdrdump_import_tbl.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_opt_hdr.c b/src/hdrdump/pe_hdrdump_opt_hdr.c
index 4df3315..566fd0f 100644
--- a/src/hdrdump/pe_hdrdump_opt_hdr.c
+++ b/src/hdrdump/pe_hdrdump_opt_hdr.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"
diff --git a/src/hdrdump/pe_hdrdump_sec_tbl.c b/src/hdrdump/pe_hdrdump_sec_tbl.c
index 1254258..99e7f58 100644
--- a/src/hdrdump/pe_hdrdump_sec_tbl.c
+++ b/src/hdrdump/pe_hdrdump_sec_tbl.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <perk/perk.h>
+#include <perk/perk_consts.h>
+#include <perk/perk_structs.h>
#include <perk/perk_output.h>
#include "perk_driver_impl.h"
#include "perk_hdrdump_impl.h"