⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 relocs.h

📁 反汇编工具borg2.27源码
💻 H
字号:
//					relocs.h
//

#ifndef relocs_h
#define relocs_h

#include "list.h"
#include "common.h"
#include "savefile.h"

// relocation types, should be self explanatory. Most are not generally used by programs,
// mainly reloc_offs32 by the PE file format.
enum reloctype {RELOC_NONE=1,RELOC_SEG,RELOC_OFFS16,RELOC_OFFS32,RELOC_SEGOFFS16,RELOC_SEGOFFS32};

// implemented in reloc.cpp.
struct relocitem;

// class definition.
class relocs: public slist <relocitem *>
{ public:
    int sizeofitem;

  public:
	 relocs();
	 ~relocs();
	 void addreloc(lptr loc,reloctype type);
	 bool isreloc(lptr loc);
	 bool relocfile(void);
    relocitem *newitem(void);
    bool write_item(savefile *sf);
    bool read_item(savefile *sf);
    // virtual functions from slist
    int compare(relocitem *i,relocitem *j);
};

extern relocs reloc;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -