| 1 | #pragma once | 
|---|
| 2 |  | 
|---|
| 3 | //#define _CRT_SECURE_NO_DEPRECATE | 
|---|
| 4 | #pragma warning(disable : 4996) | 
|---|
| 5 |  | 
|---|
| 6 | #include <option.h> | 
|---|
| 7 |  | 
|---|
| 8 | using namespace std; | 
|---|
| 9 |  | 
|---|
| 10 | #ifdef _AMD64_ | 
|---|
| 11 | #include "../BasicCompiler64/resource.h" | 
|---|
| 12 | #include "../BasicCompiler64/CommandValue.h" | 
|---|
| 13 | #include "../BasicCompiler64/FunctionValue.h" | 
|---|
| 14 | #define OPCODE_H_PATH "../BasicCompiler64/opcode.h" | 
|---|
| 15 | #else | 
|---|
| 16 | #include "../BasicCompiler32/resource.h" | 
|---|
| 17 | #include "../BasicCompiler32/CommandValue.h" | 
|---|
| 18 | #include "../BasicCompiler32/FunctionValue.h" | 
|---|
| 19 | #define OPCODE_H_PATH "../BasicCompiler32/opcode.h" | 
|---|
| 20 | #endif | 
|---|
| 21 |  | 
|---|
| 22 | #include <jenga/include/smoothie/BasicFixed.h> | 
|---|
| 23 | #include "../BasicCompiler_Common/NonVolatile.h" | 
|---|
| 24 | #include "../BasicCompiler_Common/psapi.h" | 
|---|
| 25 | #include "../BasicCompiler_Common/BreakPoint.h" | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 |  | 
|---|
| 29 | #if defined(JPN) | 
|---|
| 30 | //日本語 | 
|---|
| 31 | #include "common_msg_jpn.h" | 
|---|
| 32 | #else | 
|---|
| 33 | //英語 | 
|---|
| 34 | #include "common_msg_eng.h" | 
|---|
| 35 | #endif | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 | #define PTR_SIZE        sizeof(LONG_PTR) | 
|---|
| 39 | #define OBJECT_HEAD_SIZE PTR_SIZE*4 | 
|---|
| 40 |  | 
|---|
| 41 | #define MAX_LEN         65535 | 
|---|
| 42 | #define DIGIT_SIZE      128 | 
|---|
| 43 | #define MAX_PARMS       64 | 
|---|
| 44 | #define MAX_ARRAYDIM    16 | 
|---|
| 45 | #define MAX_HASH        32761 | 
|---|
| 46 |  | 
|---|
| 47 |  | 
|---|
| 48 | #ifdef _AMD64_ | 
|---|
| 49 | #define PLATFORM    64 | 
|---|
| 50 | #else | 
|---|
| 51 | #define PLATFORM    32 | 
|---|
| 52 | typedef long LONG_PTR; | 
|---|
| 53 | typedef DWORD ULONG_PTR; | 
|---|
| 54 | #endif | 
|---|
| 55 |  | 
|---|
| 56 |  | 
|---|
| 57 | //未定義の定数情報 | 
|---|
| 58 | #ifndef IMAGE_FILE_MACHINE_AMD64 | 
|---|
| 59 | #define IMAGE_FILE_MACHINE_AMD64 0x8664 | 
|---|
| 60 | #endif | 
|---|
| 61 |  | 
|---|
| 62 | #ifdef _AMD64_ | 
|---|
| 63 | #ifndef IMAGE_SIZEOF_NT_OPTIONAL64_HEADER | 
|---|
| 64 | #define IMAGE_SIZEOF_NT_OPTIONAL64_HEADER    240 | 
|---|
| 65 | #endif | 
|---|
| 66 | #else | 
|---|
| 67 | #ifndef IMAGE_SIZEOF_NT_OPTIONAL32_HEADER | 
|---|
| 68 | #define IMAGE_SIZEOF_NT_OPTIONAL32_HEADER    224 | 
|---|
| 69 | #endif | 
|---|
| 70 | #endif | 
|---|
| 71 |  | 
|---|
| 72 |  | 
|---|
| 73 | extern HWND hOwnerEditor; | 
|---|
| 74 | extern HANDLE hHeap; | 
|---|
| 75 | extern int cp; | 
|---|
| 76 | extern int typeOfPtrChar; | 
|---|
| 77 | extern int typeOfPtrUChar; | 
|---|
| 78 |  | 
|---|
| 79 |  | 
|---|
| 80 |  | 
|---|
| 81 | ////////////////////////////////////////// | 
|---|
| 82 | // BasicCompiler、ProjectEditor共通の定数 | 
|---|
| 83 | ////////////////////////////////////////// | 
|---|
| 84 |  | 
|---|
| 85 | //サイズ変更枠の太さ | 
|---|
| 86 | #define LEVER_THICK 5 | 
|---|
| 87 |  | 
|---|
| 88 | #define WM_SHOWERROR            WM_USER+70  //エラー表示メッセージ | 
|---|
| 89 |  | 
|---|
| 90 | #define WM_SETCOMPILEVIEW       WM_USER+71  //コンパイラウィンドウが表示されたとき | 
|---|
| 91 | #define WM_DESTROYCOMPILEVIEW   WM_USER+72  //コンパイラウィンドウが破棄されたとき | 
|---|
| 92 |  | 
|---|
| 93 | #define WM_SETDEBUGGERBASE      WM_USER+73  //デバッガベースウィンドウが表示されたとき | 
|---|
| 94 | #define WM_DESTROYDEBUGGERBASE  WM_USER+74  //デバッガベースウィンドウが破棄されたとき | 
|---|
| 95 |  | 
|---|
| 96 | #define WM_SETDEBUGGERVIEW      WM_USER+75  //デバッガウィンドウが表示されたとき | 
|---|
| 97 | #define WM_DESTROYDEBUGGERVIEW  WM_USER+76  //デバッガウィンドウが表示されたとき | 
|---|
| 98 |  | 
|---|
| 99 | /////////////////////////////////////////// | 
|---|
| 100 |  | 
|---|
| 101 |  | 
|---|
| 102 | #define WM_SHOWVARLIST          WM_USER+80 | 
|---|
| 103 | #define WM_VARLIST_CLOSE        WM_USER+81  //変数リストの終了メッセージ(破棄のみ、解放なし) | 
|---|
| 104 |  | 
|---|
| 105 |  | 
|---|
| 106 |  | 
|---|
| 107 | /////////////////////////////////////////// | 
|---|
| 108 | // デバッグ コマンド | 
|---|
| 109 |  | 
|---|
| 110 | #define WM_DEBUG_CONTINUE   WM_USER+200 | 
|---|
| 111 | #define WM_STEP_IN          WM_USER+201 | 
|---|
| 112 | #define WM_STEP_OVER        WM_USER+202 | 
|---|
| 113 | #define WM_STEP_CURSOR      WM_USER+203 | 
|---|
| 114 | #define WM_DEBUG_STOP       WM_USER+204 | 
|---|
| 115 | #define WM_DEBUG_PAUSE      WM_USER+205 | 
|---|
| 116 | #define WM_CLOSE_DEBUGGER   WM_USER+206 | 
|---|
| 117 |  | 
|---|
| 118 | /////////////////////////////////////////// | 
|---|
| 119 |  | 
|---|
| 120 |  | 
|---|
| 121 |  | 
|---|
| 122 |  | 
|---|
| 123 | #define FILE_ALIGNMENT  0x1000 | 
|---|
| 124 | #define MEM_ALIGNMENT   0x1000 | 
|---|
| 125 | #define EXE_HEADER_SIZE 0x1000 | 
|---|
| 126 |  | 
|---|
| 127 |  | 
|---|
| 128 |  | 
|---|
| 129 | struct ERRORINFO{ | 
|---|
| 130 | char *FileName; | 
|---|
| 131 | int line; | 
|---|
| 132 | }; | 
|---|
| 133 |  | 
|---|
| 134 | //変数の相対情報 | 
|---|
| 135 | struct RELATIVE_VAR{ | 
|---|
| 136 | DWORD dwKind; | 
|---|
| 137 | LONG_PTR offset; | 
|---|
| 138 | BOOL bOffsetOffset; | 
|---|
| 139 | }; | 
|---|
| 140 |  | 
|---|
| 141 |  | 
|---|
| 142 | #define CODETYPE_SYSTEMPROC     0x0001 | 
|---|
| 143 | #define CODETYPE_DEBUGPROC      0x0002 | 
|---|
| 144 | struct LINEINFO{ | 
|---|
| 145 | int TopCp; | 
|---|
| 146 | int TopObp; | 
|---|
| 147 | DWORD dwCodeType; | 
|---|
| 148 | }; | 
|---|
| 149 | struct RESOURCEDATAINFO{ | 
|---|
| 150 | DWORD dwId; | 
|---|
| 151 | char FileName[MAX_PATH]; | 
|---|
| 152 | }; | 
|---|
| 153 |  | 
|---|
| 154 |  | 
|---|
| 155 | ////////////////////////////////////////// | 
|---|
| 156 | // リソース ヘッダ(アイコン、カーソル用) | 
|---|
| 157 | typedef struct{ | 
|---|
| 158 | WORD idReserved; | 
|---|
| 159 | WORD idType; | 
|---|
| 160 | WORD idCount; | 
|---|
| 161 | }ICONDIR,CURSORDIR; | 
|---|
| 162 |  | 
|---|
| 163 |  | 
|---|
| 164 | ///////////////////////////// | 
|---|
| 165 | // .curファイルのヘッダ情報 | 
|---|
| 166 | struct CURSORDIRENTRY{ | 
|---|
| 167 | BYTE bWidth; | 
|---|
| 168 | BYTE bHeight; | 
|---|
| 169 | BYTE bColorCount; | 
|---|
| 170 | BYTE bReserved; | 
|---|
| 171 | WORD wXHotspot; | 
|---|
| 172 | WORD wYHotspot; | 
|---|
| 173 | DWORD dwBytesInRes; | 
|---|
| 174 | DWORD dwImageOffset; | 
|---|
| 175 | }; | 
|---|
| 176 | struct CURSORDIRENTRY_RES{ | 
|---|
| 177 | WORD wWidth; | 
|---|
| 178 | WORD wHeight; | 
|---|
| 179 | WORD wXHotspot; | 
|---|
| 180 | WORD wYHotspot; | 
|---|
| 181 | DWORD dwBytesInRes; | 
|---|
| 182 | WORD wCursorNum; | 
|---|
| 183 | }; | 
|---|
| 184 |  | 
|---|
| 185 |  | 
|---|
| 186 | //////////////////////////// | 
|---|
| 187 | //.icoファイルのヘッダ情報 | 
|---|
| 188 | struct ICONDIRENTRY{ | 
|---|
| 189 | BYTE bWidth; | 
|---|
| 190 | BYTE bHeight; | 
|---|
| 191 | BYTE bColorCount; | 
|---|
| 192 | BYTE bReserved; | 
|---|
| 193 | WORD wPlanes; | 
|---|
| 194 | WORD wBitCount; | 
|---|
| 195 | DWORD dwBytesInRes; | 
|---|
| 196 | DWORD dwImageOffset; | 
|---|
| 197 | }; | 
|---|
| 198 | struct ICONDIRENTRY_RES{ | 
|---|
| 199 | BYTE bWidth; | 
|---|
| 200 | BYTE bHeight; | 
|---|
| 201 | BYTE bColorCount; | 
|---|
| 202 | BYTE bReserved; | 
|---|
| 203 | WORD wPlanes; | 
|---|
| 204 | WORD wBitCount; | 
|---|
| 205 | DWORD dwBytesInRes; | 
|---|
| 206 | WORD wIconNum; | 
|---|
| 207 | }; | 
|---|
| 208 |  | 
|---|
| 209 |  | 
|---|
| 210 |  | 
|---|
| 211 | #include "../BasicCompiler_Common/PESchedule.h" | 
|---|
| 212 | #include "../BasicCompiler_Common/VariableOpe.h" | 
|---|
| 213 |  | 
|---|
| 214 |  | 
|---|
| 215 |  | 
|---|
| 216 | bool StaticCalculation(bool enableerror, const char *Command,int BaseType,_int64 *pi64data,Type &resultType,BOOL bDebuggingWatchList=0, bool *pIsMemoryAccessError=NULL); | 
|---|
| 217 |  | 
|---|
| 218 |  | 
|---|
| 219 | //BasicCompiler.cpp | 
|---|
| 220 | void HeapDefaultFree(LPVOID lpMem); | 
|---|
| 221 | void ts(int i); | 
|---|
| 222 | void ts(int i,int i2); | 
|---|
| 223 | void ts(char *msg); | 
|---|
| 224 | void ts(char *msg,char *title); | 
|---|
| 225 | void epi_check(); | 
|---|
| 226 | void GetRelationalPath(char *path,char *dir); | 
|---|
| 227 | void GetFullPath( char *path, const string &baseDirPath ); | 
|---|
| 228 | void ShowErrorLine(int LineNum,char *FileName); | 
|---|
| 229 | BOOL GetFilePathDialog(HWND hwnd,char *filename,LPSTR Filter,LPSTR Title,BOOL bOpen); | 
|---|
| 230 | void MakeMessageText(char *buffer,char *msg,int flag); | 
|---|
| 231 |  | 
|---|
| 232 | //hash.cpp | 
|---|
| 233 | int hash_default(const char *name); | 
|---|
| 234 | DllProc *GetDeclareHash(const char *name); | 
|---|
| 235 | void GetOverloadSubHash( const char *lpszName, std::vector<const UserProc *> &subs ); | 
|---|
| 236 | const UserProc *GetSubHash(const char *name,BOOL bError=0); | 
|---|
| 237 | const UserProc *GetMethodHash(const char *ObjectName,const char *MethodName,const char *Parameter,BOOL bError=0); | 
|---|
| 238 | const UserProc *GetClassMethod( const char *className, const char *methodName ); | 
|---|
| 239 |  | 
|---|
| 240 | //Object.cpp | 
|---|
| 241 | void CallConstructor( const char *ObjectName,const Subscripts &subscripts, const Type &type,const char *Parameter); | 
|---|
| 242 | bool Operator_New( const char *expression, const Type &baseType, Type &resultType ); | 
|---|
| 243 |  | 
|---|
| 244 | //Overload.sbp | 
|---|
| 245 | class Parameters; | 
|---|
| 246 | const UserProc *OverloadSolutionWithStrParam( | 
|---|
| 247 | const char *name, | 
|---|
| 248 | std::vector<const UserProc *> &subs, | 
|---|
| 249 | const char *Parameter, | 
|---|
| 250 | const char *ObjectName); | 
|---|
| 251 | const UserProc *OverloadSolution( | 
|---|
| 252 | const char *name, | 
|---|
| 253 | std::vector<const UserProc *> &subs, | 
|---|
| 254 | const Parameters ¶ms, | 
|---|
| 255 | const Type &returnType ); | 
|---|
| 256 |  | 
|---|
| 257 | //Debug.cpp | 
|---|
| 258 | void Debugger_StepIn(void); | 
|---|
| 259 | void Debugger_StepOver(void); | 
|---|
| 260 | void Debugger_StepCursor(void); | 
|---|
| 261 | void Debugger_Stop(void); | 
|---|
| 262 | void Debugger_Pause(void); | 
|---|
| 263 | ULONG_PTR rva_to_real(DWORD p); | 
|---|
| 264 | UserProc *GetSubFromObp(ULONG_PTR pos); | 
|---|
| 265 | void ReadOpBuffer(); | 
|---|
| 266 | void DebugProgram(void); | 
|---|
| 267 |  | 
|---|
| 268 | //VarList.cpp | 
|---|
| 269 | void InitVarList(DWORD dwThreadId); | 
|---|
| 270 | BOOL CALLBACK DlgDebugger(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); | 
|---|
| 271 | BOOL CALLBACK DlgVarList(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); | 
|---|
| 272 |  | 
|---|
| 273 | //WatchList.cpp | 
|---|
| 274 | ULONG_PTR Debugging_GetVarPtr(RELATIVE_VAR *pRelativeVar); | 
|---|
| 275 | ULONG_PTR Debugging_GetThisPtrOffset(LONG_PTR obp_Rip); | 
|---|
| 276 | int Debugging_GetVarOffset( char *variable,RELATIVE_VAR *pRelativeVar, Type &resultType, Subscripts *pResultSubscripts = NULL ); | 
|---|
| 277 |  | 
|---|
| 278 | //MakeExe.cpp | 
|---|
| 279 | void StepCompileProgress(void); | 
|---|
| 280 | void AddSourceCode(char *buffer); | 
|---|
| 281 | void OutputExe(void); | 
|---|
| 282 | int MainThread(DWORD dummy); | 
|---|
| 283 |  | 
|---|
| 284 | //Intermediate_Step1.cpp | 
|---|
| 285 | void ChangeReturnCode(char *buffer); | 
|---|
| 286 | void DeleteComment(char *buffer); | 
|---|
| 287 | void KillReturnCode(char *buffer); | 
|---|
| 288 | void CheckParenthesis(char *buffer); | 
|---|
| 289 | BOOL CheckParenthesis2(char *buffer); | 
|---|
| 290 | void DirectiveCheck(void); | 
|---|
| 291 | void NextCommandFormat(char *buffer); | 
|---|
| 292 | void SetEscapeSequenceFormat(char *buffer); | 
|---|
| 293 | void DefCommandFormat(char *buffer); | 
|---|
| 294 | void IfCommandFormat(char *buffer); | 
|---|
| 295 | void CheckPareCommand(void); | 
|---|
| 296 |  | 
|---|
| 297 | //Intermediate_Step2.cpp | 
|---|
| 298 | bool GetConstInfo(void); | 
|---|
| 299 | void ChangeCommandToCode(char *buffer); | 
|---|
| 300 |  | 
|---|
| 301 | //preprocessor.cpp | 
|---|
| 302 | char *OpenBasicFile(char *FileName); | 
|---|
| 303 |  | 
|---|
| 304 | //Resource.cpp | 
|---|
| 305 | void GetResourceData(char *FileName); | 
|---|
| 306 |  | 
|---|
| 307 | //CommandFormat.cpp | 
|---|
| 308 | void ComOpen(char *Parameter,char *buffer,int nowLine); | 
|---|
| 309 | void ComClose(char *Parameter,char *buffer); | 
|---|
| 310 | void ComField(char *Parameter,char *buffer); | 
|---|
| 311 | void ComLine(char *Parameter,char *buffer,int nowLine); | 
|---|
| 312 | void ComCircle(char *Parameter,char *buffer,int nowLine); | 
|---|
| 313 | void ComPSet(char *Parameter,char *buffer,int nowLine); | 
|---|
| 314 | void ComPaint(char *Parameter,char *buffer,int nowLine); | 
|---|
| 315 |  | 
|---|
| 316 | // StrOperation.cpp | 
|---|
| 317 | void KillSpaces(char *str1,char *str2); | 
|---|
| 318 | void KillStringSpaces(char *str); | 
|---|
| 319 | BOOL RemoveStringQuotes(char *str); | 
|---|
| 320 | void RemoveStringPare(char *str); | 
|---|
| 321 | void RemoveStringBracket(char *str); | 
|---|
| 322 | void SetStringQuotes(char *str); | 
|---|
| 323 | int FormatString_EscapeSequence(char *buffer); | 
|---|
| 324 | void SlideString(char *str,int slide); | 
|---|
| 325 | void SlideBuffer(char *buffer,int length,int slide); | 
|---|
| 326 | int GetCpFromLine(int LineNum); | 
|---|
| 327 | BOOL GetLineNum(int pos,int *pLine,char *FileName); | 
|---|
| 328 | char GetEndXXXCommand(char es); | 
|---|
| 329 | void GetDefaultNameFromES(char es,char *name); | 
|---|
| 330 | const std::string &FormatEscapeSequenceStringToDefaultString( const std::string &source ); | 
|---|
| 331 | BOOL IsFile(char *path); | 
|---|
| 332 | BOOL ShortPathToLongPath(char ShortPath[MAX_PATH],char *LongPath); | 
|---|
| 333 | BOOL GetFolder(HWND hWnd,char *folder,char *OpenFolderTitle); | 
|---|
| 334 | void ShortPathToLongPath(const char *ShortPath,char *LongPath); | 
|---|
| 335 |  | 
|---|
| 336 | //calculation.cpp | 
|---|
| 337 | bool IsNumberTopChar(const char *buffer); | 
|---|
| 338 | bool IsNumberChar(const char c); | 
|---|
| 339 | BOOL IsNumCalcMark(const char *Command,int p); | 
|---|
| 340 | BOOL IsNumCalcMark_Back(const char *Command,int p); | 
|---|
| 341 | BOOL IsStrCalcMark(const char c); | 
|---|
| 342 | BOOL IsExponent(const char *Command,int p); | 
|---|
| 343 | int GetLiteralIndex(_int64 i64data); | 
|---|
| 344 | int NeutralizationType(int type1,LONG_PTR index1,int type2,LONG_PTR index2); | 
|---|
| 345 | DWORD GetLiteralValue(char *value,_int64 *pi64,int BaseType); | 
|---|
| 346 | int IsStrCalculation(char *Command); | 
|---|
| 347 | BYTE GetCalcId(const char *Command,int *pi); | 
|---|
| 348 | BOOL GetNumOpeElements(const char *Command,int *pnum, | 
|---|
| 349 | char *values[255],long calc[255],long stack[255]); | 
|---|
| 350 |  | 
|---|
| 351 | //NumOpe_GetType.cpp | 
|---|
| 352 | int AutoBigCast(int BaseType,int CalcType); | 
|---|
| 353 | BOOL CheckCalcType(int idCalc,int *type,int sp); | 
|---|
| 354 | bool GetTermType( const char *term, Type &resultType, bool &isLiteral, bool *pIsClassName = NULL ); | 
|---|
| 355 | bool NumOpe_GetType( const char *expression, const Type &baseType, Type &resultType ); | 
|---|
| 356 |  | 
|---|
| 357 | //Subroutine.cpp | 
|---|
| 358 | int GetCallProcName(char *buffer,char *name); | 
|---|
| 359 | int GetProc(char *name,void **ppInfo); | 
|---|
| 360 | void SplitObjectName(const char *name,char *ObjectName,int *pRefType); | 
|---|
| 361 | bool CallProc( int kind, const void *pProc, const char *fullCallName, const char *lpszParms, Type &resultType, bool isCallOn = true ); | 
|---|
| 362 | bool CallPropertyMethod( const char *variable, const char *rightSide, Type &resultType); | 
|---|
| 363 | bool GetReturnTypeOfPropertyMethod( const char *variable, const char *rightSide, Type &resultType ); | 
|---|
| 364 | bool GetReturnTypeOfIndexerGetterProc( const CClass &objClass, Type &resultType ); | 
|---|
| 365 | int AddProcPtrInfo( const string &typeExpression, int nowLine ); | 
|---|
| 366 | bool IsNeedProcCompile(); | 
|---|
| 367 |  | 
|---|
| 368 | //OldStatement.cpp | 
|---|
| 369 | void Opcode_Input(const char *Parameter); | 
|---|
| 370 | void Opcode_Print(const char *Parameter,BOOL bWrite); | 
|---|
| 371 |  | 
|---|
| 372 | //error.cpp | 
|---|
| 373 | void SetError(int ErrorNum,const char *KeyWord,int pos); | 
|---|
| 374 | void SetError(int ErrorNum,const string &keyWord,int pos); | 
|---|
| 375 | void SetError(); | 
|---|
| 376 | void CompileMessage(char *buffer); | 
|---|
| 377 | bool CheckDifferentType(const int VarType,const LONG_PTR lpVarIndex,const int CalcType,const LONG_PTR lpCalcIndex,const char *pszFuncName,const int ParmNum); | 
|---|
| 378 | bool CheckDifferentType( const Type &varType,const Type &calcType,const char *pszFuncName,const int ParmNum); | 
|---|
| 379 |  | 
|---|
| 380 | //Compile.cpp | 
|---|
| 381 | void GetIdentifierToken( char *token, const char *source, int &pos ); | 
|---|
| 382 | int JumpStatement(const char *source, int &pos); | 
|---|
| 383 | void DebugVariable(void); | 
|---|
| 384 | void Compile(void); | 
|---|
| 385 |  | 
|---|
| 386 | //Diagnose.cpp | 
|---|
| 387 | void Diagnose(); | 
|---|
| 388 |  | 
|---|
| 389 | //gc.cpp | 
|---|
| 390 | void InitGCVariables(void); | 
|---|
| 391 |  | 
|---|
| 392 |  | 
|---|
| 393 |  | 
|---|
| 394 | #ifdef _DEBUG | 
|---|
| 395 | /*Debug*/ | 
|---|
| 396 | /* | 
|---|
| 397 | #define HeapAlloc CheckHeapAlloc | 
|---|
| 398 | #define HeapReAlloc CheckHeapReAlloc | 
|---|
| 399 | LPVOID CheckHeapAlloc(HANDLE hHeap,DWORD dwFlags,DWORD dwBytes); | 
|---|
| 400 | LPVOID CheckHeapReAlloc(HANDLE hHeap,DWORD dwFlags,LPVOID lpMem,DWORD dwBytes); | 
|---|
| 401 | */ | 
|---|
| 402 | #endif | 
|---|