only allow [] to enclose options

we could pick up ( ) too easily before

see https://github.com/jcupitt/libvips/issues/342
This commit is contained in:
John Cupitt 2015-10-26 13:59:55 +00:00
parent 9cad049051
commit 3b34308e6d
2 changed files with 0 additions and 11 deletions

5
TODO
View File

@ -1,8 +1,3 @@
- dzsave output dir names often don't have extensions, so stuff in brackets at
the end of the filename can get picked up
perhaps remove using () for options?
- try vips_shrink() in two passes: first, sum horizontal strips, second sum
vertical

View File

@ -1165,18 +1165,12 @@ vips__token_get( const char *p, VipsToken *token, char *string, int size )
return( NULL );
switch( (ch = p[0]) ) {
case '{':
case '[':
case '(':
case '<':
*token = VIPS_TOKEN_LEFT;
p += 1;
break;
case ')':
case ']':
case '}':
case '>':
*token = VIPS_TOKEN_RIGHT;
p += 1;
break;