struct cp_list_item *cpi, *cpno;
const struct cp_list_item *cpi, *cpno;
char *cp_name(int codepage){    struct cp_list_item *cpi, *cpno;    static char buf[32];    if (codepage == -1) {	sprintf(buf, "Use font encoding");	return buf;    }    if (codepage > 0 && codepage < 65536)	sprintf(buf, "CP%03d", codepage);    else	*buf = 0;    if (codepage >= 65536) {	cpno = 0;	for (cpi = cp_list; cpi->name; cpi++)	    if (cpi == cp_list + (codepage - 65536)) {		cpno = cpi;		break;	    }	if (cpno)	    for (cpi = cp_list; cpi->name; cpi++) {		if (cpno->cp_table == cpi->cp_table)		    return cpi->name;	    }    } else {	for (cpi = cp_list; cpi->name; cpi++) {	    if (codepage == cpi->codepage)		return cpi->name;	}    }    return buf;}