[ ] I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
[ ] I've added tests that prove my fix is effective or that my feature works (if possible)
Detailed description
Despite being widely implemented and part of C++, the 0b prefix is not part of any C standard and will be rejected by some compilers such as Apple GCC 4.0.1 (5493).
imac:capstone florian$ make
CC cs.o
In file included from include/capstone/capstone.h:360,
from cs.c:17:
include/capstone/arm.h:128:11: error: invalid suffix "b1000" on integer constant
include/capstone/arm.h:129:12: error: invalid suffix "b0100" on integer constant
include/capstone/arm.h:130:12: error: invalid suffix "b1100" on integer constant
include/capstone/arm.h:131:13: error: invalid suffix "b0010" on integer constant
include/capstone/arm.h:132:13: error: invalid suffix "b0110" on integer constant
include/capstone/arm.h:133:13: error: invalid suffix "b1110" on integer constant
include/capstone/arm.h:134:13: error: invalid suffix "b1010" on integer constant
include/capstone/arm.h:135:14: error: invalid suffix "b0001" on integer constant
include/capstone/arm.h:136:14: error: invalid suffix "b0011" on integer constant
include/capstone/arm.h:137:14: error: invalid suffix "b0111" on integer constant
include/capstone/arm.h:138:14: error: invalid suffix "b0101" on integer constant
include/capstone/arm.h:139:14: error: invalid suffix "b1111" on integer constant
include/capstone/arm.h:140:14: error: invalid suffix "b1101" on integer constant
include/capstone/arm.h:141:14: error: invalid suffix "b1001" on integer constant
include/capstone/arm.h:142:14: error: invalid suffix "b1011" on integer constant
In file included from include/capstone/capstone.h:364,
from cs.c:17:
include/capstone/ppc.h:127:19: error: invalid suffix "b10000" on integer constant
include/capstone/ppc.h:128:18: error: invalid suffix "b01000" on integer constant
include/capstone/ppc.h:129:20: error: invalid suffix "b00100" on integer constant
include/capstone/ppc.h:130:19: error: invalid suffix "b00010" on integer constant
include/capstone/ppc.h:131:13: error: invalid suffix "b00001" on integer constant
include/capstone/ppc.h:139:21: error: invalid suffix "b00" on integer constant
include/capstone/ppc.h:140:20: error: invalid suffix "b01" on integer constant
include/capstone/ppc.h:141:21: error: invalid suffix "b10" on integer constant
include/capstone/ppc.h:142:17: error: invalid suffix "b11" on integer constant
include/capstone/ppc.h:143:21: error: invalid suffix "b11" on integer constant
make: *** [cs.o] Error 1
imac:capstone florian$ cc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Your checklist for this pull request
Detailed description
Despite being widely implemented and part of C++, the 0b prefix is not part of any C standard and will be rejected by some compilers such as Apple GCC 4.0.1 (5493).
Test plan
Build with a compiler that does not support
0b
.