Fixed i_transform2() so malloc(0) doesn't happen. Also corrected pod errors and
authorArnar Mar Hrafnkelsson <addi@cpan.org>
Sun, 28 Oct 2001 21:11:40 +0000 (21:11 +0000)
committerArnar Mar Hrafnkelsson <addi@cpan.org>
Sun, 28 Oct 2001 21:11:40 +0000 (21:11 +0000)
added author sections to all .c files.

16 files changed:
Imager.xs
README
fills.c
filters.c
font.c
image.c
img16.c
imgdouble.c
iolayer.c
maskimg.c
palimg.c
pnm.c
rotate.c
tags.c
tga.c
tiff.c

index 5dfed4ea8a66efb6ee1ddddc2e4f15fad29e9799..066e9cfd7c431ed15aefd1cbeb63eb0bc1ebd075 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -1922,7 +1922,7 @@ i_transform2(width,height,ops,n_regs,c_regs,in_imgs)
             else {
               in_imgs_count = 0;
              }
-             if (SvTYPE(SvRV(ST(5))) == SVt_PVAV) {
+             if (in_imgs_count > 0) {
                av = (AV*)SvRV(ST(5));
                in_imgs = mymalloc(in_imgs_count*sizeof(i_img*));
                for (i = 0; i < in_imgs_count; ++i) {              
diff --git a/README b/README
index a8cea62a029b08eff351c0c03f369033882280be..4a05dd43436398615332a59a5cb46c227b2e4134 100644 (file)
--- a/README
+++ b/README
@@ -5,7 +5,8 @@ modify it under the same terms as Perl itself.
 ================================================================
 
 >> THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY WHATSOEVER <<
-If you like or hate Imager, please let us know at imager@perl.org!
+If you like or hate Imager, please let us know by sending mail 
+to imager@imager.perl.org
 
 ================================================================
 
diff --git a/fills.c b/fills.c
index 196d91ca616c874d013598a884ed8ff68282d4f0..181fca6e48ca78ce94f6309af63d3e615601cf08 100644 (file)
--- a/fills.c
+++ b/fills.c
@@ -640,7 +640,7 @@ i_new_hatch_low(i_color *fg, i_color *bg, i_fcolor *ffg, i_fcolor *fbg,
 
 The 8-bit sample fill function for hatched fills.
 
-=back
+=cut
 */
 static void fill_hatch(i_fill_t *fill, int x, int y, int width, int channels, 
                        i_color *data, i_color *work) {
index 8f89b64650fe65a9fc8f57e5902178888cbe7e17..2110a34120db84aea74182c89b14b4ea52e70e36 100644 (file)
--- a/filters.c
+++ b/filters.c
@@ -27,7 +27,7 @@ the pod for Imager.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
diff --git a/font.c b/font.c
index 293b5bead1659e7e7238d4f94ab7e7b50f0dfbef..a72d58ede26d984bd277d36dc0bf415affa32159 100644 (file)
--- a/font.c
+++ b/font.c
@@ -43,7 +43,7 @@ more for Imager.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 
@@ -1218,3 +1218,18 @@ i_tt_bbox( TT_Fonthandle *handle, float points,char *txt,int len,int cords[6]) {
 
 
 #endif /* HAVE_LIBTT */
+
+
+/*
+=back
+
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
diff --git a/image.c b/image.c
index 3a5de5a24e88fe60129f75d80afc607707f1a1f5..0478b987d4241391801115a74e66ddc8e2d6f329 100644 (file)
--- a/image.c
+++ b/image.c
@@ -26,7 +26,7 @@ color objects for Imager.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
@@ -2059,6 +2059,12 @@ int free_gen_write_data(i_gen_write_data *info, int flush)
 /*
 =back
 
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+Tony Cook <tony@develop-help.com>
+
 =head1 SEE ALSO
 
 L<Imager>, L<gif.c>
diff --git a/img16.c b/img16.c
index 0aa31349afb2baf6beeab0403bafd0ff55b88a8c..bd08738ac39fa44466e67aa0cb6dd0766c7499bb 100644 (file)
--- a/img16.c
+++ b/img16.c
@@ -402,3 +402,16 @@ static int i_gsampf_d16(i_img *im, int l, int r, int y, i_fsample_t *samps,
   }
 }
 
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
index 7770f7a924788e3d980e565c2fc986f2aae6b2ad..0afd3dc2b2c8000e517bc7d9ffc817eddf63659b 100644 (file)
@@ -349,3 +349,17 @@ static int i_gsampf_ddoub(i_img *im, int l, int r, int y, i_fsample_t *samps,
   }
 }
 
+
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
index ef48c6947ccc3b2636f75683dbf8ddecfcd83b7e..7089ffeccae5b09de5fac56b1972887ac9480660 100644 (file)
--- a/iolayer.c
+++ b/iolayer.c
@@ -52,7 +52,7 @@ objects for Imager.  The typical usage pattern for data sources is:
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
@@ -889,3 +889,18 @@ io_glue_DESTROY(io_glue *ig) {
   }
   myfree(ig);
 }
+
+
+/*
+=back
+
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
index 21af1b92e3fd7f15cc35a4aff52b866e7a27786e..d8656f6371e4ab887106d569092c7b6e8fdaaedd 100644 (file)
--- a/maskimg.c
+++ b/maskimg.c
@@ -512,3 +512,17 @@ static int i_ppal_masked(i_img *im, int l, int r, int y, i_palidx *vals) {
   }
 }
 
+
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
index be5858adc3f385dba73f2851f5dff5f5d02d30b5..baa87180d0d112b2c1cf6e2aba6e47c5f7f4d3af 100644 (file)
--- a/palimg.c
+++ b/palimg.c
@@ -554,3 +554,17 @@ static int i_findcolor_p(i_img *im, i_color *color, i_palidx *entry) {
   }
   return 0;
 }
+
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
diff --git a/pnm.c b/pnm.c
index 8788602ff2ea5c15f55142bfcc2e78f56912e20c..3083eef98ff8e739d93a7756f441f760b944f1b1 100644 (file)
--- a/pnm.c
+++ b/pnm.c
@@ -30,7 +30,7 @@ or an entire memory mapped buffer.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
@@ -499,3 +499,17 @@ i_writeppm_wiol(i_img *im, io_glue *ig) {
 
   return(1);
 }
+
+/*
+=back
+
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
index 5c09dcd601c7052eef9616ff7d3d370c90aadf48..21ca27a127e23259c049c84937f1ecd6ec7f127b 100644 (file)
--- a/rotate.c
+++ b/rotate.c
@@ -438,3 +438,17 @@ i_img *i_rotate_exact(i_img *src, double amount) {
 
   return i_matrix_transform(src, newxsize, newysize, matrix);
 }
+
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
diff --git a/tags.c b/tags.c
index da4affa6a174ecc37d4e25146b0a30bb169fb331..dffe0eb68466bb0de194119493274fbb34e15e79 100644 (file)
--- a/tags.c
+++ b/tags.c
@@ -329,3 +329,17 @@ void i_tags_print(i_img_tags *tags) {
     }
   }
 }
+
+/*
+=back
+
+=head1 AUTHOR
+
+Tony Cook <tony@develop-help.com>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
diff --git a/tga.c b/tga.c
index 8368ddb2a75dcde18c551b99a47483d55f8a1ba1..2f47c410d9e2a8c6ddcc790f1db3b7eeefc0ad8d 100644 (file)
--- a/tga.c
+++ b/tga.c
@@ -30,7 +30,7 @@ entire memory mapped buffer.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
@@ -870,3 +870,17 @@ i_writetga_wiol(i_img *img, io_glue *ig, int wierdpack, int compress, char *idst
   }
   return 1;
 }
+
+/*
+=back
+
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/
diff --git a/tiff.c b/tiff.c
index 2f576cf77c1ec097102752d319382573f2da40b6..45b131a5b48980fba0a1f0032098a9f3f795e240 100644 (file)
--- a/tiff.c
+++ b/tiff.c
@@ -25,7 +25,7 @@ memory mapped buffer.
 
 Some of these functions are internal.
 
-=over 4
+=over
 
 =cut
 */
@@ -533,3 +533,17 @@ i_writetiff_wiol_faxable(i_img *im, io_glue *ig, int fine) {
   return 1;
 }
 
+
+/*
+=back
+
+=head1 AUTHOR
+
+Arnar M. Hrafnkelsson <addi@umich.edu>
+
+=head1 SEE ALSO
+
+Imager(3)
+
+=cut
+*/