Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!hellgate.utah.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!ames!haven!mimsy!mojo!stripes From: stripes@eng.umd.edu (Joshua Osborne) Newsgroups: comp.windows.x Subject: Re: .twmrc parsed by m4 or cpp Message-ID: <1990Aug5.192550.6945@eng.umd.edu> Date: 5 Aug 90 19:25:50 GMT References: Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 21 In article felix@ai.sri.com (Francois Felix INGRAND) writes: > >Could it be possible to modify the next release of twm such that the twmrc file >is parsed through m4 or cpp (as xrdb does). TWM can not send it's input files thru cpp, because cpp's use of "#" conflicts with twm's use of "#" as the comment symbol. I have hacked twm to use m4 to pre-parse the .twmrc files. I also took a look at the info xrdb gives cpp and make that available to m4. Almost all of the changes are in parse.c (about 3 lines needed to be added to twm.c, or whatever .c has main() in it). If the X Consortium would like these changes I will attempt to extract them from my twm (I have applyed some other non-standard patches to twm give to me by others so I can't just diff it). If not I will try to put the whole thing up for ftp somewhere. I don't want to spend the rest of my life mailing out source 'tho... -- stripes@eng.umd.edu "Security for Unix is like Josh_Osborne@Real_World,The Mutitasking for MS-DOS" "The dyslexic porgramer" - Kevin Lockwood "Don't try to change C into some nice, safe, portable programming language with all sharp edges removed, pick another language." - John Limpert