udtypes.h

来自「Decompilation Dos Program is a technique」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef _UDTYPES_H
#define _UDTYPES_H
#include "Global.h"
#include "Variable.h"	// just for those enumerations

class UDType;
typedef struct
{
public:
  Byte Type;
  UDType *ptr;
  char *Name;
}UDTypeEntry;

class UDType
{
public:
  Byte Type;		// Typedef (or) Struct (or) Union?
  char *Name;
  int Size;
  int NumVars;
  UDTypeEntry *Entries;

  UDType();
  ~UDType();
  int Assign(char *str);
  void operator = (UDType &t);
  void Display(char *);
  void Invalidate();
};

class UDTypeList
{
  UDType Data;
  UDTypeList *Next;
public:
  UDTypeList();
  ~UDTypeList();
  UDType *Add(UDType &t);
  UDType *GetType(char *Name);
  void Display();
};

#endif		// UdTypes.h

⌨️ 快捷键说明

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