summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-10 12:56:26 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:36 -0500
commit456cde2a6602d7e786189a49694f53e7de5140d0 (patch)
tree9e93289708122e578fe52de8d991964c4ba18713
parent7d4640f3f18eef2bd1306fc8f5e39480f9086b51 (diff)
downloadperk-456cde2a6602d7e786189a49694f53e7de5140d0.tar.bz2
perk-456cde2a6602d7e786189a49694f53e7de5140d0.tar.xz
driver: move to header extern declaration of pe_default_options[].
-rw-r--r--src/driver/pe_driver_ctx.c2
-rw-r--r--src/internal/perk_driver_impl.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index c3345de..bf55e5e 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -15,8 +15,6 @@
#include "perk_driver_impl.h"
#include "argv/argv.h"
-extern const struct argv_option pe_default_options[];
-
struct pe_driver_ctx_alloc {
struct argv_meta * meta;
struct pe_driver_ctx_impl ctx;
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h
index 681cd3c..7e9e4f7 100644
--- a/src/internal/perk_driver_impl.h
+++ b/src/internal/perk_driver_impl.h
@@ -7,6 +7,9 @@
#include <perk/perk.h>
#include <perk/perk_meta.h>
+#include "argv/argv.h"
+
+extern const struct argv_option pe_default_options[];
enum app_tags {
TAG_HELP,