summaryrefslogtreecommitdiffstats
path: root/src/symutil.h
blob: dfc8b76d5490bf83a6c6a9e1b60c5c1d97ccd61f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Convert DMD CodeView debug information to PDB files

// Copyright (c) 2009-2010 by Rainer Schuetze, All Rights Reserved

//

// License for redistribution is given by the Artistic License 2.0

// see file LICENSE for further details


#ifndef __SYMUTIL_H__

#define __SYMUTIL_H__


#include <windows.h>


struct p_string;

static const int kMaxNameLen = 4096;

int dsym2c(const BYTE* p, int len, char* cname, int maxclen);

int pstrmemlen(const BYTE* p);
int pstrlen(const BYTE* &p);
char* p2c(const BYTE* p, int idx = 0);
char* p2c(const p_string& p, int idx = 0);
int p2ccpy(char* p, const BYTE* s);
int pstrcpy(BYTE* p, const BYTE* s);
int pstrcpy(p_string& p, const p_string& s);
int pstrcmp(const BYTE* p1, const BYTE* p2);
bool p2ccmp(const BYTE* pp, const char* cp);
bool p2ccmp(const p_string& pp, const char* cp);
int pstrcpy_v(bool v3, BYTE* d, const BYTE* s);
int cstrcpy_v(bool v3, BYTE* d, const char* s);
bool dstrcmp(const BYTE* s1, bool cstr1, const BYTE* s2, bool cstr2);

extern char dotReplacementChar;
extern bool demangleSymbols;

#endif //__SYMUTIL_H__