mirror of https://github.com/GNOME/gimp.git
some more tabs that I missed in my last commit
This commit is contained in:
parent
8824a9bc86
commit
a984ec7b8a
|
@ -333,12 +333,14 @@ 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,
|
||||
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,
|
||||
memcpy (*color_bytes,
|
||||
return_vals[8].data.d_int8array,
|
||||
*num_color_bytes * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -232,7 +232,8 @@ 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,
|
||||
memcpy (*mask_data,
|
||||
return_vals[8].data.d_int8array,
|
||||
*length * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -1012,7 +1012,8 @@ 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,
|
||||
memcpy (pixel,
|
||||
return_vals[2].data.d_int8array,
|
||||
*num_channels * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
@ -1210,7 +1211,8 @@ _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,
|
||||
memcpy (*thumbnail_data,
|
||||
return_vals[5].data.d_int8array,
|
||||
*thumbnail_data_count * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
@ -1289,7 +1291,8 @@ _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,
|
||||
memcpy (*thumbnail_data,
|
||||
return_vals[5].data.d_int8array,
|
||||
*thumbnail_data_count * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -238,7 +238,8 @@ 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,
|
||||
memcpy (*color_samples,
|
||||
return_vals[2].data.d_floatarray,
|
||||
*num_color_samples * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
@ -298,7 +299,8 @@ 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,
|
||||
memcpy (*color_samples,
|
||||
return_vals[2].data.d_floatarray,
|
||||
*num_color_samples * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,8 @@ 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,
|
||||
memcpy (color_samples,
|
||||
return_vals[2].data.d_floatarray,
|
||||
num_color_samples * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
@ -167,7 +168,8 @@ 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,
|
||||
memcpy (color_samples,
|
||||
return_vals[2].data.d_floatarray,
|
||||
num_color_samples * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
@ -214,7 +216,8 @@ 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,
|
||||
memcpy (*grad_data,
|
||||
return_vals[3].data.d_floatarray,
|
||||
*width * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,8 @@ 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,
|
||||
memcpy (image_ids,
|
||||
return_vals[2].data.d_int32array,
|
||||
*num_images * sizeof (gint32));
|
||||
}
|
||||
|
||||
|
@ -559,7 +560,8 @@ 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,
|
||||
memcpy (layer_ids,
|
||||
return_vals[2].data.d_int32array,
|
||||
*num_layers * sizeof (gint32));
|
||||
}
|
||||
|
||||
|
@ -600,7 +602,8 @@ 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,
|
||||
memcpy (channel_ids,
|
||||
return_vals[2].data.d_int32array,
|
||||
*num_channels * sizeof (gint32));
|
||||
}
|
||||
|
||||
|
@ -642,7 +645,8 @@ 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,
|
||||
memcpy (vector_ids,
|
||||
return_vals[2].data.d_int32array,
|
||||
*num_vectors * sizeof (gint32));
|
||||
}
|
||||
|
||||
|
@ -1598,7 +1602,8 @@ _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,
|
||||
memcpy (colormap,
|
||||
return_vals[2].data.d_int8array,
|
||||
*num_bytes * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
@ -1769,7 +1774,8 @@ _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,
|
||||
memcpy (*thumbnail_data,
|
||||
return_vals[5].data.d_int8array,
|
||||
*thumbnail_data_count * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,8 @@ 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,
|
||||
memcpy (*points_pairs,
|
||||
return_vals[4].data.d_floatarray,
|
||||
*num_path_point_details * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,8 @@ 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,
|
||||
memcpy (*color_bytes,
|
||||
return_vals[5].data.d_int8array,
|
||||
*num_color_bytes * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -171,7 +171,8 @@ 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,
|
||||
memcpy (*mask_data,
|
||||
return_vals[6].data.d_int8array,
|
||||
*length * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -378,7 +378,8 @@ _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,
|
||||
memcpy (*data,
|
||||
return_vals[2].data.d_int8array,
|
||||
*bytes * sizeof (guint8));
|
||||
}
|
||||
|
||||
|
|
|
@ -392,7 +392,8 @@ 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,
|
||||
memcpy (stroke_ids,
|
||||
return_vals[2].data.d_int32array,
|
||||
*num_strokes * sizeof (gint32));
|
||||
}
|
||||
|
||||
|
@ -685,7 +686,8 @@ 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,
|
||||
memcpy (*coords,
|
||||
return_vals[3].data.d_floatarray,
|
||||
*num_coords * sizeof (gdouble));
|
||||
}
|
||||
|
||||
|
|
|
@ -326,7 +326,8 @@ 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,
|
||||
memcpy ($var,
|
||||
return_vals[$argc].data.d_$type,
|
||||
$numvar * sizeof ($datatype));
|
||||
CP2
|
||||
$out->{headers} = "#include <string.h>\n" unless ($ch || $cf);
|
||||
|
|
Loading…
Reference in New Issue