mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-10 12:38:54 +02:00
gir: Ignore function-inline and method-inline elements
Static inlines are available in the GIR, but they do not translate to ABI, so they cannot go in the typelib. We handle them just like function macros.
This commit is contained in:
@ -3160,7 +3160,8 @@ start_element_handler (GMarkupParseContext *context,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
if (strcmp ("function-macro", element_name) == 0)
|
if (strcmp ("function-macro", element_name) == 0 ||
|
||||||
|
strcmp ("function-inline", element_name) == 0)
|
||||||
{
|
{
|
||||||
state_switch (ctx, STATE_PASSTHROUGH);
|
state_switch (ctx, STATE_PASSTHROUGH);
|
||||||
goto out;
|
goto out;
|
||||||
@ -3244,7 +3245,12 @@ start_element_handler (GMarkupParseContext *context,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'm':
|
case 'm':
|
||||||
if (start_function (context, element_name,
|
if (strcmp (element_name, "method-inline") == 0)
|
||||||
|
{
|
||||||
|
state_switch (ctx, STATE_PASSTHROUGH);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
else if (start_function (context, element_name,
|
||||||
attribute_names, attribute_values,
|
attribute_names, attribute_values,
|
||||||
ctx, error))
|
ctx, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user