From f75c1aeb27213255615d5993f04c597f0e324d81 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 13 Sep 2005 10:07:54 +0000 Subject: [PATCH] - move include t1lib out of image.h to font.c, since nothing it provides is needed elsewhere. - minor POD fixes --- Changes | 3 +++ Imager.pm | 2 +- TODO | 10 +++++----- font.c | 5 +++++ image.h | 1 - lib/Imager/Draw.pod | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Changes b/Changes index 4d447039..e62f889d 100644 --- a/Changes +++ b/Changes @@ -1138,6 +1138,9 @@ Revision history for Perl extension Imager. existing C functions that Imager uses internally. - limit limits.c to C89 - the gif tests weren't skipping enough when there was no gif support +- move include t1lib out of image.h to font.c, since nothing it + provides is needed elsewhere. +- minor POD fixes ================================================================= diff --git a/Imager.pm b/Imager.pm index ed899ffc..a659ffa7 100644 --- a/Imager.pm +++ b/Imager.pm @@ -3263,7 +3263,7 @@ posterize - L png files - L, L -pnm - L +pnm - L rectangles, drawing - L diff --git a/TODO b/TODO index 6391affb..47fb5158 100644 --- a/TODO +++ b/TODO @@ -25,10 +25,10 @@ not commitments. memory causing a denial of service attack. (done) - implement gsamp()/gsampf()/plin() etc methods for those low level image - interfaces which don't yet have methods. - - code - - test - - document + interfaces which don't yet have methods. (done) + - code (done) + - test (done) + - document (done) - add Imager::Tutorial (see Tk::UserGuide for a structure) don't cover installation - belongs in README or INSTALL @@ -54,7 +54,7 @@ not commitments. - figure out what the nearest_color filter does, and document it -- remove image.h dependency on t1lib.h +- remove image.h dependency on t1lib.h (done) - make sure dynfilt/Makefile.PL gets the same includes that Makefile.PL does. diff --git a/font.c b/font.c index fffc0d47..edc807cc 100644 --- a/font.c +++ b/font.c @@ -7,6 +7,11 @@ #include #include +#ifdef HAVE_LIBT1 +#include +#endif + + /* =head1 NAME diff --git a/image.h b/image.h index 3ea6c4eb..cbc929c0 100644 --- a/image.h +++ b/image.h @@ -271,7 +271,6 @@ typedef struct i_font_mm_tag { } i_font_mm; #ifdef HAVE_LIBT1 -#include undef_int i_init_t1( int t1log ); int i_t1_new( char *pfb, char *afm ); diff --git a/lib/Imager/Draw.pod b/lib/Imager/Draw.pod index 89810439..529ee275 100644 --- a/lib/Imager/Draw.pod +++ b/lib/Imager/Draw.pod @@ -453,4 +453,4 @@ yet. Default color is not unified yet. Imager(3), Imager::Cookbook(3) -=back +=cut -- 2.39.2