🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #2134

g++ 1.36.1 on Convex--rindex, not strrchr (another trivial one)

#2134
From: Tom Ngo
Date: Sun, 07 Jan 1990 02:54
19 lines
906 bytes
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
Technical Details
Message-ID: <9001070259.AA07963@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!ngo%tammy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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