Re: net_init can not find in GTAGS

Shigio YAMAGUCHI <[email protected]> Sat, 4 Nov 2023 07:26:49 +0900
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CADJmJYqevj8i+Mzf5CE3tfMt_2=kDXMOZ47c0P6ebRupXwL4wg@mail.gmail.com>
--000000000000c786c70609470009
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,
Could you please attach the source code of the problem?
Could you please provide an example using the global command
to reproduce the problem?
Thank you in advance.

Regards,
Shigio

On Fri, Nov 3, 2023 at 11:24=E2=80=AFPM weidong <[email protected]> wrote:

> the problem source code is: https://gitee.com/lishutong-01ketang/diy-tcpi=
p
> =EF=BC=8C you can download use git clone, the code size is not very big
>
> 1) I use: find * -name "*.c" -o -name "*.h" > gtags.files && gtags -f
> gtags.files to generate gtags files
>
> 2) net_init can not find in GTAGS, so I use :Gtags net_init in vim can no=
t
> the find the tag net_init
> Admini@Admini-PC MINGW32 /d/code/diy-tcpip (master) $ grep net_init * -rn
> Binary file GRTAGS matches src/app/test/main.c:373: net_init();
> src/net/net/net.h:15:net_err_t net_init (void);
> src/net/src/net.c:32:net_err_t net_init(void) {
> but netdev_init is ok. Admini@Admini-PC MINGW32 /d/code/diy-tcpip
> (master) $ grep netdev_init * -rn Binary file GRTAGS matches Binary file
> GTAGS matches src/app/test/main.c:42:net_err_t netdev_init(void) {
> src/app/test/main.c:379: netdev_init();
>
> many other function has this problem like: net_plat_init
>
> ------------------------------
> weidong
> [email protected]
>
> <https://wx.mail.qq.com/home/index?t=3Dreadmail_businesscard_midpage&noch=
eck=3Dtrue&name=3Dweidong&icon=3Dhttps%3A%2F%2Fthirdqq.qlogo.cn%2Fg%3Fb%3Do=
idb%26k%3DgTib7BjUhlmLz7lgyDOfVpQ%26s%3D0&mail=3D1015490825%40qq.com&code=
=3DPauGus610t0Hauj47-s3AmJCiOrazdg6OVqmHlg7tse2w7OhFTFZNoHwdWaM6aW5i43MBpRj=
MEHFzSVEOOVDnA>
>
>


--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

--000000000000c786c70609470009
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<br>Could you please attach the source code of the p=
roblem?<br>Could you please provide an example using the global command <br=
>to reproduce the problem?<br>Thank you in advance.<br><br>Regards,<br>Shig=
io<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Fri, Nov 3, 2023 at 11:24=E2=80=AFPM weidong &lt;<a href=3D"mailto=
:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex"><div><font face=3D"=E5=AE=8B=E4=BD=93"=
 size=3D"4">the problem source code is:=C2=A0</font><span style=3D"color:rg=
b(24,25,28);font-family:&quot;PingFang SC&quot;,HarmonyOS_Regular,&quot;Hel=
vetica Neue&quot;,&quot;Microsoft YaHei&quot;,sans-serif;font-size:16px;whi=
te-space:pre-wrap"><a href=3D"https://gitee.com/lishutong-01ketang/diy-tcpi=
p" target=3D"_blank">https://gitee.com/lishutong-01ketang/diy-tcpip</a> =EF=
=BC=8C you can download use git clone, the code size is not very big</span>=
</div><div><span style=3D"color:rgb(24,25,28);font-family:&quot;PingFang SC=
&quot;,HarmonyOS_Regular,&quot;Helvetica Neue&quot;,&quot;Microsoft YaHei&q=
uot;,sans-serif;font-size:16px;white-space:pre-wrap"><br></span></div><div>=
<span style=3D"color:rgb(24,25,28);font-family:&quot;PingFang SC&quot;,Harm=
onyOS_Regular,&quot;Helvetica Neue&quot;,&quot;Microsoft YaHei&quot;,sans-s=
erif;font-size:16px;white-space:pre-wrap">1) I use: find * -name &quot;*.c&=
quot; -o -name &quot;*.h&quot; &gt; gtags.files &amp;&amp; gtags -f gtags.f=
iles to generate gtags files</span></div><div><span style=3D"color:rgb(24,2=
5,28);font-family:&quot;PingFang SC&quot;,HarmonyOS_Regular,&quot;Helvetica=
 Neue&quot;,&quot;Microsoft YaHei&quot;,sans-serif;font-size:16px;white-spa=
ce:pre-wrap"><br></span></div><div><font color=3D"#18191c" face=3D"PingFang=
 SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif"><span =
style=3D"font-size:16px;white-space:pre-wrap">2) net_init can not find in G=
TAGS, so I use :Gtags net_init in vim can not the find the tag net_init</sp=
an></font></div><div><font color=3D"#18191c" face=3D"PingFang SC, HarmonyOS=
_Regular, Helvetica Neue, Microsoft YaHei, sans-serif"><span style=3D"font-=
size:16px;white-space:pre-wrap">Admini@Admini-PC MINGW32 /d/code/diy-tcpip =
(master)
$ grep net_init * -rn
Binary file GRTAGS matches
src/app/test/main.c:373:    net_init();
src/net/net/net.h:15:net_err_t net_init (void);
src/net/src/net.c:32:net_err_t net_init(void) {
<br></span></font></div><div><font color=3D"#18191c" face=3D"PingFang SC, H=
armonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif"><span style=
=3D"font-size:16px;white-space:pre-wrap">but netdev_init is ok.
Admini@Admini-PC MINGW32 /d/code/diy-tcpip (master)
$ grep netdev_init * -rn
Binary file GRTAGS matches
Binary file GTAGS matches
src/app/test/main.c:42:net_err_t netdev_init(void) {
src/app/test/main.c:379:    netdev_init();</span></font><span style=3D"colo=
r:rgb(24,25,28);font-family:&quot;PingFang SC&quot;,HarmonyOS_Regular,&quot=
;Helvetica Neue&quot;,&quot;Microsoft YaHei&quot;,sans-serif;font-size:16px=
;white-space:pre-wrap">
</span></div><div><span style=3D"color:rgb(24,25,28);font-family:&quot;Ping=
Fang SC&quot;,HarmonyOS_Regular,&quot;Helvetica Neue&quot;,&quot;Microsoft =
YaHei&quot;,sans-serif;font-size:16px;white-space:pre-wrap"><br></span></di=
v><div><span style=3D"color:rgb(24,25,28);font-family:&quot;PingFang SC&quo=
t;,HarmonyOS_Regular,&quot;Helvetica Neue&quot;,&quot;Microsoft YaHei&quot;=
,sans-serif;font-size:16px;white-space:pre-wrap">many other function has th=
is problem like: </span><font color=3D"#18191c" face=3D"PingFang SC, Harmon=
yOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif"><span style=3D"fo=
nt-size:16px;white-space:pre-wrap">net_plat_init</span></font></div><div><f=
ont face=3D"=E5=AE=8B=E4=BD=93" size=3D"4"><br></font></div><div><hr align=
=3D"left" style=3D"margin:0px 0px 10px;border-width:0px 0px 1px;border-top-=
style:initial;border-right-style:initial;border-left-style:initial;border-t=
op-color:initial;border-right-color:initial;border-left-color:initial;borde=
r-bottom-style:solid;border-bottom-color:rgb(228,229,230);height:0px;line-h=
eight:0;font-size:0px;padding:20px 0px 0px;width:50px"><div style=3D"font-s=
ize:14px;font-family:Verdana;color:rgb(0,0,0)"><a id=3D"m_-4411156946694310=
642in_alias" style=3D"white-space:normal;display:inline-block;font-family:-=
apple-system,BlinkMacSystemFont,&quot;PingFang SC&quot;,&quot;Microsoft YaH=
ei&quot;;text-decoration:none" href=3D"https://wx.mail.qq.com/home/index?t=
=3Dreadmail_businesscard_midpage&amp;nocheck=3Dtrue&amp;name=3Dweidong&amp;=
icon=3Dhttps%3A%2F%2Fthirdqq.qlogo.cn%2Fg%3Fb%3Doidb%26k%3DgTib7BjUhlmLz7lg=
yDOfVpQ%26s%3D0&amp;mail=3D1015490825%40qq.com&amp;code=3DPauGus610t0Hauj47=
-s3AmJCiOrazdg6OVqmHlg7tse2w7OhFTFZNoHwdWaM6aW5i43MBpRjMEHFzSVEOOVDnA" targ=
et=3D"_blank"><table style=3D"white-space:normal;table-layout:fixed;padding=
-right:20px" cellpadding=3D"0" cellspacing=3D"0"><tbody><tr valign=3D"top">=
<td style=3D"width:40px;min-width:40px;padding-top:10px"><div style=3D"widt=
h:38px;height:38px;border:1px solid rgb(255,255,255);border-radius:50%;marg=
in:0px;vertical-align:top"><img src=3D"https://thirdqq.qlogo.cn/g?b=3Doidb&=
amp;k=3DgTib7BjUhlmLz7lgyDOfVpQ&amp;s=3D0" style=3D"width: 100%; height: 10=
0%; border-radius: 50%;"></div></td><td style=3D"padding:10px 0px 8px 10px"=
><div style=3D"font-size:14px;color:rgb(51,49,46);line-height:20px;padding-=
bottom:2px;margin:0px;font-weight:500">weidong</div><div style=3D"font-size=
:12px;color:rgb(153,152,150);line-height:18px;margin:0px">[email protected]=
</div></td></tr></tbody></table></a></div></div><div>=C2=A0</div></blockquo=
te></div><br clear=3D"all"><div><br></div><span class=3D"gmail_signature_pr=
efix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"=
ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"lt=
r"><div dir=3D"ltr">Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;</div><div dir=3D"ltr"><div dir=3D"=
ltr">PGP fingerprint:=C2=A0</div><div dir=3D"ltr">26F6 31B4 3D62 4A92 7E6F =
=C2=A01C33 969C 3BE3 89DD A6EB</div></div></div></div></div></div></div></d=
iv></div>

--000000000000c786c70609470009--