mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 06:14:03 +00:00
removed FINITE() macro.
2002-05-13 Sven Neumann <sven@gimp.org> * libgimpmath/gimpmath.h: removed FINITE() macro. * tools/pdbgen/pdb/image.pdb * app/pdb/image_cmds.c: define FINITE() here, where it is used. * tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp .c files. * libgimp/gimp*_pdb.c: regenerated. * libgimp/gimpbrushmenu.c * libgimp/gimpchannel.c * libgimp/gimpdrawable.c * libgimp/gimpgradientmenu.c * libgimp/gimphelp.c * libgimp/gimpimage.c * libgimp/gimplayer.c * libgimp/gimppatternmenu.c * libgimp/gimppixelrgn.c * libgimp/gimpproceduraldb.c * libgimp/gimpselection.c * libgimp/gimptile.c * libgimp/gimpui.c * libgimpmath/gimpmatrix.c * libgimpmath/gimpvector.c * plug-ins/MapObject/arcball.c * plug-ins/fp/fp_gdk.c * plug-ins/fp/fp_misc.c * plug-ins/ifscompose/ifscompose_storage.c * plug-ins/ifscompose/ifscompose_utils.c * plug-ins/maze/handy.c * plug-ins/rcm/rcm_gdk.c * plug-ins/sel2path/edge.c * plug-ins/xjt/xjpeg.c * plug-ins/xjt/xpdb_calls.c: include "config.h".
This commit is contained in:
parent
1ab94ead7e
commit
fe0bf162c1
38
ChangeLog
38
ChangeLog
|
@ -1,3 +1,41 @@
|
|||
2002-05-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpmath/gimpmath.h: removed FINITE() macro.
|
||||
|
||||
* tools/pdbgen/pdb/image.pdb
|
||||
* app/pdb/image_cmds.c: define FINITE() here, where it is used.
|
||||
|
||||
* tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp
|
||||
.c files.
|
||||
|
||||
* libgimp/gimp*_pdb.c: regenerated.
|
||||
|
||||
* libgimp/gimpbrushmenu.c
|
||||
* libgimp/gimpchannel.c
|
||||
* libgimp/gimpdrawable.c
|
||||
* libgimp/gimpgradientmenu.c
|
||||
* libgimp/gimphelp.c
|
||||
* libgimp/gimpimage.c
|
||||
* libgimp/gimplayer.c
|
||||
* libgimp/gimppatternmenu.c
|
||||
* libgimp/gimppixelrgn.c
|
||||
* libgimp/gimpproceduraldb.c
|
||||
* libgimp/gimpselection.c
|
||||
* libgimp/gimptile.c
|
||||
* libgimp/gimpui.c
|
||||
* libgimpmath/gimpmatrix.c
|
||||
* libgimpmath/gimpvector.c
|
||||
* plug-ins/MapObject/arcball.c
|
||||
* plug-ins/fp/fp_gdk.c
|
||||
* plug-ins/fp/fp_misc.c
|
||||
* plug-ins/ifscompose/ifscompose_storage.c
|
||||
* plug-ins/ifscompose/ifscompose_utils.c
|
||||
* plug-ins/maze/handy.c
|
||||
* plug-ins/rcm/rcm_gdk.c
|
||||
* plug-ins/sel2path/edge.c
|
||||
* plug-ins/xjt/xjpeg.c
|
||||
* plug-ins/xjt/xpdb_calls.c: include "config.h".
|
||||
|
||||
2002-05-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/config/gimpconfig.c (gimp_config_serialize): serialize to a
|
||||
|
|
|
@ -3752,6 +3752,24 @@ image_set_resolution_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
#ifdef HAVE_FINITE
|
||||
#define FINITE(x) finite(x)
|
||||
#else
|
||||
#ifdef HAVE_ISFINITE
|
||||
#define FINITE(x) isfinite(x)
|
||||
#else
|
||||
#ifdef G_OS_WIN32
|
||||
#define FINITE(x) _finite(x)
|
||||
#else
|
||||
#ifdef __EMX__
|
||||
#define FINITE(x) isfinite(x)
|
||||
#else
|
||||
#error "no FINITE() implementation available?!"
|
||||
#endif /* __EMX__ */
|
||||
#endif /* G_OS_WIN32 */
|
||||
#endif /* HAVE_ISFINITE */
|
||||
#endif /* HAVE_FINITE */
|
||||
|
||||
if (!FINITE (xresolution) ||
|
||||
xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION ||
|
||||
!FINITE (yresolution) ||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2002-05-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpmath/libgimpmath-sections.txt
|
||||
* libgimpmath/tmpl/gimpmath.sgml: removed FINITE.
|
||||
|
||||
2002-05-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/libgimpwidgets-sections.txt
|
||||
|
|
|
@ -8,7 +8,6 @@ MAX255
|
|||
CLAMP0255
|
||||
gimp_deg_to_rad
|
||||
gimp_rad_to_deg
|
||||
FINITE
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
|
|
@ -77,11 +77,3 @@ Mathematical definitions and macros.
|
|||
@angle:
|
||||
|
||||
|
||||
<!-- ##### MACRO FINITE ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@x:
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -27,7 +29,6 @@
|
|||
#endif
|
||||
#undef GTK_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
#include "gimp.h"
|
||||
#include "gimpui.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
void
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -19,8 +19,11 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
|
||||
/**
|
||||
* gimp_layer_new:
|
||||
* @image_ID: The image to which to add the layer.
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -20,7 +20,9 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "string.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning GTK_DISABLE_DEPRECATED
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
/* Experimental: comment-out the following #define if a memcpy() call is
|
||||
slower than compiler-optimized memory copies for transfers of approx.
|
||||
64-256 bytes.
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h> /* memcmp */
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp.h"
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
#include "gimpui.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
/* NOTE: This file is autogenerated by pdbgen.pl */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gimp.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,32 +64,15 @@ G_BEGIN_DECLS
|
|||
/* Square */
|
||||
#define SQR(x) ((x) * (x))
|
||||
|
||||
/* limit a (0->511) int to 255 */
|
||||
/* Limit a (0->511) int to 255 */
|
||||
#define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8)))
|
||||
|
||||
/* clamp a >>int32<<-range int between 0 and 255 inclusive */
|
||||
/* broken! -> #define CLAMP0255(a) ((a & 0xFFFFFF00)? (~(a>>31)) : a) */
|
||||
/* Clamp a >>int32<<-range int between 0 and 255 inclusive */
|
||||
#define CLAMP0255(a) CLAMP(a,0,255)
|
||||
|
||||
#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
|
||||
#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
|
||||
|
||||
#ifdef HAVE_FINITE
|
||||
#define FINITE(x) finite(x)
|
||||
#else
|
||||
#ifdef HAVE_ISFINITE
|
||||
#define FINITE(x) isfinite(x)
|
||||
#else
|
||||
#ifdef G_OS_WIN32
|
||||
#define FINITE(x) _finite(x)
|
||||
#else
|
||||
#ifdef __EMX__
|
||||
#define FINITE(x) isfinite(x)
|
||||
#endif /* __EMX__ */
|
||||
#endif /* G_OS_WIN32 */
|
||||
#endif /* HAVE_ISFINITE */
|
||||
#endif /* HAVE_FINITE */
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h> /* memcmp */
|
||||
|
||||
#include <glib.h>
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
/* A little collection of useful vector stuff */
|
||||
/**********************************************/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpmath.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* Modified by Tom Bech, 1996 */
|
||||
/************************************/
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include "config.h"
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h> /* strlen */
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "libgimp/gimp.h"
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
*
|
||||
*-----------------------------------------------------------------------------------*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "types.h"
|
||||
|
|
|
@ -29,15 +29,19 @@
|
|||
* version 1.00.00; 1998/10/26 hof: 1.st (pre) release
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Include for External Libraries */
|
||||
#include <jpeglib.h>
|
||||
|
||||
/* GIMP includes */
|
||||
#include "libgimp/gimp.h"
|
||||
|
||||
#include "xjpeg.h"
|
||||
|
||||
extern int xjt_debug;
|
||||
|
|
|
@ -32,15 +32,17 @@
|
|||
* version 1.01.00; 1998/11/22 hof: PDB-calls to load/save guides under GIMP 1.1
|
||||
* version 1.00.00; 1998/10/31 hof: 1.st (pre) release
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* GIMP includes */
|
||||
#include "libgimp/gimp.h"
|
||||
#include "xjpeg.h"
|
||||
|
||||
/* #include "cursorutil.h" */
|
||||
#include "xjpeg.h"
|
||||
|
||||
/* XJT includes */
|
||||
#include "xpdb_calls.h"
|
||||
|
|
|
@ -596,6 +596,7 @@ HEADER
|
|||
print CFILE $lgpl_top;
|
||||
print CFILE " * $cname\n";
|
||||
print CFILE $lgpl_bottom;
|
||||
print CFILE qq/#include "config.h"\n\n/;
|
||||
print CFILE $out->{headers}, "\n" if exists $out->{headers};
|
||||
print CFILE qq/#include "gimp.h"\n/;
|
||||
print CFILE qq/#include "gimpprivate.h"\n/ if $privatevars;
|
||||
|
|
|
@ -1289,6 +1289,24 @@ HELP
|
|||
|
||||
$invoke{code} = <<'CODE';
|
||||
{
|
||||
#ifdef HAVE_FINITE
|
||||
#define FINITE(x) finite(x)
|
||||
#else
|
||||
#ifdef HAVE_ISFINITE
|
||||
#define FINITE(x) isfinite(x)
|
||||
#else
|
||||
#ifdef G_OS_WIN32
|
||||
#define FINITE(x) _finite(x)
|
||||
#else
|
||||
#ifdef __EMX__
|
||||
#define FINITE(x) isfinite(x)
|
||||
#else
|
||||
#error "no FINITE() implementation available?!"
|
||||
#endif /* __EMX__ */
|
||||
#endif /* G_OS_WIN32 */
|
||||
#endif /* HAVE_ISFINITE */
|
||||
#endif /* HAVE_FINITE */
|
||||
|
||||
if (!FINITE (xresolution) ||
|
||||
xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION ||
|
||||
!FINITE (yresolution) ||
|
||||
|
|
Loading…
Reference in a new issue