cpp token_buffer not being NULL terminated causes fixproto bugs
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Apr 28 13:13:00 GMT 2000
> From: Jason Merrill <jason@cygnus.com>
>
> Why aren't we NULL-terminating names anymore? I specifically didn't
> change that because of code that wants to use strcmp. Using strncmp
> is wrong for these cases, since the test will also match, say,
> "inlineasnotehu!!".
Zack will have to explain the reasons for the change since I don't
have the details, and he can comment on your suggestion below. BTW,
this was done in: http://gcc.gnu.org/ml/gcc-patches/2000-04/msg00662.html
> It might be appropriate to write a new macro which would test the
> length of the token, do a strncmp and then test that the next
> character in the other string is NULL.
> Jason
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc-patches
mailing list