Commit ffd655fe authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

let pdbgen create the code to initialize the variables.

2005-04-16  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: let pdbgen create the code to
	initialize the variables.

	* app/pdb/vectors_cmds.c: regenerated.
parent ce802aa1
2005-04-16 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/vectors.pdb: let pdbgen create the code to
initialize the variables.
* app/pdb/vectors_cmds.c: regenerated.
2005-04-15 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c
......
......@@ -28,7 +28,6 @@
#include "procedural_db.h"
#include "core/gimp.h"
#include "core/gimpchannel-select.h"
#include "core/gimplist.h"
#include "gimp-intl.h"
#include "vectors/gimpanchor.h"
......@@ -53,7 +52,7 @@ vectors_get_strokes_invoker (Gimp *gimp,
gboolean success = TRUE;
Argument *return_args;
GimpVectors *vectors;
gint32 num_strokes;
gint32 num_strokes = 0;
gint32 *stroke_list = NULL;
vectors = (GimpVectors *) gimp_item_get_by_ID (gimp, args[0].value.pdb_int);
......@@ -62,8 +61,7 @@ vectors_get_strokes_invoker (Gimp *gimp,
if (success)
{
stroke_list = NULL;
num_strokes = 0;
/* nothing yet */
}
return_args = procedural_db_return_args (&vectors_get_strokes_proc, success);
......
......@@ -45,21 +45,19 @@ HELP
{ name => 'stroke_list', type => 'int32array',
desc => 'List of the paths belonging to this image.',
array => { name => 'num_strokes',
desc => 'The number of strokes returned.' },
init => 0 }
desc => 'The number of strokes returned.', init => 1 },
init => 1 }
);
$invoke{code} = <<"CODE";
{
stroke_list = NULL;
num_strokes = 0;
/* nothing yet */
}
CODE
}
@headers = qw(<string.h> "core/gimp.h" "core/gimplist.h"
"core/gimpchannel-select.h"
"vectors/gimpanchor.h" "vectors/gimpbezierstroke.h"
"vectors/gimpvectors.h" "vectors/gimpvectors-compat.h"
"gimp-intl.h");
......
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