2013-09-26 17:14:40 +02:00

43 lines
1.2 KiB
Plaintext

$NetBSD: patch-ak,v 1.2 2012/06/13 08:15:15 mef Exp $
Convert varargs-macros to old-style macros, to make the package
compile when using gcc 2.95.
--- libfstt/table_cmap.cc.orig 2012-03-03 00:33:23.000000000 +0900
+++ libfstt/table_cmap.cc 2012-06-13 11:56:02.000000000 +0900
@@ -74,7 +74,7 @@
case -1: // no encoding tables
break;
default: // unknown table format
- debug("CMAP table format = %d\n", format);
+ debug1("CMAP table format = %d\n", format);
break;
}
}
@@ -95,7 +95,7 @@
return 0;
seekAbsolute(subtableOffset + 6 + unicode);
int glyphNo = readUByte();
- debug("MAC.cmap[%d] = %d\n", unicode, glyphNo);
+ debug2("MAC.cmap[%d] = %d\n", unicode, glyphNo);
return glyphNo;
} else if (format == TRIMMED_MAPPING) {
if ((unicode < f6FirstCode)
@@ -202,7 +202,7 @@
seekAbsolute(subtableOffset + 16 + (f4NSegments << 1));
uint16_t i = readUShort();
- debug("First Unicode = %d\n", i);
+ debug1("First Unicode = %d\n", i);
return i;
}
@@ -220,6 +220,6 @@
seekAbsolute(subtableOffset + 14 + ((f4NSegments - 2) << 1));
uint16_t i = readUShort();
- debug("Last Unicode = %d\n", i);
+ debug1("Last Unicode = %d\n", i);
return i;
}