This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] c-lex.c: Remove WCHAR_TYPE_SIZE and WCHAR_BYTES.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: zack at codesourcery dot com
- Date: Sat, 16 Apr 2005 09:59:09 -0400 (EDT)
- Subject: [patch] c-lex.c: Remove WCHAR_TYPE_SIZE and WCHAR_BYTES.
Hi,
Attached is a patch to remove WCHAR_BYTES as it became unused with
http://gcc.gnu.org/ml/gcc-cvs/2003-07/msg00204.html
Removal of WCHAR_BYTES makes WCHAR_TYPE_SIZE unused. The patch
removes that as well.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-04-16 Kazu Hirata <kazu@cs.umass.edu>
* c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
Index: c-lex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-lex.c,v
retrieving revision 1.245
diff -u -d -p -r1.245 c-lex.c
--- c-lex.c 13 Mar 2005 14:06:46 -0000 1.245
+++ c-lex.c 16 Apr 2005 03:09:03 -0000
@@ -46,12 +46,6 @@ Software Foundation, 59 Temple Place - S
static int header_time, body_time;
static splay_tree file_info_tree;
-#undef WCHAR_TYPE_SIZE
-#define WCHAR_TYPE_SIZE TYPE_PRECISION (wchar_type_node)
-
-/* Number of bytes in a wide character. */
-#define WCHAR_BYTES (WCHAR_TYPE_SIZE / BITS_PER_UNIT)
-
int pending_lang_change; /* If we need to switch languages - C++ only */
int c_header_level; /* depth in C headers - C++ only */