This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH Replace index() with strchr() in read-rtl.c


 > Or, more simply, just change all the uses of the identifier "index"
 > to "idx", convenient as "index" may be as an identifier, so we can
 > simply poison "index".

Unfortunately, we're not always in a position to do that.  Some
structure members defined in system headers that we use are named
`index'.  E.g. look in mips-tfile.c & mips-tdump.c.

Hmm, I guess we might be able to get around it by macro trickery like
when we really want to call malloc.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]