Commits

Anonymous committed c376a74

- sync to 2.0.15

  • Participants
  • Parent commits f06ea6d
  • Tags GD_2_0_15

Comments (0)

Files changed (4)

File src/configure

 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57 for GD 2.0.14.
+# Generated by GNU Autoconf 2.57 for GD 2.0.15.
 #
 # Report bugs to <gd@boutell.com>.
 #
 # Identity of this package.
 PACKAGE_NAME='GD'
 PACKAGE_TARNAME='gd'
-PACKAGE_VERSION='2.0.14'
-PACKAGE_STRING='GD 2.0.14'
+PACKAGE_VERSION='2.0.15'
+PACKAGE_STRING='GD 2.0.15'
 PACKAGE_BUGREPORT='gd@boutell.com'
 
 ac_unique_file="gd.c"
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures GD 2.0.14 to adapt to many kinds of systems.
+\`configure' configures GD 2.0.15 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of GD 2.0.14:";;
+     short | recursive ) echo "Configuration of GD 2.0.15:";;
    esac
   cat <<\_ACEOF
 
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-GD configure 2.0.14
+GD configure 2.0.15
 generated by GNU Autoconf 2.57
 
 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by GD $as_me 2.0.14, which was
+It was created by GD $as_me 2.0.15, which was
 generated by GNU Autoconf 2.57.  Invocation command line was
 
   $ $0 $@
 
 GDLIB_MAJOR=2
 GDLIB_MINOR=0
-GDLIB_REVISION=14
+GDLIB_REVISION=15
 GDLIBNAME=gd
 
 
 
 # Define the identity of the package.
  PACKAGE=gd
- VERSION=2.0.14
+ VERSION=2.0.15
 
 
 cat >>confdefs.h <<_ACEOF
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by GD $as_me 2.0.14, which was
+This file was extended by GD $as_me 2.0.15, which was
 generated by GNU Autoconf 2.57.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-GD config.status 2.0.14
+GD config.status 2.0.15
 configured by $0, generated by GNU Autoconf 2.57,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 

File src/configure.ac

 AC_PREREQ(2.54)
 
 #HEY! Change BOTH the vesion number and the GDLIB_REVISION setting!
-AC_INIT([GD], [2.0.14], [gd@boutell.com])
+AC_INIT([GD], [2.0.15], [gd@boutell.com])
 AC_CONFIG_SRCDIR([gd.c])
 AC_CONFIG_AUX_DIR(config)
 
 GDLIB_MAJOR=2
 GDLIB_MINOR=0
-GDLIB_REVISION=14
+GDLIB_REVISION=15
 GDLIBNAME=gd
 
 AC_SUBST(GDLIB_MAJOR)
 {
   float p_dist, p_alpha;
   unsigned char opacity;
-  /* 2.0.13: bounds check! AA_opacity is just as capable of
-    overflowing as the main pixel array. Arne Jorgensen. */
-  if (!gdImageBoundsSafeMacro (im, px, py))
-  {
-    return;
-  }
+
   /* 
    * Find the perpendicular distance from point C (px, py) to the line 
    * segment AB that is being drawn.  (Adapted from an algorithm from the
 
   int Bx_Cx = im->AAL_x2 - px;
   int By_Cy = im->AAL_y2 - py;
-
+  /* 2.0.13: bounds check! AA_opacity is just as capable of
+    overflowing as the main pixel array. Arne Jorgensen. 
+    2.0.14: typo fixed. 2.0.15: moved down below declarations
+    to satisfy non-C++ compilers. */
+  if (!gdImageBoundsSafeMacro (im, px, py))
+  {
+    return;
+  }
   /* Get the squares of the lengths of the segemnts AC and BC. */
   LAC_2 = (Ax_Cx * Ax_Cx) + (Ay_Cy * Ay_Cy);
   LBC_2 = (Bx_Cx * Bx_Cx) + (By_Cy * By_Cy);

File src/index.html

 <html>
 <head>
-<TITLE>gd 2.0.14</TITLE>
+<TITLE>gd 2.0.15</TITLE>
 </head>
 <body bgcolor="#FFFFFF">
 <!-- BANNER HERE -->
-<h1>This is gd 2.0.14.</h1>
+<h1>This is gd 2.0.15.</h1>
 <p>
-<H2>gd 2.0.14</H2>
+<H2>gd 2.0.15</H2>
 <H3>A graphics library for fast image creation</H3>
 <H3>Follow this link to the
 <A HREF="http://www.boutell.com/gd/">latest version
 new installation overwrites the old.
 <p>
 <strong>ABOUT GD AND GIF:</strong>
-gd 2.0.14 creates PNG, JPEG and WBMP images, not GIF images. This is a 
+gd 2.0.15 creates PNG, JPEG and WBMP images, not GIF images. This is a 
 good thing.  PNG is a more compact format, and full compression is
 available.  JPEG works best with photographic images, and is still
 more compatible with the major Web browsers than even PNG is. WBMP is
 modern image formats such as PNG and JPEG as soon as possible.
 
 <p>
-gd 2.0.14 <strong>requires</strong> that the following libraries 
+gd 2.0.15 <strong>requires</strong> that the following libraries 
 also be installed, in order to produce the related image formats.
 You may skip libraries associated with formats you do not use:
 <p>
 <H3>Table of Contents</H3>
 <UL>
 <LI><A HREF="#notice">Credits and license terms</A>
-<LI><A HREF="#whatsnew2.0.14">What's new in version "XYZ" of GD?</A>
+<LI><A HREF="#whatsnew2.0.15">What's new in version "XYZ" of GD?</A>
 <LI><A HREF="#whatis">What is gd?</A>
 <LI><A HREF="#gdother">What if I want to use another programming language?</A>
 <LI><A HREF="#required">What else do I need to use gd?</A>
 <A NAME="gdother"><H3>What if I want to use another programming
 language?</h3></A>
 Not all of these tools are necessarily up to date and fully compatible
-with 2.0.14.
+with 2.0.15.
 <h4>PHP</h4>
 A variant of gd 2.x is included in PHP 4.3.0. It is also possible
-to patch PHP 4.2.3 for use with gd 2.0.14; see the
+to patch PHP 4.2.3 for use with gd 2.0.15; see the
 <a href="http://www.boutell.com/gd/">gd home page</a> for a link to
 that information. It would be a Good Idea to merge all of the things
 that are better in mainstream gd and all of the things that are
 <li><a href="http://martin.gleeson.com/fly/">fly</a>, by Martin Gleeson
 </ul>
 <P>
+<A NAME="whatsnew2.0.15"><H3>What's new in version 2.0.15?</H3></A>
+<P>
+<ul>
+<li>gd.c in 2.0.14 contained an instance of declaring variables
+after the first line of executable code appears. This is of course
+not allowed by ANSI C, although many compilers accept it. 
+My apologies. Thanks to Jeff Vendetti for reporting this quickly.
+</ul>
+<P>
 <A NAME="whatsnew2.0.14"><H3>What's new in version 2.0.14?</H3></A>
 <P>
 <ul>
 <P>
 <A NAME="getgd"><H3>How do I get gd?</H3></A>
 <ul>
-<li><a href="http://www.boutell.com/gd/http/gd-2.0.14.tar.gz">Gzipped Tar File (Unix)</a>
-<li><a href="http://www.boutell.com/gd/http/gd-2.0.14.zip">.ZIP File (Windows)</a>
+<li><a href="http://www.boutell.com/gd/http/gd-2.0.15.tar.gz">Gzipped Tar File (Unix)</a>
+<li><a href="http://www.boutell.com/gd/http/gd-2.0.15.zip">.ZIP File (Windows)</a>
 </ul>
 <P>
 <A NAME="buildgd"><H3>How do I build gd?</H3></A>
 consult with an experienced user of your system. Sorry, we cannot
 answer questions about basic Internet skills.
 <p>
-Unpacking the archive will produce a directory called "gd-2.0.14".
+Unpacking the archive will produce a directory called "gd-2.0.15".
 <p>
 <h4>For Unix</h4>
-<code>cd</code> to the 2.0.14 directory and type:
+<code>cd</code> to the 2.0.15 directory and type:
 <p>
 <code>./configure</code>
 <P>