swanson@ihlpl.UUCP (11/24/86)
I need to construct a preprocessor scaffolding which will generate code at the beginning of main() to call once each function defined in the program. I do not know anything about the functions except that I need an array of pointers by which to call the functions. The scaffolding should either provide this array of pointers initialized, or provide the code to call each function once. The scaffolding needs to be resiliant enough such that if I add a function, without doing anything more than include a macro in the function, a pointer to this new function gets put into the array during the next compile. Can such a beast be created? cpp or m4 are both fine. Any pointers? Thanks. Robert Swanson ihnp4!ihlpj!tss