summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)); \