Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!ngo%tammy From: ngo%tammy@HARVARD.HARVARD.EDU (Tom Ngo) Newsgroups: gnu.g++.bug Subject: g++ 1.36.1 on Convex--rindex, not strrchr (another trivial one) Message-ID: <9001070259.AA07963@life.ai.mit.edu> Date: 7 Jan 90 02:54:27 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Relevant file: cplus-lex.c Like a Sequent, a Convex has index/rindex instead of strchr/strrchr. Right now, the #ifdef's that choose between rindex and strrchr are in two separate places in the file, and there is extern char *strrchr(), *rindex(); Wouldn't it be neater to remove all of the references to rindex and say #if defined(sequent) || defined(convex) #define strrchr rindex #endif at the top? --Tom Ngo