win32 fixes

we had a dropped file and a mode_t in a va_get() that should have been
an int
This commit is contained in:
John Cupitt 2012-02-25 17:47:40 +00:00
parent 9fc3c381ba
commit ef19ecc923
4 changed files with 260 additions and 247 deletions

12
TODO
View File

@ -1,11 +1,7 @@
blocking bugs blocking bugs
============= =============
- new binding is still missing constants - none!
how do boxed types work? confusing
we need to be able to make a VipsArrayDouble
mosaic mosaic
@ -210,6 +206,12 @@ swig
new bindings new bindings
============ ============
- new binding is still missing constants
how do boxed types work? confusing
we need to be able to make a VipsArrayDouble
- Vips.Image has members like chain, __subclasshook__ etc etc, are we - Vips.Image has members like chain, __subclasshook__ etc etc, are we
really subclassing it correctly? really subclassing it correctly?

View File

@ -17,6 +17,7 @@ libforeign_la_SOURCES = \
rawsave.c \ rawsave.c \
vipsload.c \ vipsload.c \
vipssave.c \ vipssave.c \
dbh.h \
analyzeload.c \ analyzeload.c \
analyze2vips.c \ analyze2vips.c \
analyze2vips.h \ analyze2vips.h \

View File

@ -340,8 +340,11 @@ vips_tracked_open( const char *pathname, int flags, ... )
mode_t mode; mode_t mode;
va_list ap; va_list ap;
/* mode_t is promoted to int in ..., so we have to pull it out as an
* int.
*/
va_start( ap, flags ); va_start( ap, flags );
mode = va_arg( ap, mode_t ); mode = va_arg( ap, int );
va_end( ap ); va_end( ap );
if( (fd = open( pathname, flags, mode )) == -1 ) if( (fd = open( pathname, flags, mode )) == -1 )

File diff suppressed because it is too large Load Diff