summaryrefslogtreecommitdiffstats
path: root/includes/emtp.hpp
diff options
context:
space:
mode:
authorAngelo Rossi <angelo.rossi.homelab@gmail.com>2023-06-21 12:04:16 +0000
committerAngelo Rossi <angelo.rossi.homelab@gmail.com>2023-06-21 12:04:16 +0000
commitb18347ffc9db9641e215995edea1c04c363b2bdf (patch)
treef3908dc911399f1a21e17d950355ee56dc0919ee /includes/emtp.hpp
Initial commit.
Diffstat (limited to 'includes/emtp.hpp')
-rw-r--r--includes/emtp.hpp75
1 files changed, 75 insertions, 0 deletions
diff --git a/includes/emtp.hpp b/includes/emtp.hpp
new file mode 100644
index 0000000..f0f7639
--- /dev/null
+++ b/includes/emtp.hpp
@@ -0,0 +1,75 @@
+//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*-
+
+// file emtp.hpp
+
+#ifndef _EMTP_HPP
+#define _EMTP_HPP
+
+#include <iostream>
+#include <iomanip>
+#include <functional>
+#include <utility>
+
+// Local includes.
+#include "blkcom.hpp"
+#include "dekspy.hpp"
+#include "utilities.hpp"
+#include "datain.hpp"
+
+// Macros.
+#define CHARC "c"
+#define TEXT4 "9"
+#define CHTACS "tacs"
+#define TEXT5 "blank"
+
+namespace emtp {
+
+ // types.
+
+ struct tagWords {
+ std::string sTextAY;
+ std::string sTextAX;
+ size_t mJptr;
+ };
+
+ typedef struct tagWords tWords;
+
+ struct tagRequest {
+ std::string m_sShortName;
+ std::string m_sLongName;
+ int m_nPointer;
+ std::function<void(void)> m_sRequest;
+ };
+
+ typedef struct tagRequest tRequest;
+
+ // Global variables.
+ extern const long int nLL34;
+ extern tWords pWords[];
+ extern std::string sSizesFileName;
+
+ // function prototypes.
+ void ioerr(const long int &);
+ void caterr(const long int &, const long int &);
+ void nextcard(void);
+ void cimage(void);
+ void dummy(void);
+ void tapsav(char *, std::fstream &, const long int &, const long int &);
+ void main10(void);
+ void subr10(void);
+ void namea6(const std::string &, long int *);
+ void tables(void);
+ void csup(const long int &);
+ void erexit(void);
+ void stoptp(void);
+ void setmar(int *);
+ void chrsiz(int *);
+ void setplt(void);
+ void setstd(void);
+ void interp(void);
+
+}
+
+#endif // _EMTP_HPP
+
+// end of file emtp.hpp