void WalkMods( void (*rtn)( mod_entry * ) ) /************************************************/ { ParmWalkAllSects( WalkModList, rtn ); CurrSect = Root; WalkList( (node *)LibModules, (void (*)(void *))rtn ); }
int main(int argc, char *argv[]) { int i; InitList(&filelist); if (argc == 1) copyfile(stdin); else { for (i = 1; i < argc; i++) addfile(argv[i]); WalkList(&filelist, (WordFnPtr)putfile, 0); } return 0; }
static void WalkModList( section *sect, void *rtn ) /*************************************************/ { CurrSect = sect; WalkList( (node *) sect->mods, rtn ); }