summaryrefslogtreecommitdiffstats
path: root/src/symutil.cpp
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-03-03 08:15:49 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-03-03 08:15:49 (GMT)
commit6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49 (patch)
tree9858da29076fa52e2fda1f9ab8ad16d86a40a047 /src/symutil.cpp
parent839d6ecd6402d7e0f29ef02c4a25ef6904c23f38 (diff)
downloadcv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.zip
cv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.tar.gz
cv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.tar.bz2
tabify
Diffstat (limited to 'src/symutil.cpp')
-rw-r--r--src/symutil.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/symutil.cpp b/src/symutil.cpp
index 91e086e..7c92c0c 100644
--- a/src/symutil.cpp
+++ b/src/symutil.cpp
@@ -113,9 +113,9 @@ int pstrlen(const BYTE* &p)
int pstrmemlen(const BYTE* p)
{
- const BYTE* q = p;
- int len = pstrlen(p);
- return len + (p - q);
+ const BYTE* q = p;
+ int len = pstrlen(p);
+ return len + (p - q);
}
int dstrlen(const BYTE* &p, bool cstr)
@@ -146,19 +146,19 @@ char* p2c(const p_string& p, int idx)
int c2p(const char* c, BYTE* p)
{
- BYTE* q = p;
- int len = strlen(c);
- if(len > 255)
- {
- *p++ = 0xff;
- *p++ = 0;
- *p++ = len & 0xff;
- *p++ = len >> 8;
- }
- else
- *p++ = len;
- memcpy(p, c, len);
- return p + len - q;
+ BYTE* q = p;
+ int len = strlen(c);
+ if(len > 255)
+ {
+ *p++ = 0xff;
+ *p++ = 0;
+ *p++ = len & 0xff;
+ *p++ = len >> 8;
+ }
+ else
+ *p++ = len;
+ memcpy(p, c, len);
+ return p + len - q;
}
int c2p(const char* c, p_string& p)