From f7fd775f0203c580b35b179976c665db3e4d9e46 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 5 Jun 2007 22:25:27 +0000 Subject: re PR preprocessor/23479 (Implement binary constants with a "0b" prefix) 2007-06-05 Joerg Wunsch PR preprocessor/23479 gcc/ * doc/extend.texi: Document the 0b-prefixed binary integer constant extension. libcpp/ * expr.c (cpp_classify_number): Implement 0b-prefixed binary integer constants. (append_digit): Likewise. * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed binary integer constants. testsuite/ * testsuite/gcc.dg/binary-constants-1.c: Add test suites for the 0b-prefixed binary integer constants. * testsuite/gcc.dg/binary-constants-2.c: Ditto. * testsuite/gcc.dg/binary-constants-3.c: Ditto. * testsuite/gcc.dg/binary-constants-4.c: Ditto. From-SVN: r125346 --- libcpp/include/cpplib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libcpp/include') diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index ff5292e..0edcf65 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -748,6 +748,7 @@ struct cpp_num #define CPP_N_DECIMAL 0x0100 #define CPP_N_HEX 0x0200 #define CPP_N_OCTAL 0x0400 +#define CPP_N_BINARY 0x0800 #define CPP_N_UNSIGNED 0x1000 /* Properties. */ #define CPP_N_IMAGINARY 0x2000 -- cgit v1.1