gnu - cflowを使用して1つのファイルのコールグラフを生成できましたが、cflowを使用して複数のファイルのコールグラフを生成する方法を知ることができませんでした。GNU Cflowへの入力として複数のcファイルを与える方法は?
私はそれのhello.c
CFLOW試験のためにそれを作成test.cのためではなくコールグラフを生成
CFLOWのTEST.C、のhello.c
以下試みました。 c hello.c
hello.c用のコールグラフを生成し、test.c用にコールグラフを生成しない
複数のファイルをcflowに渡す方法がわかりません。
これについてのご意見はありますか?
のhello.c
int
who_am_i (void)
{
struct passwd *pw;
char *user = NULL;
pw = getpwuid (geteuid());
if (pw)
user = pw->pw_name;
else if ((user = getenv ("USER")) == NULL)
{
fprintf (stderr, "I don't know!\n");
return 1;
}
printf ("%s\n", user);
unused_function();
return 0;
}
int
main (int argc, char **argv)
{
if (argc > 1)
{
fprintf (stderr, "usage: whoami\n");
return 1;
}
return who_am_i();
}
void unused_function()
{
printf();
error1();
printf();
}
void error1()
{
error2();
}
void error2()
{
}
test.cの
int tests()
{ return 0;}
hello.cとtest.cの内容を投稿できますか? –
@AndreasGrapentin私はコードを追加しました。私はちょうどcflowに複数のファイル名を渡す方法を知らない。 – Ganeshkumar
2回目の呼び出しが正しい。 'tests()'は呼び出されないので、あなたのコールグラフには表示されません。 –