summaryrefslogtreecommitdiffstats
path: root/common/parse.h
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-10-12 03:49:15 +0000
committerjsorg71 <jsorg71>2006-10-12 03:49:15 +0000
commit2671ea4f911556efb4120e066abb57aa110b443f (patch)
tree811fe1111e18a9d04984651318595ae092bc99a2 /common/parse.h
parent310c705de599c2ebb443017becbd5aac89d29b93 (diff)
downloadxrdp-proprietary-2671ea4f911556efb4120e066abb57aa110b443f.tar.gz
xrdp-proprietary-2671ea4f911556efb4120e066abb57aa110b443f.zip
added in_sint8
Diffstat (limited to 'common/parse.h')
-rw-r--r--common/parse.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/parse.h b/common/parse.h
index 3718e9cc..5c7e50ba 100644
--- a/common/parse.h
+++ b/common/parse.h
@@ -112,6 +112,13 @@ struct stream
}
/******************************************************************************/
+#define in_sint8(s, v) \
+{ \
+ (v) = *((signed char*)((s)->p)); \
+ (s)->p++; \
+}
+
+/******************************************************************************/
#define in_uint8(s, v) \
{ \
(v) = *((unsigned char*)((s)->p)); \