Need cpp "function"
Chip Webb,14D-315,4347,ATTBL
cwebb at floyd.ATT.COM
Wed Nov 15 03:02:30 AEST 1989
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 at floyd.att.com
...!att!floyd!cwebb
---------------------------------------------------------------------------
--
---------------------------------------------------------------------------
Chip Webb cwebb at floyd.att.com
...!att!floyd!cwebb
---------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list