[gnu.g++.bug] g++ 1.36.1 on Convex--rindex, not strrchr

ngo%tammy@HARVARD.HARVARD.EDU (Tom Ngo) (01/07/90)

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