mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01:00
[typelib] Remove space/indent mismatch
This commit is contained in:
parent
d9e0c19ce2
commit
3b91df6678
10
ginfo.c
10
ginfo.c
@ -619,8 +619,8 @@ signature_offset (GICallableInfo *info)
|
|||||||
|
|
||||||
GITypeInfo *
|
GITypeInfo *
|
||||||
g_type_info_new (GIBaseInfo *container,
|
g_type_info_new (GIBaseInfo *container,
|
||||||
GTypelib *typelib,
|
GTypelib *typelib,
|
||||||
guint32 offset)
|
guint32 offset)
|
||||||
{
|
{
|
||||||
SimpleTypeBlob *type = (SimpleTypeBlob *)&typelib->data[offset];
|
SimpleTypeBlob *type = (SimpleTypeBlob *)&typelib->data[offset];
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ g_callable_info_get_n_args (GICallableInfo *info)
|
|||||||
*/
|
*/
|
||||||
GIArgInfo *
|
GIArgInfo *
|
||||||
g_callable_info_get_arg (GICallableInfo *info,
|
g_callable_info_get_arg (GICallableInfo *info,
|
||||||
gint n)
|
gint n)
|
||||||
{
|
{
|
||||||
GIRealInfo *rinfo = (GIRealInfo *)info;
|
GIRealInfo *rinfo = (GIRealInfo *)info;
|
||||||
Header *header = (Header *)rinfo->typelib->data;
|
Header *header = (Header *)rinfo->typelib->data;
|
||||||
@ -767,7 +767,7 @@ g_callable_info_get_arg (GICallableInfo *info,
|
|||||||
offset = signature_offset (info);
|
offset = signature_offset (info);
|
||||||
|
|
||||||
return (GIArgInfo *) g_info_new (GI_INFO_TYPE_ARG, (GIBaseInfo*)info, rinfo->typelib,
|
return (GIArgInfo *) g_info_new (GI_INFO_TYPE_ARG, (GIBaseInfo*)info, rinfo->typelib,
|
||||||
offset + header->signature_blob_size + n * header->arg_blob_size);
|
offset + header->signature_blob_size + n * header->arg_blob_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1351,7 +1351,7 @@ find_method (GIBaseInfo *base,
|
|||||||
|
|
||||||
if (strcmp (name, fname) == 0)
|
if (strcmp (name, fname) == 0)
|
||||||
return (GIFunctionInfo *) g_info_new (GI_INFO_TYPE_FUNCTION, base,
|
return (GIFunctionInfo *) g_info_new (GI_INFO_TYPE_FUNCTION, base,
|
||||||
rinfo->typelib, offset);
|
rinfo->typelib, offset);
|
||||||
|
|
||||||
offset += header->function_blob_size;
|
offset += header->function_blob_size;
|
||||||
}
|
}
|
||||||
|
14
girnode.c
14
girnode.c
@ -1644,9 +1644,9 @@ g_ir_node_build_typelib (GIrNode *node,
|
|||||||
blob->name = write_string (node->name, strings, data, offset2);
|
blob->name = write_string (node->name, strings, data, offset2);
|
||||||
blob->deprecated = prop->deprecated;
|
blob->deprecated = prop->deprecated;
|
||||||
blob->readable = prop->readable;
|
blob->readable = prop->readable;
|
||||||
blob->writable = prop->writable;
|
blob->writable = prop->writable;
|
||||||
blob->construct = prop->construct;
|
blob->construct = prop->construct;
|
||||||
blob->construct_only = prop->construct_only;
|
blob->construct_only = prop->construct_only;
|
||||||
blob->reserved = 0;
|
blob->reserved = 0;
|
||||||
|
|
||||||
g_ir_node_build_typelib ((GIrNode *)prop->type,
|
g_ir_node_build_typelib ((GIrNode *)prop->type,
|
||||||
@ -1860,10 +1860,10 @@ g_ir_node_build_typelib (GIrNode *node,
|
|||||||
*/
|
*/
|
||||||
*offset += sizeof (ArgBlob) - sizeof (SimpleTypeBlob);
|
*offset += sizeof (ArgBlob) - sizeof (SimpleTypeBlob);
|
||||||
|
|
||||||
blob->name = write_string (node->name, strings, data, offset2);
|
blob->name = write_string (node->name, strings, data, offset2);
|
||||||
blob->in = param->in;
|
blob->in = param->in;
|
||||||
blob->out = param->out;
|
blob->out = param->out;
|
||||||
blob->dipper = param->dipper;
|
blob->dipper = param->dipper;
|
||||||
blob->allow_none = param->allow_none;
|
blob->allow_none = param->allow_none;
|
||||||
blob->optional = param->optional;
|
blob->optional = param->optional;
|
||||||
blob->transfer_ownership = param->transfer;
|
blob->transfer_ownership = param->transfer;
|
||||||
|
10
gtypelib.h
10
gtypelib.h
@ -556,12 +556,12 @@ typedef struct {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
guint8 pointer :1;
|
guint8 pointer :1;
|
||||||
guint8 reserved :2;
|
guint8 reserved :2;
|
||||||
guint8 tag :5;
|
guint8 tag :5;
|
||||||
|
|
||||||
guint8 reserved2;
|
guint8 reserved2;
|
||||||
guint16 n_types;
|
guint16 n_types;
|
||||||
|
|
||||||
SimpleTypeBlob type[];
|
SimpleTypeBlob type[];
|
||||||
} ParamTypeBlob;
|
} ParamTypeBlob;
|
||||||
|
Loading…
Reference in New Issue
Block a user