aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/global.h11
-rw-r--r--include/job.h4
-rw-r--r--include/parse.h13
-rw-r--r--include/setting.h8
-rw-r--r--include/util.h2
5 files changed, 26 insertions, 12 deletions
diff --git a/include/global.h b/include/global.h
new file mode 100644
index 0000000..ee1141e
--- /dev/null
+++ b/include/global.h
@@ -0,0 +1,11 @@
+#pragma once
+
+namespace ov4
+{
+extern int verbose;
+
+constexpr int MAXLINE = 1024;
+constexpr int MAXARGS = 128;
+
+
+}
diff --git a/include/job.h b/include/job.h
index cbd9b30..e94bda6 100644
--- a/include/job.h
+++ b/include/job.h
@@ -10,10 +10,8 @@
#include <sys/wait.h>
#include <errno.h>
-#include "setting.h"
+#include "global.h"
-#define MAXLINE 1024 /* max line size */
-#define MAXARGS 128 /* max args on a command line */
#define MAXJOBS 16 /* max jobs at any point in time */
#define MAXJID 1<<16 /* max job ID */
diff --git a/include/parse.h b/include/parse.h
new file mode 100644
index 0000000..8fdbe12
--- /dev/null
+++ b/include/parse.h
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+
+#include "global.h"
+
+namespace ov4
+{
+
+int parseline(const char *cmdline, char **argv);
+
+}
diff --git a/include/setting.h b/include/setting.h
deleted file mode 100644
index ec4f08b..0000000
--- a/include/setting.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#pragma once
-
-namespace ov4
-{
-
-extern int verbose;
-
-}
diff --git a/include/util.h b/include/util.h
index 8df2b7f..dd51fff 100644
--- a/include/util.h
+++ b/include/util.h
@@ -13,7 +13,7 @@
#include <vector>
#include <string>
-#include "setting.h"
+#include "global.h"
#define LOG !(ov4::GLOBAL_DEBUG && verbose) ? (void)0 : ov4::LogVoidify() & std::clog