Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!iuvax!rutgers!att!cbnewsl!floyd!cwebb From: cwebb@floyd.ATT.COM (Chip Webb,14D-315,4347,ATTBL) Newsgroups: comp.lang.c Subject: Need cpp "function" Summary: cpp Keywords: cpp Message-ID: <2872@cbnewsl.ATT.COM> Date: 14 Nov 89 16:02:30 GMT Sender: nntp@cbnewsl.ATT.COM Reply-To: cwebb@floyd.ATT.COM (Chip Webb) Distribution: usa Organization: AT&T Bell Laboratories Lines: 41 Hi: I am currently modifying a program that uses cpp as a preprocessor for its input. Right now, the way it works is by fork/exec-ing cpp and piping the data from cpp to the "real" program. The program is used interactively at a terminal and cpp is used to define macros for simplifying what the user types. So far this works great. However, I want to include curses support to the program, and it seems that piping input to a process that uses curses messes it up. (I am not a curses expert either) I think I can solve my problem by incorporating a cpp-like function into the front end of the real program. I do not necessarily need all of the functions of cpp, just #include and #define and comment elimination. I have the source code for the GNU cpp and the BSD cpp and have tried unsuccessfully to modify them for use as a subroutine. I have to believe that I am not the only person in the world who has needed such a function, and do not want to re-invent the wheel. If anyone has any suggestions, please let me know (email please). I am open any/all suggestions for a solution to my problem (even secrets about curses with multiple processes would be helpful) Thanks --------------------------------------------------------------------------- Chip Webb cwebb@floyd.att.com ...!att!floyd!cwebb --------------------------------------------------------------------------- -- --------------------------------------------------------------------------- Chip Webb cwebb@floyd.att.com ...!att!floyd!cwebb ---------------------------------------------------------------------------