Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!iuvax!rutgers!mcnc!thorin!unc!alexande From: alexande@unc.cs.unc.edu (Geoffrey D. Alexander) Newsgroups: comp.unix.wizards Subject: Problem with xstr Keywords: xstr, UNIX, C Message-ID: <4252@thorin.cs.unc.edu> Date: 18 Sep 88 16:25:50 GMT Sender: news@thorin.cs.unc.edu Lines: 22 I am using xstr as follow: cc prog.c -E | xstr -v - cc x.c -c -O -o x.o cc xs.c -c -O -o xs.o -R cc x.o xs.o -o prog rm x.c x.o xs.c xs.o strip prog In some cases the C preprossor can generate fairly large lines, especially when processing nested macros. I am running to a problem with xstr producing a syntatically incorrect translation on these large lines. It appears that xstr is partially substituting for a string. For example, the string "test it" might be substituted with "(&xstr[0])t it" in x.c where &xstr[0] references "tes" in xs.c. Does anyone have a suggestion on how to get around this problem with xstr? Note that I am running on SUN BSD UNIX 4.2. Please e-mail responses directly to me. Thanks, Geoff