diff options
author | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-11-01 19:23:27 +0000 |
---|---|---|
committer | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-11-01 19:23:27 +0000 |
commit | 2281bb807408e94631a98a9c2c56bbef64fcde59 (patch) | |
tree | b3f8bb45bb77893c5820a2dd5f6bd5b44d07ea38 /pcre_internal.h | |
parent | 616b6d7fb061e403e6086f00164ecf515c20631a (diff) | |
download | pcre-2281bb807408e94631a98a9c2c56bbef64fcde59.tar.gz |
Add more safety parentheses to macros
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1197 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_internal.h')
-rw-r--r-- | pcre_internal.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pcre_internal.h b/pcre_internal.h index 1d47ac7..06aa614 100644 --- a/pcre_internal.h +++ b/pcre_internal.h @@ -776,7 +776,7 @@ we know we are in UTF mode. */ 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. */ 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. */ 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. */ 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. */ 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. */ 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 |