Skip to content

Commit f8bdc9a

Browse files
committed
fix compile errors
1 parent 13868ab commit f8bdc9a

File tree

3 files changed

+15
-32
lines changed

3 files changed

+15
-32
lines changed

libvips/include/vips/object.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,6 @@ VIPS_ARGUMENT_OPTIONAL_OUTPUT Eg. the x pos of the image minimum
197197
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
198198
}
199199

200-
#define VIPS_ARG_INT64( CLASS, NAME, PRIORITY, LONG, DESC, \
201-
FLAGS, OFFSET, MIN, MAX, VALUE ) { \
202-
GParamSpec *pspec; \
203-
\
204-
pspec = g_param_spec_int64( (NAME), (LONG), (DESC), \
205-
(MIN), (MAX), (VALUE), \
206-
(GParamFlags) (G_PARAM_READWRITE) );\
207-
g_object_class_install_property( G_OBJECT_CLASS( CLASS ), \
208-
vips_argument_get_id(), pspec ); \
209-
vips_object_class_install_argument( VIPS_OBJECT_CLASS( CLASS ), \
210-
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
211-
}
212-
213200
#define VIPS_ARG_ENUM( CLASS, NAME, PRIORITY, LONG, DESC, \
214201
FLAGS, OFFSET, TYPE, VALUE ) { \
215202
GParamSpec *pspec; \

libvips/iofuncs/configure.c

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -165,40 +165,35 @@ vips_configure_class_init( VipsConfigureClass *class )
165165
_( "Set threadpool size" ),
166166
VIPS_ARGUMENT_OPTIONAL_INPUT,
167167
G_STRUCT_OFFSET( VipsConfigure, concurrency ),
168-
-1 );
168+
0, 0, 1024 );
169169

170-
VIPS_ARG_INT64( class, "pipe_read_limit", 5,
170+
VIPS_ARG_UINT64( class, "pipe_read_limit", 6,
171171
_( "Pipe read limit" ),
172172
_( "Maxiumum number of bytes to buffer for pipe read" ),
173173
VIPS_ARGUMENT_OPTIONAL_INPUT,
174174
G_STRUCT_OFFSET( VipsConfigure, pipe_read_limit ),
175-
-1 );
175+
0, 1024L * 1024L * 1024L, 1024L * 1024L * 1024L * 1024L );
176176

177-
VIPS_ARG_INT( class, "cache_max", 5,
177+
VIPS_ARG_INT( class, "cache_max", 7,
178178
_( "Cache max size" ),
179179
_( "Maxium number of operations to cache" ),
180180
VIPS_ARGUMENT_OPTIONAL_INPUT,
181181
G_STRUCT_OFFSET( VipsConfigure, cache_max ),
182-
-1 );
182+
0, 100, 100000 );
183183

184-
VIPS_ARG_INT( class, "cache_max_mem", 5,
184+
VIPS_ARG_UINT64( class, "cache_max_mem", 8,
185185
_( "Cache max memory size" ),
186-
_( "Maxium number of operations to cache" ),
186+
_( "Maxium amount of memory for the operation cache" ),
187187
VIPS_ARGUMENT_OPTIONAL_INPUT,
188188
G_STRUCT_OFFSET( VipsConfigure, cache_max ),
189-
-1 );
190-
191-
/* Number of recent operations to cache.
192-
*/
193-
int cache_max;
194-
195-
/* Maximum memory to use for operation caching.
196-
*/
197-
int64 cache_max_mem;
189+
0, 100 * 1024L * 1024L, 1024L * 1024L * 1024L * 1024L );
198190

199-
/* Maximum number of open files we allow in the cache.
200-
*/
201-
int cache_max_files;
191+
VIPS_ARG_INT( class, "cache_max_files", 9,
192+
_( "Cache max open files" ),
193+
_( "Maxium number of open files in operation cache" ),
194+
VIPS_ARGUMENT_OPTIONAL_INPUT,
195+
G_STRUCT_OFFSET( VipsConfigure, cache_max_files ),
196+
0, 100, 100000 );
202197

203198
}
204199

libvips/iofuncs/source.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* A byte source/sink .. it can be a pipe, file descriptor, memory area,
12
* socket, node.js stream, etc.
23
*
34
* 19/6/14

0 commit comments

Comments
 (0)