From MAILER-DAEMON Sun Oct 15 06:18:48 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1e3g0O-0002kR-GD
	for mharc-bug-global@gnu.org; Sun, 15 Oct 2017 06:18:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39849)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nodamotoki@gmail.com>) id 1e3fQC-0005sT-8I
	for bug-global@gnu.org; Sun, 15 Oct 2017 05:41:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nodamotoki@gmail.com>) id 1e3fQB-0000h4-9F
	for bug-global@gnu.org; Sun, 15 Oct 2017 05:41:24 -0400
Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:43498)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <nodamotoki@gmail.com>)
	id 1e3fQB-0000gE-2A
	for bug-global@gnu.org; Sun, 15 Oct 2017 05:41:23 -0400
Received: by mail-wr0-x22f.google.com with SMTP id p46so3497850wrb.0
	for <bug-global@gnu.org>; Sun, 15 Oct 2017 02:41:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:from:date:message-id:subject:to;
	bh=cCr84QV5vUckQ4JxxnPaX28rKpSa7KlC2EHpVp9vaRo=;
	b=ES/c5ckDJcIv+ioNY5djKLcTKsXFLs65aoGyRiW2F0lbUz4jySsiU5VjvMo1eq3CfX
	CRVFkdMiJ7+pbB+Jk+WvRB65eZUuK4MbO2Ywj7X/2UULPo3JGaQTpZlTS3TKXuO2kLqE
	U3s3WTlxe9MNLCGADjEJOGQPwn0z3d9iANc3F8c3xim/IS/6YcaTvESfMeIxOQURoYpy
	ZpdBFkvdp9NBfyesLGD25I7tax5v4o3O6wUfUjKfQhF6T5EnxNCbhfdRCWvjVz5vKo48
	qXCfGocOdOZ4XeJFbFn+D+glMJUT6KRMUQBKfLLz3RATrv0I0v9RqiYTRkUhNZOO8ElE
	6UQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=cCr84QV5vUckQ4JxxnPaX28rKpSa7KlC2EHpVp9vaRo=;
	b=uaWxSvJMt9g1aZJH0Nj/wsNLx8lvAfqbg3bthaTJRU1VLyCMrsqZ/JEhS37MfsSymk
	z8d7fNVoqlgJFZPZ7Vz66gm0XLbA4z/KjdgL6ON7Ewu72g0BgVBBMoiBB9qTXNhbCtB8
	k5FypBROCPx9y/6WUXogb0fjdY6cI3ou8ABt/P4RNgZ47qFAjgNoPlLhbuSdCeuZRNvR
	zfWaFKtrke4VZSJ1pMIxWUl7FBeTxs+iiIDbBburMd4YNfldwe3LBLgiLD911ZmFzj6i
	slCej0MF5+EeNRAFb8KLLc2MausUpSf4Q7ZxjvsxRlzuEESK1NIzzSzXdE6lehJL1xf7
	1j8Q==
X-Gm-Message-State: AMCzsaXW4RnCDja1SoTAXS5jSi+HYXU47A3XFvLBee1qvPPWaXfmWT57
	KJk5X7H049SE0bHivxlZ8Tq9siP0q519eI3TTzh5iQ==
X-Google-Smtp-Source: AOwi7QDec44l1E/xIolVLs3G40jJr9lFK5XTtR6JzweZc5eBK0F10MMQed0RSMUUT8wldz3OwTMKKs7PrZstb8OO6fQ=
X-Received: by 10.223.182.156 with SMTP id j28mr6135997wre.46.1508060480406;
	Sun, 15 Oct 2017 02:41:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.146.134 with HTTP; Sun, 15 Oct 2017 02:41:19 -0700 (PDT)
From: =?UTF-8?B?6YeO55Sw5aSn5qi5?= <nodamotoki@gmail.com>
Date: Sun, 15 Oct 2017 18:41:19 +0900
Message-ID: <CA+tVGMGubXGJxSFBPj56rw+o3TZ20LY8PB_yZvpEF9p518-WpQ@mail.gmail.com>
Subject: global -xsi seems wrong sometimes
To: bug-global@gnu.org
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:400c:c0c::22f
X-Mailman-Approved-At: Sun, 15 Oct 2017 06:18:47 -0400
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global/>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Oct 2017 09:41:25 -0000

Hi.
I encountered the funny behavior in using GLOGAL.
Then I tried to patch it. Please check it.

------------------------------------------------
What is your environment (OS)?

$ uname -a
CYGWIN_NT-10.0-WOW muse 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin


------------------------------------------------
Which version of GLOBAL are you using?

$ global --version
global (GNU GLOBAL) 6.5.7
Copyright (c) 1996-2017 Tama Communications Corporation
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


------------------------------------------------
What did you do? (command line)

On the directory tree below:

    TestGtags
    |
    +-- Include
    |   |
    |   +-- TestGtags.h
    |         +------------------------
    |        1|enum A_MODE {
    |        2| a0,
    |        3| a1,
    |        4| a2,
    |        5|};
    |         +------------------------
    +-- Src
        |
        +-- TestGtags.cpp
              +------------------------
             1|#include <stdio.h>
             2|#include "TestGtags.h"
             3|
             4|void func()
             5|{
             6| A_MODE a_mode = a0;
             7| printf("a_mode=%d\n", a_mode);
             8|}
             9|
            10|int main(int argc, char* argv[])
            11|{
            12| func();
            13|
            14| A_MODE a_Mode = a1;
            15| printf("a_Mode=%d\n", a_Mode);
            16|
            17| return 0;
            18|}
              +------------------------

$ cd TestGtags
$ gtags
$ global -xsi a_mode


------------------------------------------------
What did you expect from it?

I expect global print locations like followings.

    a_Mode             14 Src/TestGtags.cpp         A_MODE a_Mode = a1;
    a_Mode             15 Src/TestGtags.cpp
printf("a_Mode=%d\n", a_Mode);
    a_mode              6 Src/TestGtags.cpp         A_MODE a_mode = a0;
    a_mode              7 Src/TestGtags.cpp
printf("a_mode=%d\n", a_mode);


------------------------------------------------
What was occurred? (as is)

Never print.


------------------------------------------------
Patch

I thought that -i option is not work correctly.
So, I wrote sample patch. Please check it.


$ diff -up libutil/gtagsop.c.6.5.7 libutil/gtagsop.c
--- libutil/gtagsop.c.6.5.7 2017-10-15 17:40:54.699199600 +0900
+++ libutil/gtagsop.c 2017-10-15 14:28:55.161333500 +0900
@@ -878,7 +878,17 @@ again1:
  else
  strhash_reset(gtop->path_hash);
 again2:
+#if 0
  tagline = dbop_first(gtop->dbop, gtop->key, gtop->preg, gtop->dbflags);
+#else
+ for (tagline = dbop_first(gtop->dbop, gtop->key, gtop->preg, gtop->dbflags);
+ tagline != NULL;
+ tagline = dbop_next(gtop->dbop))
+ {
+ VIRTUAL_GRTAGS_GSYMS_PROCESSING(gtop);
+ break;
+ }
+#endif
  if (tagline == NULL) {
  if (gtop->prefix && gtags_restart(gtop))
  goto again2;




Thanks.
--
Motoki NODA


From MAILER-DAEMON Thu Oct 19 09:36:37 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1e5B01-00061y-6d
	for mharc-bug-global@gnu.org; Thu, 19 Oct 2017 09:36:37 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39804)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <i.tamacom@gmail.com>) id 1e5Azy-0005zG-2n
	for bug-global@gnu.org; Thu, 19 Oct 2017 09:36:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <i.tamacom@gmail.com>) id 1e5Azw-0001Zg-LX
	for bug-global@gnu.org; Thu, 19 Oct 2017 09:36:34 -0400
Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:56441)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <i.tamacom@gmail.com>) id 1e5Azw-0001ZK-9D
	for bug-global@gnu.org; Thu, 19 Oct 2017 09:36:32 -0400
Received: by mail-lf0-x22e.google.com with SMTP id 90so9645735lfs.13
	for <bug-global@gnu.org>; Thu, 19 Oct 2017 06:36:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:sender:in-reply-to:references:from:date:message-id
	:subject:to:cc;
	bh=yw5ovD9Jd0BL2iZDd60rOD7jEDw85tDJn8tQ47ElTHE=;
	b=qlfq1O0YMOT340momUQp8lHlenmpQbSXMVwE4N4HQNqMh1jT6dgyKKbwt3CMqjMl8z
	d9UZ/LMcuDa6mUSAxhXUj/9RCyNYcaGma6yI6gGtGBlsVKnpPC+5LVB4Dj+qYKaDO5pf
	h6EZlogZqv11PTixePjwyNPLS3/USXmv5qlN635kfSXqVcqY8Qcm+N2xvhU0oUkHJkhU
	OYTCNz6mRtFiSIlu1em0XH7eXJwCqBuuaANmhc9kEZL3zAKxVb5Rb7QClWU0hUqlOLwZ
	KAKBYEB6IFErgAEdQwPQ5w8egvOAfzgVEDZsaHtpfNh3ILDITkL/TA541dnfNMS24LEm
	3pYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
	:date:message-id:subject:to:cc;
	bh=yw5ovD9Jd0BL2iZDd60rOD7jEDw85tDJn8tQ47ElTHE=;
	b=Ou4+HSsnrqDBdNZMRR/Y7ACMoE4Ok8Ph5x0YUQR825F+IDso+ZjO+NCogySa2JwxD9
	ay4mRc07z2wx1NZwlFpZ5hl5H45ghRwGIneBDUvIzuw6hKQd6IM+Ep0IJE163OG9E1m8
	XCRKJEr46i5lgsTeL1EgMGQmtZKiLfXyGpLfoZhxW0jgwIDj3WkOGmazFAZYiUU+vbt+
	LmBowFavS1HhoASZGHGBWsubxv4kRyCdwkqJEr7Ck9Nw5lwwnlF6LkHstgEAxsxcxgqh
	n/h/yPLDeq5aYH5WH7rMLV/lkn8hyIKHra4yKdiYJXVXhmU1I1mpgGcJ4+5URPE7YcIQ
	9n2g==
X-Gm-Message-State: AMCzsaXSKJA6SOPFGQec4mOF7c5WZuggfC4fE5REm2T4MgyTDA5NnThd
	doEVWOc3FdZFKSjFD2/KTaNfDcNkg6XroSrdkQFDHg==
X-Google-Smtp-Source: ABhQp+QyllnmhxS3NXfllSnrEZzUhnpLtfR4VwmoalcdVLRpAbBXhdz8l1p9YoyyJX8xsrzu+fsNpw6jJ4cjG0spEng=
X-Received: by 10.25.213.12 with SMTP id m12mr540206lfg.201.1508420189652;
	Thu, 19 Oct 2017 06:36:29 -0700 (PDT)
MIME-Version: 1.0
Sender: i.tamacom@gmail.com
Received: by 10.25.72.22 with HTTP; Thu, 19 Oct 2017 06:36:29 -0700 (PDT)
In-Reply-To: <CA+tVGMGubXGJxSFBPj56rw+o3TZ20LY8PB_yZvpEF9p518-WpQ@mail.gmail.com>
References: <CA+tVGMGubXGJxSFBPj56rw+o3TZ20LY8PB_yZvpEF9p518-WpQ@mail.gmail.com>
From: Shigio YAMAGUCHI <shigio@gnu.org>
Date: Thu, 19 Oct 2017 22:36:29 +0900
X-Google-Sender-Auth: 0pCI3fK-2pEcQ7eMepvnmUfuDF0
Message-ID: <CADJmJYo83C4jfpnbab=w7jivcp6zEsbopUo_K+fioBU81GWfBA@mail.gmail.com>
Subject: Re: global -xsi seems wrong sometimes
To: =?UTF-8?B?6YeO55Sw5aSn5qi5?= <nodamotoki@gmail.com>
Cc: "bug-global@gnu.org" <bug-global@gnu.org>
Content-Type: multipart/alternative; boundary="001a11412efc9389d2055be671ae"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:4010:c07::22e
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global/>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Oct 2017 13:36:35 -0000

--001a11412efc9389d2055be671ae
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello, NODA san.

Your patch works well. I have committed it.
Thank you!

Regards,
Shigio


2017-10-15 18:41 GMT+09:00 =E9=87=8E=E7=94=B0=E5=A4=A7=E6=A8=B9 <nodamotoki=
@gmail.com>:

> Hi.
> I encountered the funny behavior in using GLOGAL.
> Then I tried to patch it. Please check it.
>
> ------------------------------------------------
> What is your environment (OS)?
>
> $ uname -a
> CYGWIN_NT-10.0-WOW muse 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin
>
>
> ------------------------------------------------
> Which version of GLOBAL are you using?
>
> $ global --version
> global (GNU GLOBAL) 6.5.7
> Copyright (c) 1996-2017 Tama Communications Corporation
> License GPLv3+: GNU GPL version 3 or later
> <http://www.gnu.org/licenses/gpl.html>
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
>
> ------------------------------------------------
> What did you do? (command line)
>
> On the directory tree below:
>
>     TestGtags
>     |
>     +-- Include
>     |   |
>     |   +-- TestGtags.h
>     |         +------------------------
>     |        1|enum A_MODE {
>     |        2| a0,
>     |        3| a1,
>     |        4| a2,
>     |        5|};
>     |         +------------------------
>     +-- Src
>         |
>         +-- TestGtags.cpp
>               +------------------------
>              1|#include <stdio.h>
>              2|#include "TestGtags.h"
>              3|
>              4|void func()
>              5|{
>              6| A_MODE a_mode =3D a0;
>              7| printf("a_mode=3D%d\n", a_mode);
>              8|}
>              9|
>             10|int main(int argc, char* argv[])
>             11|{
>             12| func();
>             13|
>             14| A_MODE a_Mode =3D a1;
>             15| printf("a_Mode=3D%d\n", a_Mode);
>             16|
>             17| return 0;
>             18|}
>               +------------------------
>
> $ cd TestGtags
> $ gtags
> $ global -xsi a_mode
>
>
> ------------------------------------------------
> What did you expect from it?
>
> I expect global print locations like followings.
>
>     a_Mode             14 Src/TestGtags.cpp         A_MODE a_Mode =3D a1;
>     a_Mode             15 Src/TestGtags.cpp
> printf("a_Mode=3D%d\n", a_Mode);
>     a_mode              6 Src/TestGtags.cpp         A_MODE a_mode =3D a0;
>     a_mode              7 Src/TestGtags.cpp
> printf("a_mode=3D%d\n", a_mode);
>
>
> ------------------------------------------------
> What was occurred? (as is)
>
> Never print.
>
>
> ------------------------------------------------
> Patch
>
> I thought that -i option is not work correctly.
> So, I wrote sample patch. Please check it.
>
>
> $ diff -up libutil/gtagsop.c.6.5.7 libutil/gtagsop.c
> --- libutil/gtagsop.c.6.5.7 2017-10-15 17:40:54.699199600 +0900
> +++ libutil/gtagsop.c 2017-10-15 14:28:55.161333500 +0900
> @@ -878,7 +878,17 @@ again1:
>   else
>   strhash_reset(gtop->path_hash);
>  again2:
> +#if 0
>   tagline =3D dbop_first(gtop->dbop, gtop->key, gtop->preg, gtop->dbflags=
);
> +#else
> + for (tagline =3D dbop_first(gtop->dbop, gtop->key, gtop->preg,
> gtop->dbflags);
> + tagline !=3D NULL;
> + tagline =3D dbop_next(gtop->dbop))
> + {
> + VIRTUAL_GRTAGS_GSYMS_PROCESSING(gtop);
> + break;
> + }
> +#endif
>   if (tagline =3D=3D NULL) {
>   if (gtop->prefix && gtags_restart(gtop))
>   goto again2;
>
>
>
>
> Thanks.
> --
> Motoki NODA
>
> _______________________________________________
> Bug-global mailing list
> Bug-global@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-global
>



--=20
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

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

<div dir=3D"ltr"><div>Hello, NODA san.</div><div><br></div><div>Your patch =
works well. I have committed it.</div><div>Thank you!</div><div><br></div><=
div>Regards,</div><div>Shigio</div><div><br></div></div><div class=3D"gmail=
_extra"><br><div class=3D"gmail_quote">2017-10-15 18:41 GMT+09:00 =E9=87=8E=
=E7=94=B0=E5=A4=A7=E6=A8=B9 <span dir=3D"ltr">&lt;<a href=3D"mailto:nodamot=
oki@gmail.com" target=3D"_blank">nodamotoki@gmail.com</a>&gt;</span>:<br><b=
lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px =
#ccc solid;padding-left:1ex">Hi.<br>
I encountered the funny behavior in using GLOGAL.<br>
Then I tried to patch it. Please check it.<br>
<br>
------------------------------<wbr>------------------<br>
What is your environment (OS)?<br>
<br>
$ uname -a<br>
CYGWIN_NT-10.0-WOW muse 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin<br>
<br>
<br>
------------------------------<wbr>------------------<br>
Which version of GLOBAL are you using?<br>
<br>
$ global --version<br>
global (GNU GLOBAL) 6.5.7<br>
Copyright (c) 1996-2017 Tama Communications Corporation<br>
License GPLv3+: GNU GPL version 3 or later<br>
&lt;<a href=3D"http://www.gnu.org/licenses/gpl.html" rel=3D"noreferrer" tar=
get=3D"_blank">http://www.gnu.org/licenses/<wbr>gpl.html</a>&gt;<br>
This is free software; you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
<br>
<br>
------------------------------<wbr>------------------<br>
What did you do? (command line)<br>
<br>
On the directory tree below:<br>
<br>
=C2=A0 =C2=A0 TestGtags<br>
=C2=A0 =C2=A0 |<br>
=C2=A0 =C2=A0 +-- Include<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0|<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0+-- TestGtags.h<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+------------------------<=
br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 1|enum A_MODE {<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 2| a0,<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 3| a1,<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 4| a2,<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 5|};<br>
=C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+------------------------<=
br>
=C2=A0 =C2=A0 +-- Src<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 |<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 +-- TestGtags.cpp<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +------------------------<=
br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01|#include &lt;stdio.h&gt;<=
br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02|#include &quot;TestGtags.=
h&quot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A03|<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A04|void func()<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A05|{<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A06| A_MODE a_mode =3D a0;<br=
>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A07| printf(&quot;a_mode=3D%d=
\n&quot;, a_mode);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A08|}<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09|<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10|int main(int argc, char* argv[=
])<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11|{<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 12| func();<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 13|<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 14| A_MODE a_Mode =3D a1;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 15| printf(&quot;a_Mode=3D%d\n&qu=
ot;, a_Mode);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 16|<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 17| return 0;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 18|}<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +------------------------<=
br>
<br>
$ cd TestGtags<br>
$ gtags<br>
$ global -xsi a_mode<br>
<br>
<br>
------------------------------<wbr>------------------<br>
What did you expect from it?<br>
<br>
I expect global print locations like followings.<br>
<br>
=C2=A0 =C2=A0 a_Mode=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A014 Src/=
TestGtags.cpp=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0A_MODE a_Mode =3D a1;<br>
=C2=A0 =C2=A0 a_Mode=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A015 Src/=
TestGtags.cpp<br>
printf(&quot;a_Mode=3D%d\n&quot;, a_Mode);<br>
=C2=A0 =C2=A0 a_mode=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 6 Src/=
TestGtags.cpp=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0A_MODE a_mode =3D a0;<br>
=C2=A0 =C2=A0 a_mode=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7 Src/=
TestGtags.cpp<br>
printf(&quot;a_mode=3D%d\n&quot;, a_mode);<br>
<br>
<br>
------------------------------<wbr>------------------<br>
What was occurred? (as is)<br>
<br>
Never print.<br>
<br>
<br>
------------------------------<wbr>------------------<br>
Patch<br>
<br>
I thought that -i option is not work correctly.<br>
So, I wrote sample patch. Please check it.<br>
<br>
<br>
$ diff -up libutil/gtagsop.c.6.5.7 libutil/gtagsop.c<br>
--- libutil/gtagsop.c.6.5.7 2017-10-15 17:40:54.699199600 +0900<br>
+++ libutil/gtagsop.c 2017-10-15 14:28:55.161333500 +0900<br>
@@ -878,7 +878,17 @@ again1:<br>
=C2=A0 else<br>
=C2=A0 strhash_reset(gtop-&gt;path_hash)<wbr>;<br>
=C2=A0again2:<br>
+#if 0<br>
=C2=A0 tagline =3D dbop_first(gtop-&gt;dbop, gtop-&gt;key, gtop-&gt;preg, g=
top-&gt;dbflags);<br>
+#else<br>
+ for (tagline =3D dbop_first(gtop-&gt;dbop, gtop-&gt;key, gtop-&gt;preg, g=
top-&gt;dbflags);<br>
+ tagline !=3D NULL;<br>
+ tagline =3D dbop_next(gtop-&gt;dbop))<br>
+ {<br>
+ VIRTUAL_GRTAGS_GSYMS_<wbr>PROCESSING(gtop);<br>
+ break;<br>
+ }<br>
+#endif<br>
=C2=A0 if (tagline =3D=3D NULL) {<br>
=C2=A0 if (gtop-&gt;prefix &amp;&amp; gtags_restart(gtop))<br>
=C2=A0 goto again2;<br>
<br>
<br>
<br>
<br>
Thanks.<br>
--<br>
Motoki NODA<br>
<br>
______________________________<wbr>_________________<br>
Bug-global mailing list<br>
<a href=3D"mailto:Bug-global@gnu.org">Bug-global@gnu.org</a><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/bug-global" rel=3D"norefe=
rrer" target=3D"_blank">https://lists.gnu.org/mailman/<wbr>listinfo/bug-glo=
bal</a><br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><d=
iv><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div=
 dir=3D"ltr">Shigio YAMAGUCHI &lt;<a href=3D"mailto:shigio@gnu.org" target=
=3D"_blank">shigio@gnu.org</a>&gt;</div><div dir=3D"ltr"><div dir=3D"ltr">P=
GP fingerprint:=C2=A0</div><div dir=3D"ltr">26F6 31B4 3D62 4A92 7E6F =C2=A0=
1C33 969C 3BE3 89DD A6EB</div></div></div></div></div></div></div></div></d=
iv>
</div>

--001a11412efc9389d2055be671ae--


From MAILER-DAEMON Sat Oct 21 06:46:51 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1e5rIp-0007dm-NV
	for mharc-bug-global@gnu.org; Sat, 21 Oct 2017 06:46:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39565)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <punitagrawal@gmail.com>) id 1e5rIn-0007dd-Hz
	for bug-global@gnu.org; Sat, 21 Oct 2017 06:46:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <punitagrawal@gmail.com>) id 1e5rIk-0002sP-Ab
	for bug-global@gnu.org; Sat, 21 Oct 2017 06:46:49 -0400
Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:45037)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <punitagrawal@gmail.com>)
	id 1e5rIk-0002rm-43
	for bug-global@gnu.org; Sat, 21 Oct 2017 06:46:46 -0400
Received: by mail-wr0-x229.google.com with SMTP id z55so7180680wrz.1
	for <bug-global@gnu.org>; Sat, 21 Oct 2017 03:46:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=from:to:cc:subject:date:message-id;
	bh=XqVrx8S3nqcKlG2edBli5eOVmiNvGs0ipEUfvG87OAI=;
	b=e9tsdTf1uIs9aXY+hEdgaDWIdEzPjqW+mzM2n6pmvOpiyqMC50dLDi1Csfwmh9z3ZR
	eKv2zx5mC3ltPlzIETfdJofX71mZhBwWijmrFEXmQdvjUyvVtrahrp57P+6Egu7yInl9
	q0I6eCd/BvQYfAgxzKrR+rv0lCkme+jS/CPOyoMbDCx3rjHEW7W7S8vOfCXCsHzY4Mq+
	Q1aAX4F6ikVCYWX5vydVgFm51x/MXTKMGLihkM93nZRJBIfoVy53iFTclu5iTJPvjPJS
	BErTb9eNcO1+Rvch6c5sV0dOzTURg61MWn3PQfaKQ+AOFwsOTvZTRS4O7+BJvFyI/xhY
	1HBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:from:to:cc:subject:date:message-id;
	bh=XqVrx8S3nqcKlG2edBli5eOVmiNvGs0ipEUfvG87OAI=;
	b=NdQTfB6V5aiSLwNexcmkOgV+czJuLlY1AwYwAncO8O0biAdXJeon6ZKnV5/Ahg3avu
	7rNA8X0uooQf7uQAS1cqFqihhOBzJoIxrIEwfc7hAfagEVUbnXwyyrgRpVtaxfG5vvwm
	pfLJjJI1r0L8kAzbprfO77XsfdduRnz7FecqvykbldgHRJMOaOWsBTxeTAu0469bb2uU
	X6eb0LL6kx5SAft2kMtdNIyXz9YjoLIncVxCP3tGpLD5x2yU0qJc4fAgb3tPFhsAQL/a
	3wANhG0keHhkPfwDp6JYO/LlkBsNb9ez5TPh+7HkSkZ8oWzETIfsivy8ziJC5JEEzGf0
	3wRA==
X-Gm-Message-State: AMCzsaU3zDzxPDCdLYcusOnE4IGLOK2vZmsO+dYjVna0eyWyQk1y1NEt
	5uTZJUQJ/iOPst3S7EyVOrc7AA==
X-Google-Smtp-Source: ABhQp+RHHYFFgIw7/HSlJ1FQgz6SV8Z8cHtGISms6597Xn8jOXOXnCOAIgJfr8YNsN2fj+ViWUHhTg==
X-Received: by 10.223.134.14 with SMTP id 14mr6812570wrv.148.1508582803645;
	Sat, 21 Oct 2017 03:46:43 -0700 (PDT)
Received: from localhost (cpc111843-pete12-2-0-cust1173.4-4.cable.virginm.net.
	[81.97.76.150]) by smtp.gmail.com with ESMTPSA id
	e132sm339497wmd.42.2017.10.21.03.46.42
	(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
	Sat, 21 Oct 2017 03:46:42 -0700 (PDT)
From: Punit Agrawal <punitagrawal@gmail.com>
X-Google-Original-From: Punit Agrawal <punit@debian.org>
To: bug-global@gnu.org
Subject: [PATCH] gozilla: More robust input error handling
Date: Sat, 21 Oct 2017 11:46:37 +0100
Message-Id: <20171021104637.1361-1-punit@debian.org>
X-Mailer: git-send-email 2.14.2
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:400c:c0c::229
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global/>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Oct 2017 10:46:50 -0000

From: Punit Agrawal <punitagrawal@gmail.com>

The check for argc only tests if it is zero rather than any value less
than equal 0. This leads to segmentation fault when fed with invalid
input (Debian bug #715980).

Fix this by erroring out if argc <= 0.

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715980
---
Hi,

The debian bug report includes a reproducer. The patch below fixes the
issue for me and should be considered for upstream inclusion.

Thanks,
Punit

 gozilla/gozilla.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gozilla/gozilla.c b/gozilla/gozilla.c
index 22d2a95..050d228 100644
--- a/gozilla/gozilla.c
+++ b/gozilla/gozilla.c
@@ -273,7 +273,7 @@ main(int argc, char **argv)
 	 * Replace alias name.
 	 */
 	if (definition == NULL) {
-		if (argc == 0)
+		if (argc <= 0)
 			usage();
 		strbuf_puts(arg, argv[0]);
 		/*
-- 
2.14.2



From MAILER-DAEMON Sat Oct 21 09:00:11 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1e5tNr-0000Vt-4V
	for mharc-bug-global@gnu.org; Sat, 21 Oct 2017 09:00:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54977)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <i.tamacom@gmail.com>) id 1e5tNn-0000Sw-2c
	for bug-global@gnu.org; Sat, 21 Oct 2017 09:00:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <i.tamacom@gmail.com>) id 1e5tNl-0001Je-Ur
	for bug-global@gnu.org; Sat, 21 Oct 2017 09:00:07 -0400
Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:48409)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <i.tamacom@gmail.com>) id 1e5tNl-0001HO-Jo
	for bug-global@gnu.org; Sat, 21 Oct 2017 09:00:05 -0400
Received: by mail-lf0-x229.google.com with SMTP id a69so15746988lfe.5
	for <bug-global@gnu.org>; Sat, 21 Oct 2017 06:00:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:sender:in-reply-to:references:from:date:message-id
	:subject:to:cc;
	bh=gXFhC0Im2n+iJtO76fQKQ92YZ3WxGHiZAuO1zCZFKJ4=;
	b=Le/jDW01/vZ5IpeyUkXKh0yjXU61vf1Km3pdpgBr1II0xh+K8Sk/2PymNdxnjiPCnz
	78WRzAyWGVYkamW1pzIWtC+HjGEtifaNkEHm+/99kdpZXa4xKGDzUxuaO/vjfseVsAGL
	jAFjO4fyEE4kvJFf/2WqzvOWzmS0IUlVn8wOfZ+nuScsm9HWzk2AnkZ46bBAVgdX4e0e
	yMfZfOMRzHLlgJ2mJCF3ZUutIyoTr0j4uyOINlel5dcsCJj+SOQ6zetKPJ9PfArozgo7
	1PTqO9B4JLytGQ6d8ThLNwPNjWvwHd1dnfPRcYoQps4tibRlZkLwkx03QR5APGWb7Evk
	j5AA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
	:date:message-id:subject:to:cc;
	bh=gXFhC0Im2n+iJtO76fQKQ92YZ3WxGHiZAuO1zCZFKJ4=;
	b=UqfeIq9UwvU6vuCaHBWGbqnJuq7/VneIoygAaiEmoYalSuivUukR6zU9wiYHkftBJ+
	edMMwjL0Jtp/uXERyu/yQjhtVVFt/oiAf83QtrZ9poo7ttlgVQgFC8Ygbi4geJrXHGaP
	/vC3YmaBtI2Ya9U+y3dpMNrAJkeuvluvuRXkAwYyV5KFc+T88BU2lVyWlaFfEZSIV3QV
	EMXjVjdI2CK+6bD7ofVhBjkFNohAC90yHGKeYfwBh+3YcbtDjhABfCO4sxUeFN8yiLiU
	ZArznhehey9RfbvY9b3TjJV5UzV5I+Fni1ykKzcklLyG+Fg05lNmSPg+7swgtiSd69v/
	fZrg==
X-Gm-Message-State: AMCzsaX78Sa5CibuuzcBLBfsRVoPXnDzsGrbbP/EB9zEVwZuOtpADMH7
	c8ebTrYfHHfwsyHV4NPp70CxsL7uFiLe0OiPU3I=
X-Google-Smtp-Source: ABhQp+TLa7YGLKKIFOsIjqSnGKgDzp5AMArPk8VGHzp1DLEDbZnVKpm49UB/vpegN4saq8aLKsuqAGiAmj8NBKCt1LU=
X-Received: by 10.46.21.78 with SMTP id 14mr3552977ljv.47.1508590802903; Sat,
	21 Oct 2017 06:00:02 -0700 (PDT)
MIME-Version: 1.0
Sender: i.tamacom@gmail.com
Received: by 10.25.72.22 with HTTP; Sat, 21 Oct 2017 06:00:02 -0700 (PDT)
In-Reply-To: <20171021104637.1361-1-punit@debian.org>
References: <20171021104637.1361-1-punit@debian.org>
From: Shigio YAMAGUCHI <shigio@gnu.org>
Date: Sat, 21 Oct 2017 22:00:02 +0900
X-Google-Sender-Auth: E4lkc78_4O_NsnT1JyugsTOORQ8
Message-ID: <CADJmJYrEnoophOioyuST=4gx12aPHTFnsW3gnQXY=+7nZwnLuQ@mail.gmail.com>
Subject: Re: [PATCH] gozilla: More robust input error handling
To: Punit Agrawal <punitagrawal@gmail.com>
Cc: "bug-global@gnu.org" <bug-global@gnu.org>
Content-Type: multipart/alternative; boundary="f403045f72f0eb270c055c0e2ac0"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:4010:c07::229
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global/>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Oct 2017 13:00:08 -0000

--f403045f72f0eb270c055c0e2ac0
Content-Type: text/plain; charset="UTF-8"

Hi Punit,
I have committed your patch.
I feel happy to see GLOBAL in Debian.
Thank you!

Regards,
Shigio


2017-10-21 19:46 GMT+09:00 Punit Agrawal <punitagrawal@gmail.com>:

> From: Punit Agrawal <punitagrawal@gmail.com>
>
> The check for argc only tests if it is zero rather than any value less
> than equal 0. This leads to segmentation fault when fed with invalid
> input (Debian bug #715980).
>
> Fix this by erroring out if argc <= 0.
>
> [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715980
> ---
> Hi,
>
> The debian bug report includes a reproducer. The patch below fixes the
> issue for me and should be considered for upstream inclusion.
>
> Thanks,
> Punit
>
>  gozilla/gozilla.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gozilla/gozilla.c b/gozilla/gozilla.c
> index 22d2a95..050d228 100644
> --- a/gozilla/gozilla.c
> +++ b/gozilla/gozilla.c
> @@ -273,7 +273,7 @@ main(int argc, char **argv)
>          * Replace alias name.
>          */
>         if (definition == NULL) {
> -               if (argc == 0)
> +               if (argc <= 0)
>                         usage();
>                 strbuf_puts(arg, argv[0]);
>                 /*
> --
> 2.14.2
>
>
> _______________________________________________
> Bug-global mailing list
> Bug-global@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-global
>



-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

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

<div dir=3D"ltr"><div>Hi Punit,</div><div>I have committed your patch.</div=
><div>I feel happy to see GLOBAL in Debian.</div><div>Thank you!</div><div>=
<br></div><div>Regards,</div><div>Shigio</div><div><br></div></div><div cla=
ss=3D"gmail_extra"><br><div class=3D"gmail_quote">2017-10-21 19:46 GMT+09:0=
0 Punit Agrawal <span dir=3D"ltr">&lt;<a href=3D"mailto:punitagrawal@gmail.=
com" target=3D"_blank">punitagrawal@gmail.com</a>&gt;</span>:<br><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">From: Punit Agrawal &lt;<a href=3D"mailto:punitagrawal=
@gmail.com">punitagrawal@gmail.com</a>&gt;<br>
<br>
The check for argc only tests if it is zero rather than any value less<br>
than equal 0. This leads to segmentation fault when fed with invalid<br>
input (Debian bug #715980).<br>
<br>
Fix this by erroring out if argc &lt;=3D 0.<br>
<br>
[0] <a href=3D"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D715980" =
rel=3D"noreferrer" target=3D"_blank">https://bugs.debian.org/cgi-<wbr>bin/b=
ugreport.cgi?bug=3D715980</a><br>
---<br>
Hi,<br>
<br>
The debian bug report includes a reproducer. The patch below fixes the<br>
issue for me and should be considered for upstream inclusion.<br>
<br>
Thanks,<br>
Punit<br>
<br>
=C2=A0gozilla/gozilla.c | 2 +-<br>
=C2=A01 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/gozilla/gozilla.c b/gozilla/gozilla.c<br>
index 22d2a95..050d228 100644<br>
--- a/gozilla/gozilla.c<br>
+++ b/gozilla/gozilla.c<br>
@@ -273,7 +273,7 @@ main(int argc, char **argv)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* Replace alias name.<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*/<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (definition =3D=3D NULL) {<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (argc =3D=3D 0)<=
br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (argc &lt;=3D 0)=
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 usage();<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 strbuf_puts(arg, ar=
gv[0]);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /*<br>
<span class=3D"HOEnZb"><font color=3D"#888888">--<br>
2.14.2<br>
<br>
<br>
______________________________<wbr>_________________<br>
Bug-global mailing list<br>
<a href=3D"mailto:Bug-global@gnu.org">Bug-global@gnu.org</a><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/bug-global" rel=3D"norefe=
rrer" target=3D"_blank">https://lists.gnu.org/mailman/<wbr>listinfo/bug-glo=
bal</a><br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r><div class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div di=
r=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=
=3D"ltr"><div dir=3D"ltr">Shigio YAMAGUCHI &lt;<a href=3D"mailto:shigio@gnu=
.org" target=3D"_blank">shigio@gnu.org</a>&gt;</div><div dir=3D"ltr"><div d=
ir=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></d=
iv></div></div>
</div>

--f403045f72f0eb270c055c0e2ac0--


