This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
treelang: can we replace 'unsigned char *chars' by 'char *chars'?
- From: "Lemaitre Laurent-r29173" <Laurent dot Lemaitre at freescale dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Wed, 15 Aug 2007 17:29:52 +0200
- Subject: treelang: can we replace 'unsigned char *chars' by 'char *chars'?
Hi All,
In file treelang.h structure token_part is defined as follows:
struct token_part GTY(())
{
location_t location;
unsigned int charno;
unsigned int length; /* The value. */
const unsigned char *chars; <-- HERE
};
'unsigned char *chars' is used instead of just 'char *chars'.
Is-there any reason (speed, memory) why 'unsigned' is used?
I am building an autogenerated version of 'treelang' and I am trying
to generate directly 'tree' node in file parse.y. That
is the reasoin why I am asking.
Thanks,
Laurent