Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!deimos!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!usc!elroy.jpl.nasa.gov!decwrl!shelby!kon@wolverine.Stanford.EDU From: kon@wolverine.Stanford.EDU (Ronnie Kon) Newsgroups: comp.unix.wizards Subject: Re: Linking two yacc (y.tab.o) files Message-ID: <42@wolverine.stanford.edu> Date: 28 Feb 90 23:35:48 GMT References: <25E34681.3787@deimos.cis.ksu.edu> <39@mycroft.stanford.edu> <238@ncrons.StPaul.NCR.COM> Sender: kon@wolverine.STANFORD.EDU (Ronnie Kon) Distribution: usa Organization: Stanford University Lines: 19 In article <238@ncrons.StPaul.NCR.COM> johnson@ncrons.StPaul.NCR.COM (Wayne D. Johnson) writes: ># ># The kludge is to simply sed with the command ># ># sed 's/\ parser1.c > >I have seen an implementation where they #defined the yy as >somthing else before the compile. Who needs sed? > This will not work with a functioning C preprocessor. Only complete identifiers should be replaced. Thus a variable named "yy" would get changed, but "yytext" will not. -- ------------------------------------------------------------------------------- Ronnie Kon | "I don't know about your brain, ronnie@mindcraft.com | but mine is really bossy" ...!{decwrl,hpda}!mindcrf!ronnie | -- Laurie Anderson -------------------------------------------------------------------------------