-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_awk.h
More file actions
42 lines (39 loc) · 940 Bytes
/
base_awk.h
File metadata and controls
42 lines (39 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <qse/awk/StdAwk.hpp>
#include <qse/cmn/opt.h>
#include <qse/cmn/main.h>
#include <qse/cmn/mbwc.h>
#include <qse/cmn/stdio.h>
#include <cstring>
#include <locale.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <stdio.h>
typedef QSE::StdAwk StdAwk;
typedef QSE::StdAwk::Run Run;
typedef QSE::StdAwk::Value Value;
#include <dlfcn.h>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
using namespace std;
void setRtnInfo(Run &run ,Value &ret,int code,Value &val);
typedef vector< std::pair<string,StdAwk::FunctionHandler> > awk_func_entry;
typedef awk_func_entry (*func_entry)();
typedef void (*awk_module_init_func)(int p);
class base_awk: public StdAwk
{
public:
map<string,void *> dl_arr;
public:
base_awk ():m_id(0) { }
~base_awk () ;
int m_id;
int loadlib(string &lib_ini);
int get_module_id(){
m_id=m_id+100;
return m_id;
}
};