-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGNAME.H
41 lines (34 loc) · 938 Bytes
/
GNAME.H
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
// gname.h
//
// generic name class - class of items comprising names and locations
// - used for exports,imports and names classes
// - common parts separated into this class Build 16.
#ifndef gname_h
#define gname_h
#include "list.h"
#include "common.h"
#include "savefile.h"
#define GNAME_MAXLEN 40
#pragma pack(push,pack_save,1)
struct gnameitem
{ lptr addr;
char *name;
};
#pragma pack(pop,pack_save)
class gname:public slist <gnameitem *>
{ public:
gname();
~gname();
void addname(lptr loc,char *nm);
bool isname(lptr loc);
void printname(lptr loc);
void delname(lptr loc);
dword getoffsfromname(char *nm);
// virtual functions from slist
int compare(gnameitem *i,gnameitem *j);
void delfunc(gnameitem *i);
};
extern gname expt; // exports table
extern gname import; // imports table
extern gname name; // user defined names
#endif