if (strstr(mime_type, "tex") != NULL || strstr(mime_type, "postscript") != NULL || strstr(mime_type, "sh") != NULL || strstr(mime_type, "troff") != NULL || strstr(mime_type, "rtf") != NULL) HTSetSuffix(value, mime_type, "8bit", 1.0); else HTSetSuffix(value, mime_type, "binary", 1.0);
if (!*mime_type) {  CTRACE((tfp, "SUFFIX:%s without MIME type for %s\n", value, encoding ? encoding : "what?")); mime_type = NULL;  if (!encoding) return 0; }  if (!encoding) { if (strstr(mime_type, "tex") != NULL || strstr(mime_type, "postscript") != NULL || strstr(mime_type, "sh") != NULL || strstr(mime_type, "troff") != NULL || strstr(mime_type, "rtf") != NULL) encoding = "8bit"; else encoding = "binary"; } if (!sq) { q = 1.0; } else { double df = strtod(sq, &p); if (p == sq && df == 0.0) { CTRACE((tfp, "Invalid q=%s for SUFFIX:%s, using -1.0\n", sq, value)); q = -1.0; } else { q = df; } } HTSetSuffix5(value, mime_type, encoding, description, q);
static int suffix_fun ARGS1(	char *,		value){    char *mime_type;    if ((strlen (value) < 3)    || (NULL == (mime_type = strchr (value, ':'))))	return 0;    *mime_type++ = '\0';    LYRemoveBlanks(mime_type);    LYLowerCase(mime_type);    if (strstr(mime_type, "tex") != NULL ||	strstr(mime_type, "postscript") != NULL ||	strstr(mime_type, "sh") != NULL ||	strstr(mime_type, "troff") != NULL ||	strstr(mime_type, "rtf") != NULL)	HTSetSuffix(value, mime_type, "8bit", 1.0);    else	HTSetSuffix(value, mime_type, "binary", 1.0);    return 0;}