#include "common.h" CConstBase::CConstBase(char *Name){ this->Name = (char *)malloc(lstrlen(Name)+1); lstrcpy(this->Name, Name); } CConstBase::~CConstBase(){ free(Name); Name=0; } CConst::CConst(char *Name, char *Expression):CConstBase(Name) { LONG_PTR lpIndex; Type = StaticCalculation(false, Expression, 0, &i64data, &lpIndex); } CConst::~CConst(){ } CConstMacro::CConstMacro(char *Name, char *Expression):CConstBase(Name) { } CConstMacro::~CConstMacro(){ } CDBConst::CDBConst(){ //定数管理領域を初期化 ppobj_Const = (CConst **)malloc(1); NumOfConst = 0; //定数マクロ管理領域を初期化 ppobj_Macro = (CConstMacro **)malloc(1); NumOfMacro = 0; } CDBConst::~CDBConst(){ int i; for(i=0; i