1
0
Fork 0

DBG: More header guards

This commit is contained in:
Nukem 2016-01-24 18:49:14 -05:00
parent d30d34835f
commit bc9c05537f
15 changed files with 71 additions and 29 deletions

View File

@ -1,5 +1,5 @@
#ifndef _GLOBAL_H
#define _GLOBAL_H
#ifndef _BOOKMARK_H
#define _BOOKMARK_H
#include "_global.h"
@ -21,4 +21,4 @@ void BookmarkClear();
void BookmarkGetList(std::vector<BOOKMARKSINFO> & list);
bool BookmarkGetInfo(duint Address, BOOKMARKSINFO* info);
#endif // _GLOBAL_H
#endif // _BOOKMARK_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _BREAKPOINT_H
#define _BREAKPOINT_H
#include "_global.h"
@ -46,4 +47,6 @@ int BpGetCount(BP_TYPE Type, bool EnabledOnly = false);
void BpToBridge(const BREAKPOINT* Bp, BRIDGEBP* BridgeBp);
void BpCacheSave(JSON Root);
void BpCacheLoad(JSON Root);
void BpClear();
void BpClear();
#endif // _BREAKPOINT_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _COMMANDLINE_H
#define _COMMANDLINE_H
#include "_global.h"
#include "command.h"
@ -8,4 +9,6 @@ char* getCommandLineArgs();
void CmdLineCacheSave(JSON Root);
void CmdLineCacheLoad(JSON Root);
void copyCommandLine(const char* cmdLine);
CMDRESULT setCommandLine();
CMDRESULT setCommandLine();
#endif // _COMMANDLINE_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _COMMENT_H
#define _COMMENT_H
#include "_global.h"
@ -19,4 +20,6 @@ void CommentCacheLoad(JSON Root);
bool CommentEnum(COMMENTSINFO* List, size_t* Size);
void CommentClear();
void CommentGetList(std::vector<COMMENTSINFO> & list);
bool CommentGetInfo(duint Address, COMMENTSINFO* info);
bool CommentGetInfo(duint Address, COMMENTSINFO* info);
#endif // _COMMENT_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _DATABASE_H
#define _DATABASE_H
#include "_global.h"
@ -12,4 +13,6 @@ enum class DbLoadSaveType
void DbSave(DbLoadSaveType saveType);
void DbLoad(DbLoadSaveType loadType);
void DbClose();
void DbSetPath(const char* Directory, const char* ModulePath);
void DbSetPath(const char* Directory, const char* ModulePath);
#endif // _DATABASE_H

View File

@ -1,4 +1,7 @@
#pragma once
#ifndef _ERROR_H
#define _ERROR_H
void ErrorCodeInit();
const char* ErrorCodeToName(unsigned int ErrorCode);
const char* ErrorCodeToName(unsigned int ErrorCode);
#endif // _ERROR_H

View File

@ -1,6 +1,9 @@
#pragma once
#ifndef _EXCEPTION_H
#define _EXCEPTION_H
#define MS_VC_EXCEPTION 0x406D1388
void ExceptionCodeInit();
const char* ExceptionCodeToName(unsigned int ExceptionCode);
const char* ExceptionCodeToName(unsigned int ExceptionCode);
#endif // _EXCEPTION_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _FUNCTION_H
#define _FUNCTION_H
#include "addrinfo.h"
@ -21,4 +22,6 @@ void FunctionCacheLoad(JSON Root);
bool FunctionEnum(FUNCTIONSINFO* List, size_t* Size);
void FunctionClear();
void FunctionGetList(std::vector<FUNCTIONSINFO> & list);
bool FunctionGetInfo(duint Address, FUNCTIONSINFO* info);
bool FunctionGetInfo(duint Address, FUNCTIONSINFO* info);
#endif // _FUNCTION_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _LABEL_H
#define _LABEL_H
#include "_global.h"
@ -21,4 +22,6 @@ bool LabelEnum(LABELSINFO* List, size_t* Size);
void LabelClear();
void LabelGetList(std::vector<LABELSINFO> & list);
bool LabelGetInfo(duint Address, LABELSINFO* info);
void LabelEnumCb(std::function<void(const LABELSINFO & info)> cbEnum, const char* module = nullptr);
void LabelEnumCb(std::function<void(const LABELSINFO & info)> cbEnum, const char* module = nullptr);
#endif // _LABEL_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _MEMORY_H
#define _MEMORY_H
#include "_global.h"
#include "addrinfo.h"
@ -38,4 +39,6 @@ bool MemPageRightsToString(DWORD Protect, char* Rights);
bool MemPageRightsFromString(DWORD* Protect, const char* Rights);
bool MemFindInPage(SimplePage page, duint startoffset, const std::vector<PatternByte> & pattern, std::vector<duint> & results, duint maxresults);
bool MemFindInMap(const std::vector<SimplePage> & pages, const std::vector<PatternByte> & pattern, std::vector<duint> & results, duint maxresults, bool progress = true);
bool MemDecodePointer(duint* Pointer);
bool MemDecodePointer(duint* Pointer);
#endif // _MEMORY_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _MODULE_H
#define _MODULE_H
#include "_global.h"
@ -48,3 +49,5 @@ int ModPathFromAddr(duint Address, char* Path, int Size);
int ModPathFromName(const char* Module, char* Path, int Size);
void ModGetList(std::vector<MODINFO> & list);
bool ModAddImportToModule(duint Base, const MODIMPORTINFO & importInfo);
#endif // _MODULE_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _PATCHES_H
#define _PATCHES_H
#include "_global.h"
@ -16,4 +17,6 @@ bool PatchDelete(duint Address, bool Restore);
void PatchDelRange(duint Start, duint End, bool Restore);
bool PatchEnum(PATCHINFO* List, size_t* Size);
int PatchFile(const PATCHINFO* List, int Count, const char* FileName, char* Error);
void PatchClear(const char* Module = nullptr);
void PatchClear(const char* Module = nullptr);
#endif // _PATCHES_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _REFERENCE_H
#define _REFERENCE_H
#include "_global.h"
#include "disasm_fast.h"
@ -24,3 +25,5 @@ typedef std::function<void(int)> CBPROGRESS;
int RefFind(duint Address, duint Size, CBREF Callback, void* UserData, bool Silent, const char* Name, REFFINDTYPE type);
int RefFindInRange(duint scanStart, duint scanSize, CBREF Callback, void* UserData, bool Silent, REFINFO & refInfo, Capstone & cp, bool initCallBack, CBPROGRESS cbUpdateProgress);
#endif // _REFERENCE_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _SYMBOLINFO_H
#define _SYMBOLINFO_H
#include "_global.h"
@ -22,4 +23,6 @@ void SymEnumImports(duint Base, SYMBOLCBDATA* pSymbolCbData);
\param [out] nLine Line number. Can be null.
\return true if it succeeds, false if it fails.
*/
bool SymGetSourceLine(duint Cip, char* FileName, int* Line);
bool SymGetSourceLine(duint Cip, char* FileName, int* Line);
#endif // _SYMBOLINFO_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef _THREAD_H
#define _THREAD_H
#include "_global.h"
#include "debugger.h"
@ -21,4 +22,6 @@ bool ThreadSetName(DWORD dwThreadId, const char* name);
HANDLE ThreadGetHandle(DWORD ThreadId);
DWORD ThreadGetId(HANDLE Thread);
int ThreadSuspendAll();
int ThreadResumeAll();
int ThreadResumeAll();
#endif // _THREAD_H