| 1720 | } |
| 1721 | |
| 1722 | void |
| 1723 | status_finish(void) |
| 1724 | { |
| 1725 | int i; |
| 1726 | |
| 1727 | /* call the window port cleanup routine first */ |
| 1728 | if (windowprocs.win_status_finish) |
| 1729 | (*windowprocs.win_status_finish)(); |
| 1730 | |
| 1731 | /* free memory that we alloc'd now */ |
| 1732 | for (i = 0; i < MAXBLSTATS; ++i) { |
| 1733 | if (gb.blstats[0][i].val) |
| 1734 | free((genericptr_t) gb.blstats[0][i].val), |
| 1735 | gb.blstats[0][i].val = (char *) NULL; |
| 1736 | if (gb.blstats[1][i].val) |
| 1737 | free((genericptr_t) gb.blstats[1][i].val), |
| 1738 | gb.blstats[1][i].val = (char *) NULL; |
| 1739 | #ifdef STATUS_HILITES |
| 1740 | /* pointer to an entry in thresholds list; Null it out since |
| 1741 | that list is about to go away */ |
| 1742 | gb.blstats[0][i].hilite_rule = gb.blstats[1][i].hilite_rule = 0; |
| 1743 | if (gb.blstats[0][i].thresholds) { |
| 1744 | struct hilite_s *temp, *next; |
| 1745 | |
| 1746 | for (temp = gb.blstats[0][i].thresholds; temp; temp = next) { |
| 1747 | next = temp->next; |
| 1748 | free((genericptr_t) temp); |
| 1749 | } |
| 1750 | gb.blstats[0][i].thresholds |
| 1751 | = gb.blstats[1][i].thresholds |
| 1752 | = (struct hilite_s *) NULL; |
| 1753 | } |
| 1754 | #endif /* STATUS_HILITES */ |
| 1755 | } |
| 1756 | } |
| 1757 | |
| 1758 | staticfn void |
| 1759 | init_blstats(void) |