"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/iofuncs/target.c" between
vips-8.10.6.tar.gz and vips-8.11.0.tar.gz

About: VIPS is a free image processing system (see also the GUI nip2).

target.c  (vips-8.10.6):target.c  (vips-8.11.0)
skipping to change at line 58 skipping to change at line 58
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif /*HAVE_UNISTD_H*/ #endif /*HAVE_UNISTD_H*/
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#ifdef OS_WIN32
#include <io.h>
#endif /*OS_WIN32*/
#include <vips/vips.h> #include <vips/vips.h>
#include <vips/internal.h> #include <vips/internal.h>
#include <vips/debug.h> #include <vips/debug.h>
#ifdef G_OS_WIN32
#include <io.h>
#endif /*G_OS_WIN32*/
/* Try to make an O_BINARY ... sometimes need the leading '_'. /* Try to make an O_BINARY ... sometimes need the leading '_'.
*/ */
#ifdef BINARY_OPEN #if defined(G_PLATFORM_WIN32) || defined(G_WITH_CYGWIN)
#ifndef O_BINARY #ifndef O_BINARY
#ifdef _O_BINARY #ifdef _O_BINARY
#define O_BINARY _O_BINARY #define O_BINARY _O_BINARY
#endif /*_O_BINARY*/ #endif /*_O_BINARY*/
#endif /*!O_BINARY*/ #endif /*!O_BINARY*/
#endif /*BINARY_OPEN*/ #endif /*defined(G_PLATFORM_WIN32) || defined(G_WITH_CYGWIN)*/
/* If we have O_BINARY, add it to a mode flags set. /* If we have O_BINARY, add it to a mode flags set.
*/ */
#ifdef O_BINARY #ifdef O_BINARY
#define BINARYIZE(M) ((M) | O_BINARY) #define BINARYIZE(M) ((M) | O_BINARY)
#else /*!O_BINARY*/ #else /*!O_BINARY*/
#define BINARYIZE(M) (M) #define BINARYIZE(M) (M)
#endif /*O_BINARY*/ #endif /*O_BINARY*/
#define MODE_READ BINARYIZE (O_RDONLY) #define MODE_READ BINARYIZE (O_RDONLY)
skipping to change at line 146 skipping to change at line 147
return( -1 ); return( -1 );
} }
connection->tracked_descriptor = fd; connection->tracked_descriptor = fd;
connection->descriptor = fd; connection->descriptor = fd;
} }
else if( vips_object_argument_isset( object, "descriptor" ) ) { else if( vips_object_argument_isset( object, "descriptor" ) ) {
connection->descriptor = dup( connection->descriptor ); connection->descriptor = dup( connection->descriptor );
connection->close_descriptor = connection->descriptor; connection->close_descriptor = connection->descriptor;
#ifdef OS_WIN32 #ifdef G_OS_WIN32
/* Windows will create eg. stdin and stdout in text mode. /* Windows will create eg. stdin and stdout in text mode.
* We always write in binary mode. * We always write in binary mode.
*/ */
_setmode( connection->descriptor, _O_BINARY ); _setmode( connection->descriptor, _O_BINARY );
#endif /*OS_WIN32*/ #endif /*G_OS_WIN32*/
} }
else if( target->memory ) else if( target->memory )
target->memory_buffer = g_byte_array_new(); target->memory_buffer = g_byte_array_new();
return( 0 ); return( 0 );
} }
static gint64 static gint64
vips_target_write_real( VipsTarget *target, const void *data, size_t length ) vips_target_write_real( VipsTarget *target, const void *data, size_t length )
{ {
 End of changes. 6 change blocks. 
7 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)