diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-25 12:30:04 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-25 12:30:04 +0000 |
commit | 65c37b17f39210ff32ba3ec1415d5f5a3f8e86ff (patch) | |
tree | a23710d061b8695f9eec30cbf5591e6016432089 /Build/source/texk/web2c/luatexdir/image | |
parent | a6ff9d2b253991c7c8eb94f2977abb10ad466480 (diff) |
texk/web2c/luatexdir: compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@16817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/image')
8 files changed, 18 insertions, 16 deletions
diff --git a/Build/source/texk/web2c/luatexdir/image/epdf.c b/Build/source/texk/web2c/luatexdir/image/epdf.c index 585b0fa8bfc..cf86a38fa34 100644 --- a/Build/source/texk/web2c/luatexdir/image/epdf.c +++ b/Build/source/texk/web2c/luatexdir/image/epdf.c @@ -19,6 +19,7 @@ with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */ #include "ptexlib.h" +#include "inc-epdf.h" #include <string.h> diff --git a/Build/source/texk/web2c/luatexdir/image/epdf.h b/Build/source/texk/web2c/luatexdir/image/epdf.h index 639b2640af1..c619b20f08f 100644 --- a/Build/source/texk/web2c/luatexdir/image/epdf.h +++ b/Build/source/texk/web2c/luatexdir/image/epdf.h @@ -102,13 +102,10 @@ extern "C" { extern void zpdf_os_get_os_buf(integer); /* epdf.c */ - extern void epdf_mark_glyphs(struct fd_entry *, char *); - extern struct fd_entry *epdf_create_fontdescriptor(struct fm_entry *, int); extern int get_fd_objnum(struct fd_entry *); extern int get_fn_objnum(struct fd_entry *); -/* write_enc.c */ - extern void epdf_write_enc(char **, integer); +#include "../inc-epdf.h" /* utils.c */ extern char *convertStringToPDFString(char *in, int len); diff --git a/Build/source/texk/web2c/luatexdir/image/writeimg.c b/Build/source/texk/web2c/luatexdir/image/writeimg.c index 9688e6e2613..f570fd46996 100644 --- a/Build/source/texk/web2c/luatexdir/image/writeimg.c +++ b/Build/source/texk/web2c/luatexdir/image/writeimg.c @@ -196,7 +196,7 @@ void init_image(image * p) img_dictref(p) = LUA_NOREF; } -image *new_image() +image *new_image(void) { image *p = xtalloc(1, image); init_image(p); @@ -237,14 +237,14 @@ void init_image_dict(image_dict * p) img_png_ptr(p) = NULL; /* union */ } -image_dict *new_image_dict() +image_dict *new_image_dict(void) { image_dict *p = xtalloc(1, image_dict); init_image_dict(p); return p; } -void free_dict_strings(image_dict * p) +static void free_dict_strings(image_dict * p) { if (img_filename(p) != NULL) xfree(img_filename(p)); @@ -297,7 +297,7 @@ void free_image_dict(image_dict * p) /**********************************************************************/ -void pdf_print_resname_prefix() +void pdf_print_resname_prefix(void) { if (pdf_resname_prefix != 0) pdf_printf(makecstring(pdf_resname_prefix)); @@ -457,7 +457,7 @@ void scale_img(image * img) img_set_scaled(img); } -void out_img(image * img, pdfstructure * p, scaledpos * pos) +static void out_img(image * img, pdfstructure * p, scaledpos * pos) { float a[6]; /* transformation matrix */ float xoff, yoff, tmp; @@ -874,10 +874,12 @@ integer image_colordepth(integer ref) return img_colordepth(img_dict(img_array[ref])); } -integer image_group_ref(integer ref) +#if 0 /* unused */ +static integer image_group_ref(integer ref) { return img_group_ref(img_dict(img_array[ref])); } +#endif /* The following five functions are for \pdfximagebbox */ diff --git a/Build/source/texk/web2c/luatexdir/image/writeimg.h b/Build/source/texk/web2c/luatexdir/image/writeimg.h index 3f3937658b9..bee82acaa97 100644 --- a/Build/source/texk/web2c/luatexdir/image/writeimg.h +++ b/Build/source/texk/web2c/luatexdir/image/writeimg.h @@ -30,8 +30,8 @@ boolean check_image_c(integer); boolean check_image_i(integer); boolean is_pdf_image(integer); boolean is_png_image(integer); -image_dict *new_image_dict(); -image *new_image(); +image_dict *new_image_dict(void); +image *new_image(void); integer epdf_orig_x(integer i); integer epdf_orig_y(integer i); integer epdf_xsize(integer i); diff --git a/Build/source/texk/web2c/luatexdir/image/writejbig2.c b/Build/source/texk/web2c/luatexdir/image/writejbig2.c index ef4169aa51f..c22c27e11b6 100644 --- a/Build/source/texk/web2c/luatexdir/image/writejbig2.c +++ b/Build/source/texk/web2c/luatexdir/image/writejbig2.c @@ -247,7 +247,7 @@ static LIST *litem_append(LIST * lp) /**********************************************************************/ -static FILEINFO *new_fileinfo() +static FILEINFO *new_fileinfo(void) { FILEINFO *fip; fip = xtalloc(1, FILEINFO); @@ -265,7 +265,7 @@ static FILEINFO *new_fileinfo() return fip; } -static PAGEINFO *new_pageinfo() +static PAGEINFO *new_pageinfo(void) { PAGEINFO *pip; pip = xtalloc(1, PAGEINFO); @@ -835,7 +835,7 @@ void write_jbig2(image_dict * idict) img_file(idict) = NULL; } -void flush_jbig2_page0_objects() +void flush_jbig2_page0_objects(void) { FILEINFO *fip; struct avl_traverser t; diff --git a/Build/source/texk/web2c/luatexdir/image/writejbig2.h b/Build/source/texk/web2c/luatexdir/image/writejbig2.h index cb43e7f200f..f28e91281fe 100644 --- a/Build/source/texk/web2c/luatexdir/image/writejbig2.h +++ b/Build/source/texk/web2c/luatexdir/image/writejbig2.h @@ -25,7 +25,7 @@ # include "image.h" -void flush_jbig2_page0_objects(); +void flush_jbig2_page0_objects(void); void read_jbig2_info(image_dict *); void write_jbig2(image_dict *); diff --git a/Build/source/texk/web2c/luatexdir/image/writejpg.c b/Build/source/texk/web2c/luatexdir/image/writejpg.c index 245512c5e38..187c55ea6c2 100644 --- a/Build/source/texk/web2c/luatexdir/image/writejpg.c +++ b/Build/source/texk/web2c/luatexdir/image/writejpg.c @@ -21,6 +21,7 @@ #include <assert.h> #include "ptexlib.h" #include "image.h" +#include "writejpg.h" static const char _svn_version[] = "$Id: writejpg.c 2320 2009-04-18 08:52:30Z hhenkel $ " diff --git a/Build/source/texk/web2c/luatexdir/image/writepng.c b/Build/source/texk/web2c/luatexdir/image/writepng.c index 999f277b60c..154a8a351c2 100644 --- a/Build/source/texk/web2c/luatexdir/image/writepng.c +++ b/Build/source/texk/web2c/luatexdir/image/writepng.c @@ -21,6 +21,7 @@ #include <assert.h> #include "ptexlib.h" #include "image.h" +#include "writepng.h" static const char _svn_version[] = "$Id: writepng.c 2317 2009-04-18 00:12:18Z hhenkel $ " |