aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-21 03:13:22 +0000
committer_ov4 <ov4@ov4.org>2026-09-21 03:13:22 +0000
commit9f5936bf64deb625a27259d778937e281ca19cea (patch)
tree71e72babac9b6c2119e73f357f4e72587c63e1d7
parentd8db366565094d5bbb5eef5855e5036f55cfdac4 (diff)
add history manager
-rw-r--r--include/history.h14
-rw-r--r--src/history.cc18
2 files changed, 32 insertions, 0 deletions
diff --git a/include/history.h b/include/history.h
new file mode 100644
index 0000000..77ab9ed
--- /dev/null
+++ b/include/history.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+namespace ov4
+{
+
+inline std::vector<std::string> history_vec;
+
+void add_history(const std::string &s);
+void clear_history();
+
+}
diff --git a/src/history.cc b/src/history.cc
new file mode 100644
index 0000000..79f0ee2
--- /dev/null
+++ b/src/history.cc
@@ -0,0 +1,18 @@
+#include "history.h"
+
+using namespace std;
+
+namespace ov4
+{
+
+void add_history(const std::string &s)
+{
+ history_vec.push_back(s);
+}
+
+void clear_history()
+{
+ history_vec.clear();
+}
+
+}