mac_closeterm(window);
static void mac_closewindow(WindowPtr window) {    switch (mac_windowtype(window)) {      case wDA:	CloseDeskAcc(((WindowPeek)window)->windowKind);	break;      case wTerminal:	/* FIXME: end session and stuff */	break;      case wAbout:	windows.about = NULL;	CloseWindow(window);	break;      case wLicence:	windows.licence = NULL;	CloseWindow(window);	break;      default:	CloseWindow(window);	break;    }}