~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revamp of the Halibut error handling mechanism.
[sgt/halibut]
/
bk_pdf.c
diff --git
a/bk_pdf.c
b/bk_pdf.c
index
6daebc6
..
10b9fdd
100644
(file)
--- a/
bk_pdf.c
+++ b/
bk_pdf.c
@@
-257,6
+257,7
@@
void pdf_backend(paragraph *sourceform, keywordlist *keywords,
sprintf(buf, "<%02X>", i + ranges[i] - 1);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
sprintf(buf, "<%02X>", i + ranges[i] - 1);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
@@
-278,6
+279,7
@@
void pdf_backend(paragraph *sourceform, keywordlist *keywords,
sprintf(buf, "<%02X>", i);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
sprintf(buf, "<%02X>", i);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
@@
-668,7
+670,7
@@
void pdf_backend(paragraph *sourceform, keywordlist *keywords,
else
fp = fopen(filename, "wb");
if (!fp) {
else
fp = fopen(filename, "wb");
if (!fp) {
- err
or(err_cantopenw,
filename);
+ err
_cantopenw(
filename);
return;
}
return;
}