Revision: 1197
http://vcs.pcre.org/viewvc?view=rev&revision=1197
Author: chpe
Date: 2012-11-01 19:23:27 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
Add more safety parentheses to macros
Modified Paths:
--------------
code/trunk/pcre_internal.h
Modified: code/trunk/pcre_internal.h
===================================================================
--- code/trunk/pcre_internal.h 2012-11-01 17:41:36 UTC (rev 1196)
+++ code/trunk/pcre_internal.h 2012-11-01 19:23:27 UTC (rev 1197)
@@ -776,7 +776,7 @@
we know we are in UTF mode. */
#define RAWUCHARINC(eptr) \
- (*(eptr)++)
+ (*((eptr)++))
/* Returns the next uchar, testing for UTF mode, and not advancing the
pointer. */
@@ -788,7 +788,7 @@
pointer. */
#define RAWUCHARINCTEST(eptr) \
- (*(eptr)++)
+ (*((eptr)++))
/* If the pointer is not at the start of a character, move it back until
it is. This is called only in UTF-8 mode - we don't put a test within the macro
@@ -895,7 +895,7 @@
we know we are in UTF mode. */
#define RAWUCHARINC(eptr) \
- (*(eptr)++)
+ (*((eptr)++))
/* Returns the next uchar, testing for UTF mode, and not advancing the
pointer. */
@@ -907,7 +907,7 @@
pointer. */
#define RAWUCHARINCTEST(eptr) \
- (*(eptr)++)
+ (*((eptr)++))
/* If the pointer is not at the start of a character, move it back until
it is. This is called only in UTF-16 mode - we don't put a test within the
@@ -984,7 +984,7 @@
we know we are in UTF mode. */
#define RAWUCHARINC(eptr) \
- (*(eptr)++ & UTF32_MASK)
+ (*((eptr)++) & UTF32_MASK)
/* Returns the next uchar, testing for UTF mode, and not advancing the
pointer. */
@@ -996,7 +996,7 @@
pointer. */
#define RAWUCHARINCTEST(eptr) \
- (utf ? (*(eptr)++ & UTF32_MASK) : *(eptr)++)
+ (utf ? (*((eptr)++) & UTF32_MASK) : *((eptr)++))
/* If the pointer is not at the start of a character, move it back until
it is. This is called only in UTF-32 mode - we don't put a test within the