diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-04-29 08:25:00 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-04-29 08:25:00 +0000 |
commit | 0f81c6717bd7d19eb1e3091b5f18d1f3d988e02c (patch) | |
tree | 133ab4a9d283da622288eda7c70bc21598214efa /Build/source/texk/web2c/pdftexdir/pdftoepdf.cc | |
parent | d45ffb58c11249942c6b06e8f1bbcb70dbf3c6dc (diff) |
Reorganize pdftex headers
git-svn-id: svn://tug.org/texlive/trunk@18039 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/pdftoepdf.cc')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/pdftoepdf.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc index 7d2faa5d69e..19f06c27dff 100644 --- a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc +++ b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc @@ -103,14 +103,14 @@ struct InObj { Ref ref; // ref in original PDF InObjType type; // object type InObj *next; // next entry in list of indirect objects - integer num; // new object number in output PDF + int num; // new object number in output PDF fd_entry *fd; // pointer to /FontDescriptor object structure - integer enc_objnum; // Encoding for objFont + int enc_objnum; // Encoding for objFont int written; // has it been written to output PDF? }; struct UsedEncoding { - integer enc_objnum; + int enc_objnum; GfxFont *font; UsedEncoding *next; }; @@ -229,7 +229,7 @@ static int addEncoding(GfxFont * gfont) #define addOther(ref) \ addInObj(objOther, ref, 0, 0) -static int addInObj(InObjType type, Ref ref, fd_entry * fd, integer e) +static int addInObj(InObjType type, Ref ref, fd_entry * fd, int e) { InObj *p, *q, *n = new InObj; if (ref.num == 0) @@ -329,9 +329,9 @@ static void copyFontDict(Object * obj, InObj * r) copyDictEntry(obj, i); } // write new FontDescriptor, BaseFont, and Encoding - pdf_printf("/FontDescriptor %d 0 R\n", (int) get_fd_objnum(r->fd)); - pdf_printf("/BaseFont %d 0 R\n", (int) get_fn_objnum(r->fd)); - pdf_printf("/Encoding %d 0 R\n", (int) r->enc_objnum); + pdf_printf("/FontDescriptor %d 0 R\n", get_fd_objnum(r->fd)); + pdf_printf("/BaseFont %d 0 R\n", get_fn_objnum(r->fd)); + pdf_printf("/Encoding %d 0 R\n", r->enc_objnum); pdf_puts(">>"); } @@ -380,7 +380,7 @@ static void copyFont(char *tag, Object * fontRef) for (p = inObjList; p; p = p->next) { if (p->ref.num == ref.num && p->ref.gen == ref.gen) { copyName(tag); - pdf_printf(" %d 0 R ", (int) p->num); + pdf_printf(" %d 0 R ", p->num); return; } } @@ -664,7 +664,7 @@ static void writeEncodings() } // get the pagebox according to the pagebox_spec -static PDFRectangle *get_pagebox(Page * page, integer pagebox_spec) +static PDFRectangle *get_pagebox(Page * page, int pagebox_spec) { if (pagebox_spec == pdfboxspecmedia) return page->getMediaBox(); @@ -689,10 +689,10 @@ static PDFRectangle *get_pagebox(Page * page, integer pagebox_spec) // It makes no sense to give page_name _and_ page_num. // Returns the page number. -integer -read_pdf_info(char *image_name, char *page_name, integer page_num, - integer pagebox_spec, integer minor_pdf_version_wanted, - integer pdf_inclusion_errorlevel) +int +read_pdf_info(char *image_name, char *page_name, int page_num, + int pagebox_spec, int minor_pdf_version_wanted, + int pdf_inclusion_errorlevel) { PdfDocument *pdf_doc; Page *page; |