scanner: parse and expose function macros

This is useful for documentation tools, and other utilities that
rely on full introspection of the C API of a given library.
This commit is contained in:
Mathieu Duponchelle 2015-07-15 13:11:45 +02:00 committed by Mathieu Duponchelle
parent a458c66cbf
commit 995d87db17

View File

@ -2845,7 +2845,12 @@ start_element_handler (GMarkupParseContext *context,
break; break;
case 'f': case 'f':
if (start_function (context, element_name, if (strcmp ("function-macro", element_name) == 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;