add VIPS_EXEEXT to the exported API

EXEEXT was just internal, now it's part of the API we export
This commit is contained in:
John Cupitt 2011-06-15 14:42:49 +01:00
parent 7bd79e3ef4
commit 4650234e20
4 changed files with 16 additions and 12 deletions

View File

@ -66,6 +66,7 @@
- added im_aconv(), approximate convolution
- bumped smalltile to 512x512 for testing
- added VipsPool, got rid of floating refs again, argh
- VIPS_EXEEXT is now part of the exported API
30/11/10 started 7.24.0
- bump for new stable

View File

@ -189,9 +189,12 @@ expand () {
expand $libdir
VIPS_LIBDIR=$expanded_value
# this gets pasted into version.h as a #define
VIPS_EXEEXT=$EXEEXT
AC_SUBST(VIPS_EXEEXT)
# vips.c/im_guess_prefix.c need to know the exe suffix and (as a fallback)
# the configure-time install prefix
AC_DEFINE_UNQUOTED(VIPS_EXEEXT,"$EXEEXT",[extension for executable files])
AC_DEFINE_UNQUOTED(VIPS_PREFIX,"$prefix",[configure-time install prefix])
AC_DEFINE_UNQUOTED(VIPS_LIBDIR,"$VIPS_LIBDIR",[configure-time library directory])

View File

@ -58,27 +58,23 @@ user 9m34.700s
sys 0m1.500s
$ time vips im_aconv img_0075.jpg x.v g2d201.con 10 10
real 0m4.877s
user 0m7.490s
sys 0m0.220s
real 0m3.151s
user 0m5.640s
sys 0m0.100s
$ vips im_subtract x.v x2.v diff.v
$ vips im_abs diff.v abs.v
$ vips im_max abs.v
2.70833
- clustering could be much faster
- add more bandfmt
- are we handling mask offset correctly?
*/
/*
*/
#define DEBUG
#define VIPS_DEBUG
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
@ -303,7 +299,6 @@ boxes_break( Boxes *boxes )
double max;
double min;
double depth;
double sum;
int layers_above;
int layers_below;
int z, n, x, y;
@ -764,8 +759,8 @@ typedef struct {
int last_stride; /* Avoid recalcing offsets, if we can */
/* The rolling sums. int for integer types,
* double for floating point types.
/* The rolling sums. int for integer types, double for floating point
* types.
*/
void *sum;
} AConvSequence;

View File

@ -10,4 +10,9 @@
#define VIPS_MINOR_VERSION (@VIPS_MINOR_VERSION@)
#define VIPS_MICRO_VERSION (@VIPS_MICRO_VERSION@)
/* Not really anything to do with versions, but this is a handy place to put
* it.
*/
#define VIPS_EXEEXT "@VIPS_EXEEXT@"
#endif /*VIPS_VERSION_H*/