static void LoseSelection(w, selection) Widget w; Atom *selection;
LoseSelection(Widget w, Atom *selection)
static void LoseSelection(w, selection)  Widget w;  Atom *selection;{    register TScreen* screen;    register Atom* atomP;    Cardinal i;    if (!IsXtermWidget(w))	return;    screen = &((XtermWidget)w)->screen;    for (i = 0, atomP = screen->selection_atoms;	 i < screen->selection_count; i++, atomP++)    {	if (*selection == *atomP) *atomP = (Atom)0;	switch (*atomP) {	  case XA_CUT_BUFFER0:	  case XA_CUT_BUFFER1:	  case XA_CUT_BUFFER2:	  case XA_CUT_BUFFER3:	  case XA_CUT_BUFFER4:	  case XA_CUT_BUFFER5:	  case XA_CUT_BUFFER6:	  case XA_CUT_BUFFER7:	*atomP = (Atom)0;	}    }    for (i = screen->selection_count; i; i--) {	if (screen->selection_atoms[i-1] != 0) break;    }    screen->selection_count = i;    for (i = 0, atomP = screen->selection_atoms;	 i < screen->selection_count; i++, atomP++)    {	if (*atomP == (Atom)0) {	    *atomP = screen->selection_atoms[--screen->selection_count];	}    }    if (screen->selection_count == 0)	TrackText(0, 0, 0, 0);}