some more tabs that I missed in my last commit

This commit is contained in:
Sven Neumann 2006-04-12 10:34:30 +00:00
parent 8824a9bc86
commit a984ec7b8a
12 changed files with 72 additions and 48 deletions

View File

@ -333,13 +333,15 @@ gimp_brush_get_pixels (const gchar *name,
*mask_bpp = return_vals[3].data.d_int32;
*num_mask_bytes = return_vals[4].data.d_int32;
*mask_bytes = g_new (guint8, *num_mask_bytes);
memcpy (*mask_bytes, return_vals[5].data.d_int8array,
*num_mask_bytes * sizeof (guint8));
memcpy (*mask_bytes,
return_vals[5].data.d_int8array,
*num_mask_bytes * sizeof (guint8));
*color_bpp = return_vals[6].data.d_int32;
*num_color_bytes = return_vals[7].data.d_int32;
*color_bytes = g_new (guint8, *num_color_bytes);
memcpy (*color_bytes, return_vals[8].data.d_int8array,
*num_color_bytes * sizeof (guint8));
memcpy (*color_bytes,
return_vals[8].data.d_int8array,
*num_color_bytes * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -232,8 +232,9 @@ gimp_brushes_get_brush_data (const gchar *name,
*height = return_vals[6].data.d_int32;
*length = return_vals[7].data.d_int32;
*mask_data = g_new (guint8, *length);
memcpy (*mask_data, return_vals[8].data.d_int8array,
*length * sizeof (guint8));
memcpy (*mask_data,
return_vals[8].data.d_int8array,
*length * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -1012,8 +1012,9 @@ gimp_drawable_get_pixel (gint32 drawable_ID,
{
*num_channels = return_vals[1].data.d_int32;
pixel = g_new (guint8, *num_channels);
memcpy (pixel, return_vals[2].data.d_int8array,
*num_channels * sizeof (guint8));
memcpy (pixel,
return_vals[2].data.d_int8array,
*num_channels * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -1210,8 +1211,9 @@ _gimp_drawable_thumbnail (gint32 drawable_ID,
*bpp = return_vals[3].data.d_int32;
*thumbnail_data_count = return_vals[4].data.d_int32;
*thumbnail_data = g_new (guint8, *thumbnail_data_count);
memcpy (*thumbnail_data, return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
memcpy (*thumbnail_data,
return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -1289,8 +1291,9 @@ _gimp_drawable_sub_thumbnail (gint32 drawable_ID,
*bpp = return_vals[3].data.d_int32;
*thumbnail_data_count = return_vals[4].data.d_int32;
*thumbnail_data = g_new (guint8, *thumbnail_data_count);
memcpy (*thumbnail_data, return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
memcpy (*thumbnail_data,
return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -238,8 +238,9 @@ gimp_gradient_get_uniform_samples (const gchar *name,
{
*num_color_samples = return_vals[1].data.d_int32;
*color_samples = g_new (gdouble, *num_color_samples);
memcpy (*color_samples, return_vals[2].data.d_floatarray,
*num_color_samples * sizeof (gdouble));
memcpy (*color_samples,
return_vals[2].data.d_floatarray,
*num_color_samples * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -298,8 +299,9 @@ gimp_gradient_get_custom_samples (const gchar *name,
{
*num_color_samples = return_vals[1].data.d_int32;
*color_samples = g_new (gdouble, *num_color_samples);
memcpy (*color_samples, return_vals[2].data.d_floatarray,
*num_color_samples * sizeof (gdouble));
memcpy (*color_samples,
return_vals[2].data.d_floatarray,
*num_color_samples * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -126,8 +126,9 @@ gimp_gradients_sample_uniform (gint num_samples,
{
num_color_samples = return_vals[1].data.d_int32;
color_samples = g_new (gdouble, num_color_samples);
memcpy (color_samples, return_vals[2].data.d_floatarray,
num_color_samples * sizeof (gdouble));
memcpy (color_samples,
return_vals[2].data.d_floatarray,
num_color_samples * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -167,8 +168,9 @@ gimp_gradients_sample_custom (gint num_samples,
{
num_color_samples = return_vals[1].data.d_int32;
color_samples = g_new (gdouble, num_color_samples);
memcpy (color_samples, return_vals[2].data.d_floatarray,
num_color_samples * sizeof (gdouble));
memcpy (color_samples,
return_vals[2].data.d_floatarray,
num_color_samples * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -214,8 +216,9 @@ gimp_gradients_get_gradient_data (const gchar *name,
actual_name = g_strdup (return_vals[1].data.d_string);
*width = return_vals[2].data.d_int32;
*grad_data = g_new (gdouble, *width);
memcpy (*grad_data, return_vals[3].data.d_floatarray,
*width * sizeof (gdouble));
memcpy (*grad_data,
return_vals[3].data.d_floatarray,
*width * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -55,8 +55,9 @@ gimp_image_list (gint *num_images)
{
*num_images = return_vals[1].data.d_int32;
image_ids = g_new (gint32, *num_images);
memcpy (image_ids, return_vals[2].data.d_int32array,
*num_images * sizeof (gint32));
memcpy (image_ids,
return_vals[2].data.d_int32array,
*num_images * sizeof (gint32));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -559,8 +560,9 @@ gimp_image_get_layers (gint32 image_ID,
{
*num_layers = return_vals[1].data.d_int32;
layer_ids = g_new (gint32, *num_layers);
memcpy (layer_ids, return_vals[2].data.d_int32array,
*num_layers * sizeof (gint32));
memcpy (layer_ids,
return_vals[2].data.d_int32array,
*num_layers * sizeof (gint32));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -600,8 +602,9 @@ gimp_image_get_channels (gint32 image_ID,
{
*num_channels = return_vals[1].data.d_int32;
channel_ids = g_new (gint32, *num_channels);
memcpy (channel_ids, return_vals[2].data.d_int32array,
*num_channels * sizeof (gint32));
memcpy (channel_ids,
return_vals[2].data.d_int32array,
*num_channels * sizeof (gint32));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -642,8 +645,9 @@ gimp_image_get_vectors (gint32 image_ID,
{
*num_vectors = return_vals[1].data.d_int32;
vector_ids = g_new (gint32, *num_vectors);
memcpy (vector_ids, return_vals[2].data.d_int32array,
*num_vectors * sizeof (gint32));
memcpy (vector_ids,
return_vals[2].data.d_int32array,
*num_vectors * sizeof (gint32));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -1598,8 +1602,9 @@ _gimp_image_get_colormap (gint32 image_ID,
{
*num_bytes = return_vals[1].data.d_int32;
colormap = g_new (guint8, *num_bytes);
memcpy (colormap, return_vals[2].data.d_int8array,
*num_bytes * sizeof (guint8));
memcpy (colormap,
return_vals[2].data.d_int8array,
*num_bytes * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -1769,8 +1774,9 @@ _gimp_image_thumbnail (gint32 image_ID,
*bpp = return_vals[3].data.d_int32;
*thumbnail_data_count = return_vals[4].data.d_int32;
*thumbnail_data = g_new (guint8, *thumbnail_data_count);
memcpy (*thumbnail_data, return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
memcpy (*thumbnail_data,
return_vals[5].data.d_int8array,
*thumbnail_data_count * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -195,8 +195,9 @@ gimp_path_get_points (gint32 image_ID,
*path_closed = return_vals[2].data.d_int32;
*num_path_point_details = return_vals[3].data.d_int32;
*points_pairs = g_new (gdouble, *num_path_point_details);
memcpy (*points_pairs, return_vals[4].data.d_floatarray,
*num_path_point_details * sizeof (gdouble));
memcpy (*points_pairs,
return_vals[4].data.d_floatarray,
*num_path_point_details * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -127,8 +127,9 @@ gimp_pattern_get_pixels (const gchar *name,
*bpp = return_vals[3].data.d_int32;
*num_color_bytes = return_vals[4].data.d_int32;
*color_bytes = g_new (guint8, *num_color_bytes);
memcpy (*color_bytes, return_vals[5].data.d_int8array,
*num_color_bytes * sizeof (guint8));
memcpy (*color_bytes,
return_vals[5].data.d_int8array,
*num_color_bytes * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -171,8 +171,9 @@ gimp_patterns_get_pattern_data (const gchar *name,
*mask_bpp = return_vals[4].data.d_int32;
*length = return_vals[5].data.d_int32;
*mask_data = g_new (guint8, *length);
memcpy (*mask_data, return_vals[6].data.d_int8array,
*length * sizeof (guint8));
memcpy (*mask_data,
return_vals[6].data.d_int8array,
*length * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -378,8 +378,9 @@ _gimp_procedural_db_get_data (const gchar *identifier,
{
*bytes = return_vals[1].data.d_int32;
*data = g_new (guint8, *bytes);
memcpy (*data, return_vals[2].data.d_int8array,
*bytes * sizeof (guint8));
memcpy (*data,
return_vals[2].data.d_int8array,
*bytes * sizeof (guint8));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -392,8 +392,9 @@ gimp_vectors_get_strokes (gint32 vectors_ID,
{
*num_strokes = return_vals[1].data.d_int32;
stroke_ids = g_new (gint32, *num_strokes);
memcpy (stroke_ids, return_vals[2].data.d_int32array,
*num_strokes * sizeof (gint32));
memcpy (stroke_ids,
return_vals[2].data.d_int32array,
*num_strokes * sizeof (gint32));
}
gimp_destroy_params (return_vals, nreturn_vals);
@ -685,8 +686,9 @@ gimp_vectors_stroke_interpolate (gint32 vectors_ID,
closed = return_vals[1].data.d_int32;
*num_coords = return_vals[2].data.d_int32;
*coords = g_new (gdouble, *num_coords);
memcpy (*coords, return_vals[3].data.d_floatarray,
*num_coords * sizeof (gdouble));
memcpy (*coords,
return_vals[3].data.d_floatarray,
*num_coords * sizeof (gdouble));
}
gimp_destroy_params (return_vals, nreturn_vals);

View File

@ -326,8 +326,9 @@ NEW
for (i = 0; i < $numvar; i++)
$dh$_->{name}$df\[i] = ${ch}return_vals[$argc].data.d_$type\[i]${cf};
CP1
memcpy ($var, return_vals[$argc].data.d_$type,
$numvar * sizeof ($datatype));
memcpy ($var,
return_vals[$argc].data.d_$type,
$numvar * sizeof ($datatype));
CP2
$out->{headers} = "#include <string.h>\n" unless ($ch || $cf);
}