[LIB]: Make all callers of function__print use tag__print instead

And since there are no external users now, just unexport it, ditto
for tag__print_decl_info.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-12 16:25:20 -02:00
parent 907831071f
commit 16c0586602
4 changed files with 9 additions and 15 deletions

View File

@ -168,8 +168,7 @@ static void emit_function_defs(const char *fn)
if (f != NULL) {
cus__emit_ftype_definitions(kprobes_cus, cu,
&tag__function(f)->proto);
tag__print_decl_info(f);
function__print(f, cu);
tag__print(f, cu, NULL, NULL);
puts(";\n");
}
}

View File

@ -1643,7 +1643,7 @@ print_it:
return len - (l - n);
}
void function__print(const struct tag *tag_self, const struct cu *cu)
static void function__print(const struct tag *tag_self, const struct cu *cu)
{
struct function *self = tag__function(tag_self);
char bf[2048];

View File

@ -235,10 +235,8 @@ struct enumerator {
extern void class__find_holes(struct class *self, const struct cu *cu);
extern void tag__print(const struct tag *self, const struct cu *cu,
const char *prefix, const char *suffix);
extern void tag__print_decl_info(const struct tag *self);
extern const char *function__name(struct function *self, const struct cu *cu);
extern void function__print(const struct tag *tag_self, const struct cu *cu);
extern void function__print_stats(const struct tag *tag_self,
const struct cu *cu);

View File

@ -119,8 +119,7 @@ static void fn_stats_size_fmtr(const struct fn_stats *self)
static void fn_stats_fmtr(const struct fn_stats *self)
{
if (verbose) {
tag__print_decl_info(self->tag);
function__print(self->tag, self->cu);
tag__print(self->tag, self->cu, NULL, NULL);
putchar('\n');
if (show_variables || show_inline_expansions)
function__print_stats(self->tag, self->cu);
@ -274,12 +273,11 @@ static int class_iterator(struct tag *tag, struct cu *cu, void *cookie)
return 0;
if (ftype__has_parm_of_type(&function->proto, cookie, cu)) {
if (verbose) {
tag__print_decl_info(tag);
function__print(tag, cu);
putchar('\n');
} else
printf("%s\n", function__name(function, cu));
if (verbose)
tag__print(tag, cu, NULL, NULL);
else
fputs(function__name(function, cu), stdout);
putchar('\n');
}
return 0;
}
@ -303,8 +301,7 @@ static int function_iterator(struct tag *tag, struct cu *cu, void *cookie)
function = tag__function(tag);
if (strcmp(function__name(function, cu), cookie) == 0) {
tag__print_decl_info(tag);
function__print(tag, cu);
tag__print(tag, cu, NULL, NULL);
putchar('\n');
if (show_variables || show_inline_expansions)
function__print_stats(tag, cu);