mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
handle "transfer-ownership" attribute
2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi> * girepository/girparser.c (start_return_value): handle "transfer-ownership" attribute svn path=/trunk/; revision=690
This commit is contained in:
parent
25e43d53d1
commit
a940cef8c7
@ -1664,6 +1664,7 @@ start_return_value (GMarkupParseContext *context,
|
||||
ctx->state == STATE_FUNCTION)
|
||||
{
|
||||
GIrNodeParam *param;
|
||||
const gchar *transfer;
|
||||
|
||||
param = (GIrNodeParam *)g_ir_node_new (G_IR_NODE_PARAM);
|
||||
param->in = FALSE;
|
||||
@ -1674,6 +1675,9 @@ start_return_value (GMarkupParseContext *context,
|
||||
|
||||
state_switch (ctx, STATE_FUNCTION_RETURN);
|
||||
|
||||
transfer = find_attribute ("transfer-ownership", attribute_names, attribute_values);
|
||||
parse_param_transfer (param, transfer);
|
||||
|
||||
switch (ctx->current_node->type)
|
||||
{
|
||||
case G_IR_NODE_FUNCTION:
|
||||
|
Loading…
Reference in New Issue
Block a user