static int viewer_fun ARGS1(
PRIVATE int viewer_fun ARGS1(
static int viewer_fun ARGS1(	char *,		value){    char *mime_type;    char *viewer;    char *environment;    mime_type = value;    if ((strlen (value) < 3)    || (NULL == (viewer = strchr (mime_type, ':'))))	return 0;    *viewer++ = '\0';    LYRemoveBlanks(mime_type);    LYLowerCase(mime_type);    environment = strrchr(viewer, ':');    if ((environment != NULL) &&	(strlen(viewer) > 1) && *(environment-1) != '\\') {	*environment++ = '\0';	remove_backslashes(viewer);	/*	 * If environment equals xwindows then only assign the presentation if	 * there is a $DISPLAY variable.	 */	if (!strcasecomp(environment,"XWINDOWS")) {	    if (LYgetXDisplay() != NULL)		HTSetPresentation(mime_type, viewer, 1.0, 3.0, 0.0, 0);	} else if (!strcasecomp(environment,"NON_XWINDOWS")) {	    if (LYgetXDisplay() == NULL)		HTSetPresentation(mime_type, viewer, 1.0, 3.0, 0.0, 0);	} else {	    HTSetPresentation(mime_type, viewer, 1.0, 3.0, 0.0, 0);	}    } else {	remove_backslashes(viewer);	HTSetPresentation(mime_type, viewer, 1.0, 3.0, 0.0, 0);    }    return 0;}