diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-25 08:27:18 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-25 08:27:18 +0000 |
commit | 9e79a59a9cd97513d54c3e6190d2391947daa14b (patch) | |
tree | d301db97dfeb963bb8bdb0e02139d332057d07e7 /Build/source/texk/dvipdfm-x/pdfresource.c | |
parent | 4dc44f751f9c40c83f347420624e498aa936d0ab (diff) |
texk/dvipdfm-x: Replace '(unsigned) long' by '(unsigned) int' or
'(u)int32_t' except when needed with for ftell() and fseek()
git-svn-id: svn://tug.org/texlive/trunk@38200 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfresource.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfresource.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfresource.c b/Build/source/texk/dvipdfm-x/pdfresource.c index 83f8d288458..c24b3a6cb91 100644 --- a/Build/source/texk/dvipdfm-x/pdfresource.c +++ b/Build/source/texk/dvipdfm-x/pdfresource.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2015 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -189,7 +189,7 @@ get_category (const char *category) return -1; } -long +int pdf_defineresource (const char *category, const char *resname, pdf_obj *object, int flags) { @@ -221,7 +221,7 @@ pdf_defineresource (const char *category, } else { res->object = object; } - return (long) ((cat_id << 16)|(res_id)); + return (cat_id << 16) | res_id; } } } else { @@ -251,7 +251,7 @@ pdf_defineresource (const char *category, rc->count++; } - return (long) ((cat_id << 16)|(res_id)); + return (cat_id << 16) | res_id; } #if 0 @@ -282,7 +282,7 @@ pdf_resource_exist (const char *category, const char *resname) } #endif -long +int pdf_findresource (const char *category, const char *resname) { pdf_res *res; @@ -301,7 +301,7 @@ pdf_findresource (const char *category, const char *resname) for (res_id = 0; res_id < rc->count; res_id++) { res = &rc->resources[res_id]; if (!strcmp(resname, res->ident)) { - return (long) (cat_id << 16|res_id); + return cat_id << 16 | res_id; } } @@ -309,7 +309,7 @@ pdf_findresource (const char *category, const char *resname) } pdf_obj * -pdf_get_resource_reference (long rc_id) +pdf_get_resource_reference (int rc_id) { int cat_id, res_id; struct res_cache *rc; @@ -344,7 +344,7 @@ pdf_get_resource_reference (long rc_id) #if 0 pdf_obj * -pdf_get_resource (long rc_id) +pdf_get_resource (int rc_id) { int cat_id, res_id; struct res_cache *rc; |