Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 277425
Collapse All | Expand All

(-)src/ps_afm.c (-5 / +5 lines)
Lines 138-144 Link Here
138
	return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
138
	return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
139
}
139
}
140
140
141
static int getline(FILE *afmin) {
141
static int pslib_getline(FILE *afmin) {
142
	char *p ;
142
	char *p ;
143
	int c ;
143
	int c ;
144
144
Lines 616-622 Link Here
616
		return(-1);
616
		return(-1);
617
	}
617
	}
618
618
619
	while (getline(fp)) {
619
	while (pslib_getline(fp)) {
620
		switch(interest(paramstring())) {
620
		switch(interest(paramstring())) {
621
			case N:
621
			case N:
622
				handleprotusion(psdoc, metrics) ;
622
				handleprotusion(psdoc, metrics) ;
Lines 664-670 Link Here
664
	/*
664
	/*
665
	 * Read file line by line.
665
	 * Read file line by line.
666
	 */
666
	 */
667
	while (getline(metric->afmin)) {
667
	while (pslib_getline(metric->afmin)) {
668
		switch(interest(paramstring())) {
668
		switch(interest(paramstring())) {
669
case FontName:
669
case FontName:
670
			metric->fontname = paramnewstring(psdoc) ;
670
			metric->fontname = paramnewstring(psdoc) ;
Lines 1039-1045 Link Here
1039
1039
1040
	while (1) {
1040
	while (1) {
1041
		while (param == NULL || *param == '\0') {
1041
		while (param == NULL || *param == '\0') {
1042
			if (getline(metrics->afmin) == 0)
1042
			if (pslib_getline(metrics->afmin) == 0)
1043
				ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
1043
				ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
1044
			for (p=buffer; *p != '\0'; p++)
1044
			for (p=buffer; *p != '\0'; p++)
1045
				if (*p == '%') {
1045
				if (*p == '%') {
Lines 1160-1166 Link Here
1160
			psdoc->free(psdoc, e);
1160
			psdoc->free(psdoc, e);
1161
			return -1;
1161
			return -1;
1162
		}
1162
		}
1163
		while (getline(metrics->afmin)) {
1163
		while (pslib_getline(metrics->afmin)) {
1164
			for (p=buffer; *p != '\0'; p++)
1164
			for (p=buffer; *p != '\0'; p++)
1165
				if (*p == '%') {
1165
				if (*p == '%') {
1166
					if (ignoreligkern == 0)
1166
					if (ignoreligkern == 0)

Return to bug 277425