From b18347ffc9db9641e215995edea1c04c363b2bdf Mon Sep 17 00:00:00 2001 From: Angelo Rossi Date: Wed, 21 Jun 2023 12:04:16 +0000 Subject: Initial commit. --- includes/emtp.hpp | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 includes/emtp.hpp (limited to 'includes/emtp.hpp') 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 +#include +#include +#include + +// 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 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 -- cgit v1.2.3