5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
|
# File 'ext/xproto.c', line 5945
static VALUE
r_XCB_Connection_free_colors(VALUE r_self, VALUE r_cmap, VALUE r_plane_mask, VALUE r_pixels)
{
xcb_connection_t *connection;
Data_Get_Struct(r_self, xcb_connection_t, connection);
uint32_t __cmap = FIX2INT(r_cmap);
uint32_t __plane_mask = FIX2INT(r_plane_mask);
Check_Type(r_pixels, T_ARRAY);
int __pixels_len = RARRAY_LEN(r_pixels);
uint32_t __pixels[__pixels_len];
int i;
for (i = 0; i < __pixels_len; i += 1)
__pixels[i] = FIX2INT(rb_ary_entry(r_pixels, i));
xcb_free_colors(connection, __cmap, __plane_mask, __pixels_len, __pixels);
return Qnil;
}
|