Commit 30fb7c01 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

tools/pdbgen/pdb/channel.pdb tools/pdbgen/pdb/color.pdb

2006-03-24  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/plug_in.pdb
	* tools/pdbgen/pdb/procedural_db.pdb: replace '<' by '<=' in all
	int32 ranges so they specify min and max values.

	* app/pdb/channel_cmds.c
	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/drawable_transform_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/plug_in_cmds.c
	* app/pdb/procedural_db_cmds.c: regenerated.
parent 328345dc
2006-03-24 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/drawable_transform.pdb
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/plug_in.pdb
* tools/pdbgen/pdb/procedural_db.pdb: replace '<' by '<=' in all
int32 ranges so they specify min and max values.
* app/pdb/channel_cmds.c
* app/pdb/color_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/drawable_transform_cmds.c
* app/pdb/image_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/plug_in_cmds.c
* app/pdb/procedural_db_cmds.c: regenerated.
2006-03-24 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/brush.pdb
......
......@@ -79,11 +79,11 @@ channel_new_invoker (Gimp *gimp,
success = FALSE;
width = args[1].value.pdb_int;
if (width <= 0)
if (width < 1)
success = FALSE;
height = args[2].value.pdb_int;
if (height <= 0)
if (height < 1)
success = FALSE;
name = (gchar *) args[3].value.pdb_pointer;
......@@ -125,12 +125,12 @@ static ProcArg channel_new_inargs[] =
{
GIMP_PDB_INT32,
"width",
"The channel width: (0 < width)"
"The channel width: (1 <= width)"
},
{
GIMP_PDB_INT32,
"height",
"The channel height: (0 < height)"
"The channel height: (1 <= height)"
},
{
GIMP_PDB_STRING,
......
......@@ -751,7 +751,7 @@ curves_spline_invoker (Gimp *gimp,
success = FALSE;
num_points = args[2].value.pdb_int;
if (num_points <= 3 || num_points > 34)
if (num_points < 4 || num_points > 34)
success = FALSE;
control_pts = (guint8 *) args[3].value.pdb_pointer;
......@@ -839,7 +839,7 @@ static ProcArg curves_spline_inargs[] =
{
GIMP_PDB_INT32,
"num-points",
"The number of values in the control point array (3 < num_points <= 34)"
"The number of values in the control point array (4 <= num_points <= 34)"
},
{
GIMP_PDB_INT8ARRAY,
......
......@@ -2344,11 +2344,11 @@ drawable_thumbnail_invoker (Gimp *gimp,
success = FALSE;
width = args[1].value.pdb_int;
if (width <= 0 || width > 512)
if (width < 1 || width > 512)
success = FALSE;
height = args[2].value.pdb_int;
if (height <= 0 || height > 512)
if (height < 1 || height > 512)
success = FALSE;
if (success)
......@@ -2504,19 +2504,19 @@ drawable_sub_thumbnail_invoker (Gimp *gimp,
success = FALSE;
src_width = args[3].value.pdb_int;
if (src_width <= 0)
if (src_width < 1)
success = FALSE;
src_height = args[4].value.pdb_int;
if (src_height <= 0)
if (src_height < 1)
success = FALSE;
dest_width = args[5].value.pdb_int;
if (dest_width <= 0 || dest_width > 512)
if (dest_width < 1 || dest_width > 512)
success = FALSE;
dest_height = args[6].value.pdb_int;
if (dest_height <= 0 || dest_height > 512)
if (dest_height < 1 || dest_height > 512)
success = FALSE;
if (success)
......
......@@ -225,7 +225,7 @@ drawable_transform_flip_invoker (Gimp *gimp,
supersample = args[7].value.pdb_int ? TRUE : FALSE;
recursion_level = args[8].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[9].value.pdb_int ? TRUE : FALSE;
......@@ -545,7 +545,7 @@ drawable_transform_perspective_invoker (Gimp *gimp,
supersample = args[11].value.pdb_int ? TRUE : FALSE;
recursion_level = args[12].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[13].value.pdb_int ? TRUE : FALSE;
......@@ -1029,7 +1029,7 @@ drawable_transform_rotate_invoker (Gimp *gimp,
supersample = args[7].value.pdb_int ? TRUE : FALSE;
recursion_level = args[8].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[9].value.pdb_int ? TRUE : FALSE;
......@@ -1343,7 +1343,7 @@ drawable_transform_scale_invoker (Gimp *gimp,
supersample = args[7].value.pdb_int ? TRUE : FALSE;
recursion_level = args[8].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[9].value.pdb_int ? TRUE : FALSE;
......@@ -1653,7 +1653,7 @@ drawable_transform_shear_invoker (Gimp *gimp,
supersample = args[5].value.pdb_int ? TRUE : FALSE;
recursion_level = args[6].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[7].value.pdb_int ? TRUE : FALSE;
......@@ -1948,7 +1948,7 @@ drawable_transform_2d_invoker (Gimp *gimp,
supersample = args[10].value.pdb_int ? TRUE : FALSE;
recursion_level = args[11].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[12].value.pdb_int ? TRUE : FALSE;
......@@ -2314,7 +2314,7 @@ drawable_transform_matrix_invoker (Gimp *gimp,
supersample = args[12].value.pdb_int ? TRUE : FALSE;
recursion_level = args[13].value.pdb_int;
if (recursion_level <= 0)
if (recursion_level < 1)
success = FALSE;
clip_result = args[14].value.pdb_int ? TRUE : FALSE;
......
......@@ -291,11 +291,11 @@ image_new_invoker (Gimp *gimp,
GimpImage *image = NULL;
width = args[0].value.pdb_int;
if (width <= 0)
if (width < 1)
success = FALSE;
height = args[1].value.pdb_int;
if (height <= 0)
if (height < 1)
success = FALSE;
type = args[2].value.pdb_int;
......@@ -740,11 +740,11 @@ image_resize_invoker (Gimp *gimp,
success = FALSE;
new_width = args[1].value.pdb_int;
if (new_width <= 0)
if (new_width < 1)
success = FALSE;
new_height = args[2].value.pdb_int;
if (new_height <= 0)
if (new_height < 1)
success = FALSE;
offx = args[3].value.pdb_int;
......@@ -770,12 +770,12 @@ static ProcArg image_resize_inargs[] =
{
GIMP_PDB_INT32,
"new-width",
"New image width: 0 < new_width"
"New image width: 1 <= new_width"
},
{
GIMP_PDB_INT32,
"new-height",
"New image height: 0 < new_height"
"New image height: 1 <= new_height"
},
{
GIMP_PDB_INT32,
......@@ -871,11 +871,11 @@ image_scale_invoker (Gimp *gimp,
success = FALSE;
new_width = args[1].value.pdb_int;
if (new_width <= 0)
if (new_width < 1)
success = FALSE;
new_height = args[2].value.pdb_int;
if (new_height <= 0)
if (new_height < 1)
success = FALSE;
if (success)
......@@ -898,12 +898,12 @@ static ProcArg image_scale_inargs[] =
{
GIMP_PDB_INT32,
"new-width",
"New image width: 0 < new_width"
"New image width: 1 <= new_width"
},
{
GIMP_PDB_INT32,
"new-height",
"New image height: 0 < new_height"
"New image height: 1 <= new_height"
}
};
......@@ -943,11 +943,11 @@ image_crop_invoker (Gimp *gimp,
success = FALSE;
new_width = args[1].value.pdb_int;
if (new_width <= 0)
if (new_width < 1)
success = FALSE;
new_height = args[2].value.pdb_int;
if (new_height <= 0)
if (new_height < 1)
success = FALSE;
offx = args[3].value.pdb_int;
......@@ -3464,11 +3464,11 @@ image_thumbnail_invoker (Gimp *gimp,
success = FALSE;
width = args[1].value.pdb_int;
if (width <= 0 || width > 1024)
if (width < 1 || width > 1024)
success = FALSE;
height = args[2].value.pdb_int;
if (height <= 0 || height > 1024)
if (height < 1 || height > 1024)
success = FALSE;
if (success)
......
......@@ -118,11 +118,11 @@ layer_new_invoker (Gimp *gimp,
success = FALSE;
width = args[1].value.pdb_int;
if (width <= 0)
if (width < 1)
success = FALSE;
height = args[2].value.pdb_int;
if (height <= 0)
if (height < 1)
success = FALSE;
type = args[3].value.pdb_int;
......@@ -168,12 +168,12 @@ static ProcArg layer_new_inargs[] =
{
GIMP_PDB_INT32,
"width",
"The layer width: (0 < width)"
"The layer width: (1 <= width)"
},
{
GIMP_PDB_INT32,
"height",
"The layer height: (0 < height)"
"The layer height: (1 <= height)"
},
{
GIMP_PDB_INT32,
......@@ -455,11 +455,11 @@ layer_scale_invoker (Gimp *gimp,
success = FALSE;
new_width = args[1].value.pdb_int;
if (new_width <= 0)
if (new_width < 1)
success = FALSE;
new_height = args[2].value.pdb_int;
if (new_height <= 0)
if (new_height < 1)
success = FALSE;
local_origin = args[3].value.pdb_int ? TRUE : FALSE;
......@@ -487,12 +487,12 @@ static ProcArg layer_scale_inargs[] =
{
GIMP_PDB_INT32,
"new-width",
"New layer width: (0 < new_width)"
"New layer width: (1 <= new_width)"
},
{
GIMP_PDB_INT32,
"new-height",
"New layer height: (0 < new_height)"
"New layer height: (1 <= new_height)"
},
{
GIMP_PDB_INT32,
......@@ -537,11 +537,11 @@ layer_resize_invoker (Gimp *gimp,
success = FALSE;
new_width = args[1].value.pdb_int;
if (new_width <= 0)
if (new_width < 1)
success = FALSE;
new_height = args[2].value.pdb_int;
if (new_height <= 0)
if (new_height < 1)
success = FALSE;
offx = args[3].value.pdb_int;
......@@ -570,12 +570,12 @@ static ProcArg layer_resize_inargs[] =
{
GIMP_PDB_INT32,
"new-width",
"New layer width: (0 < new_width)"
"New layer width: (1 <= new_width)"
},
{
GIMP_PDB_INT32,
"new-height",
"New layer height: (0 < new_height)"
"New layer height: (1 <= new_height)"
},
{
GIMP_PDB_INT32,
......
......@@ -484,7 +484,7 @@ plugin_icon_register_invoker (Gimp *gimp,
success = FALSE;
icon_data_length = args[2].value.pdb_int;
if (icon_data_length <= 0)
if (icon_data_length < 1)
success = FALSE;
icon_data = (guint8 *) args[3].value.pdb_pointer;
......@@ -531,7 +531,7 @@ static ProcArg plugin_icon_register_inargs[] =
{
GIMP_PDB_INT32,
"icon-data-length",
"The length of 'icon_data': 0 < icon_data_length"
"The length of 'icon_data': 1 <= icon_data_length"
},
{
GIMP_PDB_INT8ARRAY,
......
......@@ -820,7 +820,7 @@ procedural_db_set_data_invoker (Gimp *gimp,
success = FALSE;
bytes = args[1].value.pdb_int;
if (bytes <= 0)
if (bytes < 1)
success = FALSE;
data = (guint8 *) args[2].value.pdb_pointer;
......
......@@ -34,9 +34,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image to which to add the channel' },
{ name => 'width', type => '0 < int32',
{ name => 'width', type => '1 <= int32',
desc => 'The channel width: (%%desc%%)' },
{ name => 'height', type => '0 < int32',
{ name => 'height', type => '1 <= int32',
desc => 'The channel height: (%%desc%%)' },
{ name => 'name', type => 'string',
desc => 'The channel name' },
......
......@@ -416,7 +416,7 @@ HELP
{ name => 'control_pts', type => 'int8array',
desc => 'The spline control points: { cp1.x, cp1.y, cp2.x, cp2.y,
... }',
array => { name => 'num_points', type => '3 < int32 <= 34',
array => { name => 'num_points', type => '4 <= int32 <= 34',
desc => 'The number of values in the control point array
(%%desc%%)' } }
);
......
......@@ -978,9 +978,9 @@ HELP
@inargs = (
{ name => 'drawable', type => 'drawable',
desc => 'The drawable' },
{ name => 'width', type => '0 < int32 <= 512',
{ name => 'width', type => '1 <= int32 <= 512',
desc => 'The requested thumbnail width' },
{ name => 'height', type => '0 < int32 <= 512',
{ name => 'height', type => '1 <= int32 <= 512',
desc => 'The requested thumbnail height' }
);
......@@ -1059,13 +1059,13 @@ HELP
desc => 'The x coordinate of the area' },
{ name => 'src_y', type => '0 <= int32',
desc => 'The y coordinate of the area' },
{ name => 'src_width', type => '0 < int32',
{ name => 'src_width', type => '1 <= int32',
desc => 'The width of the area' },
{ name => 'src_height', type => '0 < int32',
{ name => 'src_height', type => '1 <= int32',
desc => 'The height of the area' },
{ name => 'dest_width', type => '0 < int32 <= 512',
{ name => 'dest_width', type => '1 <= int32 <= 512',
desc => 'The thumbnail width' },
{ name => 'dest_height', type => '0 < int32 <= 512',
{ name => 'dest_height', type => '1 <= int32 <= 512',
desc => 'The thumbnail height' }
);
......
......@@ -209,7 +209,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -329,7 +329,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -506,7 +506,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -610,7 +610,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -714,7 +714,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -819,7 +819,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......@@ -936,7 +936,7 @@ HELP
desc => 'Type of interpolation: %%desc%%' },
{ name => 'supersample', type => 'boolean',
desc => 'Whether to perform supersample' },
{ name => 'recursion_level', type => '0 < int32',
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Level of recursion (3 is a nice default)' },
{ name => 'clip_result', type => 'boolean',
desc => 'Whether to clip results' }
......
......@@ -68,9 +68,9 @@ HELP
&std_pdb_misc;
@inargs = (
{ name => 'width', type => '0 < int32',
{ name => 'width', type => '1 <= int32',
desc => 'The width of the image' },
{ name => 'height', type => '0 < int32',
{ name => 'height', type => '1 <= int32',
desc => 'The height of the image' },
{ name => 'type', type => 'enum GimpImageBaseType',
desc => 'The type of image: %%desc%%' }
......@@ -175,9 +175,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image' },
{ name => 'new_width', type => '0 < int32',
{ name => 'new_width', type => '1 <= int32',
desc => 'New image width: %%desc%%' },
{ name => 'new_height', type => '0 < int32',
{ name => 'new_height', type => '1 <= int32',
desc => 'New image height: %%desc%%' },
{ name => 'offx', type => 'int32',
desc => 'x offset between upper left corner of old and
......@@ -243,9 +243,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image' },
{ name => 'new_width', type => '0 < int32',
{ name => 'new_width', type => '1 <= int32',
desc => 'New image width: %%desc%%' },
{ name => 'new_height', type => '0 < int32',
{ name => 'new_height', type => '1 <= int32',
desc => 'New image height: %%desc%%' }
);
......@@ -277,9 +277,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image' },
{ name => 'new_width', type => '0 < int32',
{ name => 'new_width', type => '1 <= int32',
desc => 'New image width: (0 < new_width <= width)' },
{ name => 'new_height', type => '0 < int32',
{ name => 'new_height', type => '1 <= int32',
desc => 'New image height: (0 < new_height <= height)' },
{ name => 'offx', type => '0 <= int32',
desc => 'x offset: (0 <= offx <= (width - new_width))' },
......@@ -2339,9 +2339,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image' },
{ name => 'width', type => '0 < int32 <= 1024',
{ name => 'width', type => '1 <= int32 <= 1024',
desc => 'The requested thumbnail width' },
{ name => 'height', type => '0 < int32 <= 1024',
{ name => 'height', type => '1 <= int32 <= 1024',
desc => 'The requested thumbnail height' }
);
......
......@@ -33,9 +33,9 @@ HELP
@inargs = (
{ name => 'image', type => 'image',
desc => 'The image to which to add the layer' },
{ name => 'width', type => '0 < int32',
{ name => 'width', type => '1 <= int32',
desc => 'The layer width: (%%desc%%)' },
{ name => 'height', type => '0 < int32',
{ name => 'height', type => '1 <= int32',
desc => 'The layer height: (%%desc%%)' },
{ name => 'type', type => 'enum GimpImageType',
desc => 'The layer type: %%desc%%' },
......@@ -221,9 +221,9 @@ HELP
@inargs = (
{ name => 'layer', type => 'layer',
desc => 'The layer' },
{ name => 'new_width', type => '0 < int32',
{ name => 'new_width', type => '1 <= int32',
desc => 'New layer width: (%%desc%%)' },
{ name => 'new_height', type => '0 < int32',
{ name => 'new_height', type => '1 <= int32',
desc => 'New layer height: (%%desc%%)' },
{ name => 'local_origin', type => 'boolean',
desc => 'Use a local origin (as opposed to the image origin)' }
......@@ -258,9 +258,9 @@ HELP
@inargs = (
{ name => 'layer', type => 'layer',
desc => 'The layer' },
{ name => 'new_width', type => '0 < int32',
{ name => 'new_width', type => '1 <= int32',
desc => 'New layer width: (%%desc%%)' },
{ name => 'new_height', type => '0 < int32',
{ name => 'new_height', type => '1 <= int32',
desc => 'New layer height: (%%desc%%)' },
{ name => 'offx', type => 'int32',
desc => 'x offset between upper left corner of old and
......
......@@ -239,7 +239,7 @@ HELP
{ name => 'icon_data', type => 'int8array',
desc => "The procedure's icon. The format depends on the
'icon_type' parameter",
array => { name => 'icon_data_length', type => '0 < int32',
array => { name => 'icon_data_length', type => '1 <= int32',
desc => "The length of 'icon_data': %%desc%%" } }
);
......
......@@ -293,7 +293,7 @@ HELP
{ name => 'data', type => 'int8array',
desc => 'A byte array containing data', wrap => 1,
void_ret => 1,
array => { name => 'bytes', type => '0 < int32',
array => { name => 'bytes', type => '1 <= int32',
desc => 'The number of bytes in the data' } }
);
......@@ -335,7 +335,7 @@ HELP
);
@outargs = (
{ name => 'bytes', type => '0 < int32',
{ name => 'bytes', type => '1 <= int32',
desc => 'The number of bytes in the data' }
);
......@@ -375,7 +375,7 @@ HELP
desc => 'The identifier associated with data' },
{ name => 'data', type => 'int8array',
desc => 'A byte array containing data', wrap => 1,
array => { name => 'bytes', type => '0 < int32',
array => { name => 'bytes', type => '1 <= int32',
desc => 'The number of bytes in the data' } }
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment