[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Some variables show redefined abnormally.
From: |
zhangqinghao0811 |
Subject: |
Some variables show redefined abnormally. |
Date: |
Thu, 25 Mar 2021 17:30:47 +0800 |
When I used cflow analyse the client mode, I got many logs, here is some passages:
And this is the corresponding code:
It seems that cflow regards "!ptr", "*ptr", "h=..." as variable definition.
Here is the steps of I execute in the root path of the source code:
1. "./configuration"
2. "make"
3. replace all main in "*.c" source core files with no_main except "./client/dhclient.c".
4. create "./cflow" file:
--symbol __extension__:qualifier
--symbol __leaf__:qualifier
--symbol __attribute__:wrapper
5. export CFLOWRC=./cflow.rc
6. execute:
cflow -m main \
./client/*.c \
./common/*.c \
./dhcpctl/*.c \
./keama/*.c \
./omapip/*.c \
./relay/*.c \
./server/*.c \
--include-dir=./ \
--include-dir=./includes/ \
--include-dir=./bind/bind-
9.11.14/lib/isc/include/ \
--include-dir=./bind/bind-
9.11.14/lib/dns/include/ \
--include-dir=./bind/bind-
9.11.14/bin/named/include/named/ \
--include-dir=./bind/bind-
9.11.14/lib/isccfg/include/ \
--include-dir=./bind/bind-
9.11.14/lib/isc/unix/include/ \
--include-dir=./bind/bind-
9.11.14/lib/isc/nothreads/include/ \
--include-dir=./bind/bind-
9.11.14/lib/isc/alpha/include/ \
--include-dir=./bind/bind-
9.11.14/lib/irs/include/ \
--include-dir=./bind/include/ \
--cpp > dhclient_call_graph.txt
Then I got above logs.
So, is that a bug? Or just I use cflow incorrectly?
- Some variables show redefined abnormally.,
zhangqinghao0811 <=