API now supporting labels

This commit is contained in:
Pierre Pronchery 2008-06-09 00:21:16 +00:00
parent 27009e6835
commit 5efa3e0670
3 changed files with 7 additions and 4 deletions

View File

@ -71,7 +71,8 @@ TargetPlugin target_plugin =
_as_section, _as_section,
_as_function_begin, _as_function_begin,
_as_function_call, _as_function_call,
_as_function_end _as_function_end,
NULL /* FIXME implement label_set */
}; };

View File

@ -44,13 +44,14 @@ static int _graph_function_end(void);
/* variables */ /* variables */
TargetPlugin target_plugin = TargetPlugin target_plugin =
{ {
NULL, NULL, /* options */
_graph_init, _graph_init,
_graph_exit, _graph_exit,
NULL, NULL, /* section */
_graph_function_begin, _graph_function_begin,
_graph_function_call, _graph_function_call,
_graph_function_end _graph_function_end,
NULL /* label_set */
}; };

View File

@ -34,6 +34,7 @@ typedef struct _TargetPlugin
int (*function_begin)(char const * name); int (*function_begin)(char const * name);
int (*function_call)(char const * name); int (*function_call)(char const * name);
int (*function_end)(void); int (*function_end)(void);
int (*label_set)(char const * name);
} TargetPlugin; } TargetPlugin;
#endif /* !_C99_TARGET_TARGET_H */ #endif /* !_C99_TARGET_TARGET_H */