From MAILER-DAEMON Tue Dec 04 23:45:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg6rE-0000JA-AD
	for mharc-bug-global@gnu.org; Tue, 04 Dec 2012 23:45:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60409)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1Tg5R9-0006Bz-9h
	for bug-global@gnu.org; Tue, 04 Dec 2012 22:14:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1Tg5R7-0001Wt-Vm
	for bug-global@gnu.org; Tue, 04 Dec 2012 22:14:15 -0500
Received: from e28smtp02.in.ibm.com ([122.248.162.2]:47667)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1Tg5R7-0001Wg-Dv
	for bug-global@gnu.org; Tue, 04 Dec 2012 22:14:13 -0500
Received: from /spool/local
	by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use
	Only! Violators will be prosecuted
	for <bug-global@gnu.org> from <aneesh.kumar@linux.vnet.ibm.com>;
	Wed, 5 Dec 2012 08:43:57 +0530
Received: from d28dlp02.in.ibm.com (9.184.220.127)
	by e28smtp02.in.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway:
	Authorized Use Only! Violators will be prosecuted; 
	Wed, 5 Dec 2012 08:43:54 +0530
Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60])
	by d28dlp02.in.ibm.com (Postfix) with ESMTP id 35B643940045;
	Wed,  5 Dec 2012 08:44:05 +0530 (IST)
Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63])
	by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
	qB53E3Sb42467460; Wed, 5 Dec 2012 08:44:03 +0530
Received: from d28av01.in.ibm.com (loopback [127.0.0.1])
	by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id
	qB53E4PJ001889; Wed, 5 Dec 2012 03:14:04 GMT
Received: from skywalker.linux.vnet.ibm.com ([9.79.192.97])
	by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id
	qB53E4dP001883; Wed, 5 Dec 2012 03:14:04 GMT
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Shigio YAMAGUCHI <shigio@gnu.org>
Subject: Re: [Ctags-devel] [Proposal] Combining of Exuberant Ctags and GNU
	GLOBAL.
In-Reply-To: <20121128123559.6f006666.shigio@gnu.org>
References: <201210270615.q9R6FxSi008672@tamacom.com>
	<20121128120955.5f6fd0ab.shigio@gnu.org>
	<20121128123559.6f006666.shigio@gnu.org>
User-Agent: Notmuch/0.14+97~g3977b25 (http://notmuchmail.org) Emacs/24.3.50.1
	(x86_64-unknown-linux-gnu)
Date: Wed, 05 Dec 2012 08:44:04 +0530
Message-ID: <87r4n5dwcj.fsf@linux.vnet.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12120503-5816-0000-0000-000005AF81DD
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From: 122.248.162.2
X-Mailman-Approved-At: Tue, 04 Dec 2012 23:45:14 -0500
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Wed, 05 Dec 2012 03:14:17 -0000

Shigio YAMAGUCHI <shigio@gnu.org> writes:

> Hi,
> Sorry, I forgot the attached file.
> I send only it.
>
> Shigio
>
> On Wed, 28 Nov 2012 12:09:55 +0900
> Shigio YAMAGUCHI <shigio@gnu.org> wrote:
>
>> Hi all,
>> 
>> Since there was no contrary to my proposal :), I have made a patch
>> for ctags to integrate GNU GLOBAL.
>> 
>> Please apply attached patch by the following procedure if you like.
>> I'll make another patch for the latest source code if needed.

I don't see makeSimpleReferenceTag getting called from any where. Did
you miss part of the patch where we used this function ? Or is the patch
partial ?

-aneesh



From MAILER-DAEMON Tue Dec 04 23:45:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg6rE-0000IE-27
	for mharc-bug-global@gnu.org; Tue, 04 Dec 2012 23:45:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40758)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1Tg3xX-0002XW-2N
	for bug-global@gnu.org; Tue, 04 Dec 2012 20:39:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1Tg3xV-0003jq-Qe
	for bug-global@gnu.org; Tue, 04 Dec 2012 20:39:34 -0500
Received: from e28smtp03.in.ibm.com ([122.248.162.3]:54065)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1TfvBN-00064p-2K
	for bug-global@gnu.org; Tue, 04 Dec 2012 11:17:17 -0500
Received: from /spool/local
	by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use
	Only! Violators will be prosecuted
	for <bug-global@gnu.org> from <aneesh.kumar@linux.vnet.ibm.com>;
	Tue, 4 Dec 2012 21:46:56 +0530
Received: from d28dlp03.in.ibm.com (9.184.220.128)
	by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway:
	Authorized Use Only! Violators will be prosecuted; 
	Tue, 4 Dec 2012 21:46:55 +0530
Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59])
	by d28dlp03.in.ibm.com (Postfix) with ESMTP id BBDD3125804C;
	Tue,  4 Dec 2012 21:46:45 +0530 (IST)
Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67])
	by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
	qB4GGwBY29360218; Tue, 4 Dec 2012 21:47:01 +0530
Received: from d28av05.in.ibm.com (loopback [127.0.0.1])
	by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id
	qB4Lkda6016358; Wed, 5 Dec 2012 08:46:39 +1100
Received: from skywalker.linux.vnet.ibm.com ([9.79.213.3])
	by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id
	qB4Lkc3Z016338; Wed, 5 Dec 2012 08:46:39 +1100
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Shigio YAMAGUCHI <shigio@gnu.org>
Subject: Re: [Ctags-devel] [Proposal] Combining of Exuberant Ctags and GNU
	GLOBAL.
In-Reply-To: <20121128123559.6f006666.shigio@gnu.org>
References: <201210270615.q9R6FxSi008672@tamacom.com>
	<20121128120955.5f6fd0ab.shigio@gnu.org>
	<20121128123559.6f006666.shigio@gnu.org>
User-Agent: Notmuch/0.14+97~g3977b25 (http://notmuchmail.org) Emacs/24.3.50.1
	(x86_64-unknown-linux-gnu)
Date: Tue, 04 Dec 2012 21:46:58 +0530
Message-ID: <87d2ypokqt.fsf@linux.vnet.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12120416-3864-0000-0000-000005D924F2
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From: 122.248.162.3
X-Mailman-Approved-At: Tue, 04 Dec 2012 23:45:14 -0500
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Wed, 05 Dec 2012 01:39:37 -0000

Shigio YAMAGUCHI <shigio@gnu.org> writes:

> Hi,
> Sorry, I forgot the attached file.
> I send only it.
>
> Shigio
>
> On Wed, 28 Nov 2012 12:09:55 +0900
> Shigio YAMAGUCHI <shigio@gnu.org> wrote:
>
>> Hi all,
>> 
>> Since there was no contrary to my proposal :), I have made a patch
>> for ctags to integrate GNU GLOBAL.
>> 
>> Please apply attached patch by the following procedure if you like.
>> I'll make another patch for the latest source code if needed.

I am trying to use this patchset and i am not able to find the tag
reference. I also noticied the size of GRTAGS is small.

-rw-r--r-- 1 kvaneesh kvaneesh 232K Dec  4 21:43 GPATH
-rw-r--r-- 1 kvaneesh kvaneesh  16K Dec  4 21:43 GRTAGS
-rw-r--r-- 1 kvaneesh kvaneesh 4.1M Dec  4 21:43 GTAGS

The ps output showing the command args 

kvaneesh  7710  7016  9 21:43 pts/7    00:00:00 gtags --gtagsconf /home/kvaneesh/bin-local/global/share/gtags/gtags.conf --gtagslabel exuberant-ctags -c -v -i -f /tmp/gtags.file
kvaneesh  7713  7710 65 21:43 pts/7    00:00:01 /home/kvaneesh/bin-local/ctags/bin/ctags --langmap=Asm:.asm.ASM.s.S,Asp:.asp.asa,Awk:.awk.gawk.mawk,Basic:.bas.bi.bb.pb,BETA:.bet,C:.c,C++:.c++.cc.cp.cpp.cxx.h.h++.hh.hp.hpp.hxx.C.H,C#:.cs,Cobol:.cbl.cob.CBL.COB,DosBatch:.bat.cmd,Eiffel:.e,Erlang:.erl.ERL.hrl.HRL,Flex:.as.mxml,Fortran:.f.for.ftn.f77.f90.f95.F.FOR.FTN.F77.F90.F95,HTML:.htm.html,Java:.java,JavaScript:.js,Lisp:.cl.clisp.el.l.lisp.lsp,Lua:.lua,MatLab:.m,OCaml:.ml.mli,Pascal:.p.pas,Perl:.pl.pm.plx.perl,PHP:.php.php3.phtml,Python:.py.pyx.pxd.pxi.scons,REXX:.cmd.rexx.rx,Ruby:.rb.ruby,Scheme:.SCM.SM.sch.scheme.scm.sm,Sh:.sh.SH.bsh.bash.ksh.zsh,SLang:.sl,SML:.sml.sig,SQL:.sql,Tcl:.tcl.tk.wish.itcl,Tex:.tex,Vera:.vr.vri.vrh,Verilog:.v,VHDL:.vhdl.vhd,Vim:.vim,YACC:.y --gtags -xu --filter --filter-terminator=###terminator###  --format=1

Without using ctags I get the below file size

-rw-r--r-- 1 kvaneesh kvaneesh 232K Dec  4 21:45 GPATH
-rw-r--r-- 1 kvaneesh kvaneesh  12M Dec  4 21:45 GRTAGS
-rw-r--r-- 1 kvaneesh kvaneesh 3.2M Dec  4 21:45 GTAGS

Any specific config option I am missing ?

-aneesh



From MAILER-DAEMON Wed Dec 05 00:08:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg7DY-0005OX-U1
	for mharc-bug-global@gnu.org; Wed, 05 Dec 2012 00:08:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47118)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tg7DW-0005OP-IS
	for bug-global@gnu.org; Wed, 05 Dec 2012 00:08:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tg7DU-0003aT-Ax
	for bug-global@gnu.org; Wed, 05 Dec 2012 00:08:18 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:59165)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tg7DT-0003aO-RU
	for bug-global@gnu.org; Wed, 05 Dec 2012 00:08:16 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qB558DGd008564;
	Wed, 5 Dec 2012 14:08:13 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Wed, 5 Dec 2012 14:08:12 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: [Ctags-devel] [Proposal] Combining of Exuberant Ctags and GNU
	GLOBAL.
Message-Id: <20121205140812.ed3f2149.shigio@gnu.org>
In-Reply-To: <87r4n5dwcj.fsf@linux.vnet.ibm.com>
References: <201210270615.q9R6FxSi008672@tamacom.com>
	<20121128120955.5f6fd0ab.shigio@gnu.org>
	<20121128123559.6f006666.shigio@gnu.org>
	<87r4n5dwcj.fsf@linux.vnet.ibm.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Wed, 05 Dec 2012 05:08:19 -0000

Hi,
On Wed, 05 Dec 2012 08:44:04 +0530
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:

> I don't see makeSimpleReferenceTag getting called from any where. Did
> you miss part of the patch where we used this function ? Or is the patch
> partial ?
> 
> -aneesh

I only made a mechanism for generating referece tags. You need to write
a parser using the mechanism, that is, makeSimpleReferenceTag().It's very easy.

For example, here is an example which treats references of Scheme language.
(You need to install the CVS version of GLOBAL.)

$ gtags
$ global -x  current-line
current-line       37 scm/error.scm    (define current-line #f)		<= definitions
$ global -xr current-line
current-line       40 scm/error.scm      (set! current-line line))	<= references
current-line       43 scm/error.scm      (set! current-line #f))

Here is a patch to realize above.

*** ctags-5.8/scheme.c	Thu Oct 12 12:26:40 2006
--- ctags-5.8.new/scheme.c	Sun Nov 25 09:46:48 2012
***************
*** 76,81 ****
--- 76,83 ----
  			readIdentifier (name, cp);
  			makeSimpleTag (name, SchemeKinds, K_FUNCTION);
  		}
+ 		while (isspace (*cp))
+ 			cp++;
  		if (cp [0] == '(' &&
  			(cp [1] == 'S' || cp [1] == 's') &&
  			(cp [2] == 'E' || cp [2] == 'e') &&
***************
*** 89,95 ****
  			while (isspace (*cp))
  				cp++;
  			readIdentifier (name, cp);
! 			makeSimpleTag (name, SchemeKinds, K_SET);
  		}
  	}
  	vStringDelete (name);
--- 91,97 ----
  			while (isspace (*cp))
  				cp++;
  			readIdentifier (name, cp);
! 			makeSimpleReferenceTag (name, SchemeKinds, K_SET);
  		}
  	}
  	vStringDelete (name);
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Wed Dec 05 05:08:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgBuV-0003W7-TC
	for mharc-bug-global@gnu.org; Wed, 05 Dec 2012 05:08:59 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52384)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1TgAzb-0002lH-0U
	for bug-global@gnu.org; Wed, 05 Dec 2012 04:10:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1TgAzO-0001Hf-2o
	for bug-global@gnu.org; Wed, 05 Dec 2012 04:10:10 -0500
Received: from e28smtp03.in.ibm.com ([122.248.162.3]:43155)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aneesh.kumar@linux.vnet.ibm.com>) id 1TgAzN-0001HL-Gz
	for bug-global@gnu.org; Wed, 05 Dec 2012 04:09:58 -0500
Received: from /spool/local
	by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use
	Only! Violators will be prosecuted
	for <bug-global@gnu.org> from <aneesh.kumar@linux.vnet.ibm.com>;
	Wed, 5 Dec 2012 14:39:44 +0530
Received: from d28dlp03.in.ibm.com (9.184.220.128)
	by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway:
	Authorized Use Only! Violators will be prosecuted; 
	Wed, 5 Dec 2012 14:39:42 +0530
Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60])
	by d28dlp03.in.ibm.com (Postfix) with ESMTP id 63D7A125804C;
	Wed,  5 Dec 2012 14:39:34 +0530 (IST)
Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66])
	by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
	qB599mfZ37683304; Wed, 5 Dec 2012 14:39:48 +0530
Received: from d28av04.in.ibm.com (loopback [127.0.0.1])
	by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id
	qB599nvn015129; Wed, 5 Dec 2012 20:09:49 +1100
Received: from skywalker.linux.vnet.ibm.com (skywalker.in.ibm.com
	[9.124.35.157])
	by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id
	qB599n1s015076; Wed, 5 Dec 2012 20:09:49 +1100
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Shigio YAMAGUCHI <shigio@gnu.org>
Subject: Re: [Ctags-devel] [Proposal] Combining of Exuberant Ctags and GNU
	GLOBAL.
In-Reply-To: <20121205140812.ed3f2149.shigio@gnu.org>
References: <201210270615.q9R6FxSi008672@tamacom.com>
	<20121128120955.5f6fd0ab.shigio@gnu.org>
	<20121128123559.6f006666.shigio@gnu.org>
	<87r4n5dwcj.fsf@linux.vnet.ibm.com>
	<20121205140812.ed3f2149.shigio@gnu.org>
User-Agent: Notmuch/0.14+97~g3977b25 (http://notmuchmail.org) Emacs/24.3.50.1
	(x86_64-unknown-linux-gnu)
Date: Wed, 05 Dec 2012 14:39:48 +0530
Message-ID: <87ip8geug3.fsf@linux.vnet.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12120509-3864-0000-0000-000005DBD0EA
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From: 122.248.162.3
X-Mailman-Approved-At: Wed, 05 Dec 2012 05:08:58 -0500
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Wed, 05 Dec 2012 09:10:13 -0000

Shigio YAMAGUCHI <shigio@gnu.org> writes:

> Hi,
> On Wed, 05 Dec 2012 08:44:04 +0530
> "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
>
>> I don't see makeSimpleReferenceTag getting called from any where. Did
>> you miss part of the patch where we used this function ? Or is the patch
>> partial ?
>> 
>> -aneesh
>
> I only made a mechanism for generating referece tags. You need to write
> a parser using the mechanism, that is, makeSimpleReferenceTag().It's very easy.
>
> For example, here is an example which treats references of Scheme language.
> (You need to install the CVS version of GLOBAL.)
>

Do you have similar change for C language parser. 

-aneesh



From MAILER-DAEMON Wed Dec 05 05:28:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgCDe-0000cZ-0W
	for mharc-bug-global@gnu.org; Wed, 05 Dec 2012 05:28:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39442)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TgCDW-0000b9-IQ
	for bug-global@gnu.org; Wed, 05 Dec 2012 05:28:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TgCDS-0002aJ-8B
	for bug-global@gnu.org; Wed, 05 Dec 2012 05:28:38 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:62857)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TgCDR-0002aC-On
	for bug-global@gnu.org; Wed, 05 Dec 2012 05:28:34 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qB5ASVX8031106;
	Wed, 5 Dec 2012 19:28:31 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Wed, 5 Dec 2012 19:28:29 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: [Ctags-devel] [Proposal] Combining of Exuberant Ctags and GNU
	GLOBAL.
Message-Id: <20121205192829.38c9ee20.shigio@gnu.org>
In-Reply-To: <87ip8geug3.fsf@linux.vnet.ibm.com>
References: <201210270615.q9R6FxSi008672@tamacom.com>
	<20121128120955.5f6fd0ab.shigio@gnu.org>
	<20121128123559.6f006666.shigio@gnu.org>
	<87r4n5dwcj.fsf@linux.vnet.ibm.com>
	<20121205140812.ed3f2149.shigio@gnu.org>
	<87ip8geug3.fsf@linux.vnet.ibm.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Wed, 05 Dec 2012 10:28:45 -0000

On Wed, 05 Dec 2012 14:39:48 +0530
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:

> > I only made a mechanism for generating referece tags. You need to write
> > a parser using the mechanism, that is, makeSimpleReferenceTag().It's very easy.
> >
> > For example, here is an example which treats references of Scheme language.
> > (You need to install the CVS version of GLOBAL.)
> >
> 
> Do you have similar change for C language parser. 

No, I don't.
Scheme's patch is only an example which is not suitable for practical use.
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Thu Dec 13 04:44:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tj5LJ-0003qj-Ax
	for mharc-bug-global@gnu.org; Thu, 13 Dec 2012 04:44:37 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40455)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>) id 1Tj5As-0008KP-VO
	for bug-global@gnu.org; Thu, 13 Dec 2012 04:33:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>) id 1Tj5Aq-0008Pw-Dw
	for bug-global@gnu.org; Thu, 13 Dec 2012 04:33:50 -0500
Received: from mail-vc0-f169.google.com ([209.85.220.169]:39911)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>) id 1Tj5Aq-0008Pj-1b
	for bug-global@gnu.org; Thu, 13 Dec 2012 04:33:48 -0500
Received: by mail-vc0-f169.google.com with SMTP id gb23so1947516vcb.0
	for <bug-global@gnu.org>; Thu, 13 Dec 2012 01:33:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=WAcfFG38ED19wqVMWEkWr947UbP6duJjYiPoWH5w3JE=;
	b=jt7CL+b4sAGYpFxCxRiiEhFrGbSJwZz2WKGIQ45GngkuKCMz/jvF4FmA6d0yF8cZ0S
	0O7KsoK7Vlc15HVqeuM5fxix9Fn9WSFeGjJz5jv3F5T2yFn9LbYxoyL6c+LF2ttWf3Fu
	3jlfp7uaHCqC/4ZgyLI2CUNUX3ixop2CYI9txb8+0aycyFr5bH+ZLmylZrivxFYvbzZP
	9afWSod5znd8KHwMZeIsS0ms4/xKzbGRbjRCuBYkSYI2V4H3f6U4B/SJpTHIFdsnAe83
	840k0eYlNCNg3n3X76wF5VoyKMK3O4oZ9liQkNOveZqfqHCa8BGjlD2PKuxa9D59w4Ag
	tAkQ==
MIME-Version: 1.0
Received: by 10.59.13.197 with SMTP id fa5mr1981332ved.47.1355391226749; Thu,
	13 Dec 2012 01:33:46 -0800 (PST)
Received: by 10.59.9.98 with HTTP; Thu, 13 Dec 2012 01:33:46 -0800 (PST)
Date: Thu, 13 Dec 2012 11:33:46 +0200
Message-ID: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
Subject: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
From: Alexander Gusak <fami.alex.lom@gmail.com>
To: bug-global@gnu.org
Content-Type: multipart/alternative; boundary=089e0118499c9a240104d0b89c76
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.169
X-Mailman-Approved-At: Thu, 13 Dec 2012 04:44:34 -0500
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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, 13 Dec 2012 09:33:55 -0000

--089e0118499c9a240104d0b89c76
Content-Type: text/plain; charset=UTF-8

Hello,

I'm using GNU GLOBAL version 6.2.6 on 32-bit Ubuntu 12.04 and trying to
extract tags for google's v8:

familom@familom-work:~/src$ svn checkout http://v8.googlecode.com/svn/trunk/v8
<skipped>
Checked out revision 13212.
familom@familom-work:~/src$ cd v8
familom@familom-work:~/src/v8$ GTAGSFORCECPP=1 gtags .
Segmentation fault (core dumped)
familom@familom-work:~/src/v8$ GTAGSFORCECPP=1 gtags . --verbose
<skipped>
 [154] extracting tags of src/ia32/lithium-ia32.h
Segmentation fault (core dumped)

I'm able to reproduce the issue with GNU GLOBAL 6.2.4 as well.
-- 
Best regards,
Alexander.

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

Hello,<br><br>I&#39;m using GNU GLOBAL version 6.2.6 on 32-bit Ubuntu 12.04=
 and trying to extract tags for google&#39;s v8:<br clear=3D"all"><br><span=
 style=3D"font-family:courier new,monospace">familom@familom-work:~/src$ sv=
n checkout <a href=3D"http://v8.googlecode.com/svn/trunk/">http://v8.google=
code.com/svn/trunk/</a> v8<br>
&lt;skipped&gt;<br>Checked out revision 13212.<br>familom@familom-work:~/sr=
c$ cd v8<br>familom@familom-work:~/src/v8$ GTAGSFORCECPP=3D1 gtags .<br>Seg=
mentation fault (core dumped)<br>familom@familom-work:~/src/v8$ GTAGSFORCEC=
PP=3D1 gtags . --verbose<br>
&lt;skipped&gt;<br>=C2=A0[154] extracting tags of src/ia32/lithium-ia32.h<b=
r>Segmentation fault (core dumped)<br></span><br>I&#39;m able to reproduce =
the issue with GNU GLOBAL 6.2.4 as well.<br>-- <br>Best regards,<br>Alexand=
er.<br>


--089e0118499c9a240104d0b89c76--


From MAILER-DAEMON Thu Dec 13 05:12:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tj5me-0001XH-CR
	for mharc-bug-global@gnu.org; Thu, 13 Dec 2012 05:12:52 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50153)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tj5mb-0001Wf-21
	for bug-global@gnu.org; Thu, 13 Dec 2012 05:12:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tj5mW-0003Lr-1t
	for bug-global@gnu.org; Thu, 13 Dec 2012 05:12:48 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:55102)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tj5mV-0003LJ-I3
	for bug-global@gnu.org; Thu, 13 Dec 2012 05:12:43 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qBDACdMQ026276;
	Thu, 13 Dec 2012 19:12:39 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Thu, 13 Dec 2012 19:12:38 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: Alexander Gusak <fami.alex.lom@gmail.com>
Subject: Re: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
Message-Id: <20121213191238.bd0157c7.shigio@gnu.org>
In-Reply-To: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
References: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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, 13 Dec 2012 10:12:50 -0000

Hi,
Could you please send the file which causes the problem?

On Thu, 13 Dec 2012 11:33:46 +0200
Alexander Gusak <fami.alex.lom@gmail.com> wrote:

> Hello,
> 
> I'm using GNU GLOBAL version 6.2.6 on 32-bit Ubuntu 12.04 and trying to
> extract tags for google's v8:
> 
> familom@familom-work:~/src$ svn checkout http://v8.googlecode.com/svn/trunk/v8
> <skipped>
> Checked out revision 13212.
> familom@familom-work:~/src$ cd v8
> familom@familom-work:~/src/v8$ GTAGSFORCECPP=1 gtags .
> Segmentation fault (core dumped)
> familom@familom-work:~/src/v8$ GTAGSFORCECPP=1 gtags . --verbose
> <skipped>
>  [154] extracting tags of src/ia32/lithium-ia32.h
> Segmentation fault (core dumped)
> 
> I'm able to reproduce the issue with GNU GLOBAL 6.2.4 as well.
> -- 
> Best regards,
> Alexander.
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Thu Dec 13 21:50:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjLM1-0004zk-8k
	for mharc-bug-global@gnu.org; Thu, 13 Dec 2012 21:50:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47006)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjLLy-0004zH-75
	for bug-global@gnu.org; Thu, 13 Dec 2012 21:50:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjLLu-0007ds-Sv
	for bug-global@gnu.org; Thu, 13 Dec 2012 21:50:22 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:56123)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjLLu-0007ce-Co
	for bug-global@gnu.org; Thu, 13 Dec 2012 21:50:18 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qBE2oD5p012488;
	Fri, 14 Dec 2012 11:50:13 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Fri, 14 Dec 2012 11:50:12 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: Alexander Gusak <fami.alex.lom@gmail.com>
Subject: Re: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
Message-Id: <20121214115012.e435b9c8.shigio@gnu.org>
In-Reply-To: <CAPBey+LEVJ9z7M2eejHD=NstFzbkGDc7GKkgAGJYZ7=gOpQiGw@mail.gmail.com>
References: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
	<20121213191238.bd0157c7.shigio@gnu.org>
	<CAPBey+LEVJ9z7M2eejHD=NstFzbkGDc7GKkgAGJYZ7=gOpQiGw@mail.gmail.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 14 Dec 2012 02:50:23 -0000

On Thu, 13 Dec 2012 12:16:27 +0200
Alexander Gusak <fami.alex.lom@gmail.com> wrote:

> Hi,
> 
> I've attached lithium-ia32.h from v8/src/ia32/.

Thank you for sending the file.
I believe I have fixed the bug. Would you please try the following patch ?

Thank you in advance.

Index: Cpp.c
===================================================================
RCS file: /sources/global/global/libparser/Cpp.c,v
retrieving revision 1.8
diff -c -r1.8 Cpp.c
*** Cpp.c	13 Oct 2012 07:01:22 -0000	1.8
--- Cpp.c	14 Dec 2012 02:24:47 -0000
***************
*** 72,77 ****
--- 72,78 ----
  	int startclass, startthrow, startmacro, startsharp, startequal;
  	char classname[MAXTOKEN];
  	char completename[MAXCOMPLETENAME];
+ 	char *completename_limit = &completename[sizeof(completename)];
  	int classlevel;
  	struct {
  		char *classname;
***************
*** 209,218 ****
  
  				if (++classlevel >= MAXCLASSSTACK)
  					die("class stack over flow.[%s]", curfile);
! 				if (classlevel > 1)
  					*p++ = '.';
  				stack[classlevel].classname = p;
! 				while (*q)
  					*p++ = *q++;
  				stack[classlevel].terminate = p;
  				stack[classlevel].level = level;
--- 210,219 ----
  
  				if (++classlevel >= MAXCLASSSTACK)
  					die("class stack over flow.[%s]", curfile);
! 				if (classlevel > 1 && p < completename_limit)
  					*p++ = '.';
  				stack[classlevel].classname = p;
! 				while (*q && p < completename_limit)
  					*p++ = *q++;
  				stack[classlevel].terminate = p;
  				stack[classlevel].level = level;
***************
*** 614,622 ****
  		else if (c == '{' /* } */) {
  			pushbacktoken();
  			return 1;
! 		} else if (c == /* { */'}')
  			break;
! 		else if (c == '=')
  			break;
  		/* pick up symbol */
  		if (c == SYMBOL)
--- 615,624 ----
  		else if (c == '{' /* } */) {
  			pushbacktoken();
  			return 1;
! 		} else if (c == /* { */'}') {
! 			pushbacktoken();
  			break;
! 		} else if (c == '=')
  			break;
  		/* pick up symbol */
  		if (c == SYMBOL)

-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Fri Dec 14 06:42:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjTf3-0001Bm-2w
	for mharc-bug-global@gnu.org; Fri, 14 Dec 2012 06:42:37 -0500
Received: from eggs.gnu.org ([208.118.235.92]:49145)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjTez-0001BW-Mh
	for bug-global@gnu.org; Fri, 14 Dec 2012 06:42:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjTex-00019t-88
	for bug-global@gnu.org; Fri, 14 Dec 2012 06:42:33 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:56442)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjTew-00019p-IV
	for bug-global@gnu.org; Fri, 14 Dec 2012 06:42:31 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qBEBgQSv041067;
	Fri, 14 Dec 2012 20:42:26 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Fri, 14 Dec 2012 20:42:24 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: Alexander Gusak <fami.alex.lom@gmail.com>
Subject: Re: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
Message-Id: <20121214204224.5397281c.shigio@gnu.org>
In-Reply-To: <CAPBey+J=nLVBCiQW3Jt0=GNFB=994HRq1v=9BxsW+3Y9xb-jHQ@mail.gmail.com>
References: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
	<20121213191238.bd0157c7.shigio@gnu.org>
	<CAPBey+LEVJ9z7M2eejHD=NstFzbkGDc7GKkgAGJYZ7=gOpQiGw@mail.gmail.com>
	<20121214115012.e435b9c8.shigio@gnu.org>
	<CAPBey+J=nLVBCiQW3Jt0=GNFB=994HRq1v=9BxsW+3Y9xb-jHQ@mail.gmail.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="Multipart=_Fri__14_Dec_2012_20_42_24_+0900_WW+hy6ybaK4BL4um"
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 14 Dec 2012 11:42:36 -0000

This is a multi-part message in MIME format.

--Multipart=_Fri__14_Dec_2012_20_42_24_+0900_WW+hy6ybaK4BL4um
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

On Fri, 14 Dec 2012 12:39:50 +0200
Alexander Gusak <fami.alex.lom@gmail.com> wrote:

> Hi Shigio,
> 
> I can't apply your patch:
> 
> familom@familom-work:~/src/global-6.2.6/libparser$ patch -p0 < fix.patch
> patching file Cpp.c
> Hunk #1 FAILED at 72.
> Hunk #2 FAILED at 209.
> Hunk #3 FAILED at 614.
> 3 out of 3 hunks FAILED -- saving rejects to file Cpp.c.rej
> -- 
> Best regards,
> Alexander.

OK. I attached modified Cpp.c in this mail.

By the way, could you please use 'Cc: bug-global@gnu.org'?
Maybe, you can do it by 'replay all' of your mail client.
Thank you.
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

--Multipart=_Fri__14_Dec_2012_20_42_24_+0900_WW+hy6ybaK4BL4um
Content-Type: text/x-csrc;
 name="Cpp.c"
Content-Disposition: attachment;
 filename="Cpp.c"
Content-Transfer-Encoding: 7bit

/*
 * Copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
 *	2010
 *	Tama Communications Corporation
 *
 * This file is part of GNU GLOBAL.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif

#include "internal.h"
#include "die.h"
#include "strbuf.h"
#include "strlimcpy.h"
#include "token.h"
#include "cpp_res.h"

static void process_attribute(const struct parser_param *);
static int function_definition(const struct parser_param *);
static void condition_macro(const struct parser_param *, int);
static int enumerator_list(const struct parser_param *);

		/** max size of complete name of class */
#define MAXCOMPLETENAME 1024
		/** max size of class stack */
#define MAXCLASSSTACK   100
#define IS_CV_QUALIFIER(c)      ((c) == CPP_CONST || (c) == CPP_VOLATILE)

#define MAXPIFSTACK	100

/**
 * @name #ifdef stack.
 */

static struct {
	short start;		/**< level when @CODE{\#if} block started */
	short end;		/**< level when @CODE{\#if} block end */
	short if0only;		/**< @CODE{\#if 0} or notdef only */
} pifstack[MAXPIFSTACK], *cur;
static int piflevel;		/**< condition macro level */
static int level;		/**< brace level */
static int namespacelevel;	/**< namespace block level */

/**
 * Cpp: read C++ file and pickup tag entries.
 */
void
Cpp(const struct parser_param *param)
{
	int c, cc;
	int savelevel;
	int startclass, startthrow, startmacro, startsharp, startequal;
	char classname[MAXTOKEN];
	char completename[MAXCOMPLETENAME];
	char *completename_limit = &completename[sizeof(completename)];
	int classlevel;
	struct {
		char *classname;
		char *terminate;
		int level;
	} stack[MAXCLASSSTACK];
	const char *interested = "{}=;~";
	STRBUF *sb = strbuf_open(0);

	*classname = *completename = 0;
	stack[0].classname = completename;
	stack[0].terminate = completename;
	stack[0].level = 0;
	level = classlevel = piflevel = namespacelevel = 0;
	savelevel = -1;
	startclass = startthrow = startmacro = startsharp = startequal = 0;

	if (!opentoken(param->file))
		die("'%s' cannot open.", param->file);
	cmode = 1;			/* allow token like '#xxx' */
	crflag = 1;			/* require '\n' as a token */
	cppmode = 1;			/* treat '::' as a token */

	while ((cc = nexttoken(interested, cpp_reserved_word)) != EOF) {
		if (cc == '~' && level == stack[classlevel].level)
			continue;
		switch (cc) {
		case SYMBOL:		/* symbol	*/
			if (startclass || startthrow) {
				PUT(PARSER_REF_SYM, token, lineno, sp);
			} else if (peekc(0) == '('/* ) */) {
				if (param->isnotfunction(token)) {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				} else if (level > stack[classlevel].level || startequal || startmacro) {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				} else if (level == stack[classlevel].level && !startmacro && !startsharp && !startequal) {
					char savetok[MAXTOKEN], *saveline;
					int savelineno = lineno;

					strlimcpy(savetok, token, sizeof(savetok));
					strbuf_reset(sb);
					strbuf_puts(sb, sp);
					saveline = strbuf_value(sb);
					if (function_definition(param)) {
						/* ignore constructor */
						if (strcmp(stack[classlevel].classname, savetok))
							PUT(PARSER_DEF, savetok, savelineno, saveline);
					} else {
						PUT(PARSER_REF_SYM, savetok, savelineno, saveline);
					}
				}
			} else {
				PUT(PARSER_REF_SYM, token, lineno, sp);
			}
			break;
		case CPP_USING:
			/*
			 * using namespace name;
			 * using ...;
			 */
			if ((c = nexttoken(interested, cpp_reserved_word)) == CPP_NAMESPACE) {
				if ((c = nexttoken(interested, cpp_reserved_word)) == SYMBOL) {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				} else {
					if (param->flags & PARSER_WARNING)
						warning("missing namespace name. [+%d %s].", lineno, curfile);
					pushbacktoken();
				}
			} else
				pushbacktoken();
			break;
		case CPP_NAMESPACE:
			crflag = 0;
			/*
			 * namespace name = ...;
			 * namespace [name] { ... }
			 */
			if ((c = nexttoken(interested, cpp_reserved_word)) == SYMBOL) {
				PUT(PARSER_DEF, token, lineno, sp);
				if ((c = nexttoken(interested, cpp_reserved_word)) == '=') {
					crflag = 1;
					break;
				}
			}
			/*
			 * Namespace block doesn't have any influence on level.
			 */
			if (c == '{') /* } */ {
				namespacelevel++;
			} else {
				if (param->flags & PARSER_WARNING)
					warning("missing namespace block. [+%d %s](0x%x).", lineno, curfile, c);
			}
			crflag = 1;
			break;
		case CPP_EXTERN: /* for 'extern "C"/"C++"' */
			if (peekc(0) != '"') /* " */
				continue; /* If does not start with '"', continue. */
			while ((c = nexttoken(interested, cpp_reserved_word)) == '\n')
				;
			/*
			 * 'extern "C"/"C++"' block is a kind of namespace block.
			 * (It doesn't have any influence on level.)
			 */
			if (c == '{') /* } */
				namespacelevel++;
			else
				pushbacktoken();
			break;
		case CPP_CLASS:
			DBG_PRINT(level, "class");
			if ((c = nexttoken(interested, cpp_reserved_word)) == SYMBOL) {
				strlimcpy(classname, token, sizeof(classname));
				/*
				 * Ignore forward definitions.
				 * "class name;"
				 */
				if (peekc(0) != ';') {
					startclass = 1;
					PUT(PARSER_DEF, token, lineno, sp);
				}
			}
			break;
		case '{':  /* } */
			DBG_PRINT(level, "{"); /* } */
			++level;
			if ((param->flags & PARSER_BEGIN_BLOCK) && atfirst) {
				if ((param->flags & PARSER_WARNING) && level != 1)
					warning("forced level 1 block start by '{' at column 0 [+%d %s].", lineno, curfile); /* } */
				level = 1;
			}
			if (startclass) {
				char *p = stack[classlevel].terminate;
				char *q = classname;

				if (++classlevel >= MAXCLASSSTACK)
					die("class stack over flow.[%s]", curfile);
				if (classlevel > 1 && p < completename_limit)
					*p++ = '.';
				stack[classlevel].classname = p;
				while (*q && p < completename_limit)
					*p++ = *q++;
				stack[classlevel].terminate = p;
				stack[classlevel].level = level;
				*p++ = 0;
			}
			startclass = startthrow = 0;
			break;
			/* { */
		case '}':
			if (--level < 0) {
				if (namespacelevel > 0)
					namespacelevel--;
				else if (param->flags & PARSER_WARNING)
					warning("missing left '{' [+%d %s].", lineno, curfile); /* } */
				level = 0;
			}
			if ((param->flags & PARSER_END_BLOCK) && atfirst) {
				if ((param->flags & PARSER_WARNING) && level != 0)
					/* { */
					warning("forced level 0 block end by '}' at column 0 [+%d %s].", lineno, curfile);
				level = 0;
			}
			if (level < stack[classlevel].level)
				*(stack[--classlevel].terminate) = 0;
			/* { */
			DBG_PRINT(level, "}");
			break;
		case '=':
			/* dirty hack. Don't mimic this. */
			if (peekc(0) == '=') {
				throwaway_nextchar();
			} else {
				startequal = 1;
			}
			break;
		case ';':
			startthrow = startequal = 0;
			break;
		case '\n':
			if (startmacro && level != savelevel) {
				if (param->flags & PARSER_WARNING)
					warning("different level before and after #define macro. reseted. [+%d %s].", lineno, curfile);
				level = savelevel;
			}
			startmacro = startsharp = 0;
			break;
		/*
		 * #xxx
		 */
		case SHARP_DEFINE:
		case SHARP_UNDEF:
			startmacro = 1;
			savelevel = level;
			if ((c = nexttoken(interested, cpp_reserved_word)) != SYMBOL) {
				pushbacktoken();
				break;
			}
			if (peekc(1) == '('/* ) */) {
				PUT(PARSER_DEF, token, lineno, sp);
				while ((c = nexttoken("()", cpp_reserved_word)) != EOF && c != '\n' && c != /* ( */ ')')
					if (c == SYMBOL)
						PUT(PARSER_REF_SYM, token, lineno, sp);
				if (c == '\n')
					pushbacktoken();
			}  else {
				PUT(PARSER_DEF, token, lineno, sp);
			}
			break;
		case SHARP_IMPORT:
		case SHARP_INCLUDE:
		case SHARP_INCLUDE_NEXT:
		case SHARP_ERROR:
		case SHARP_LINE:
		case SHARP_PRAGMA:
		case SHARP_WARNING:
		case SHARP_IDENT:
		case SHARP_SCCS:
			while ((c = nexttoken(interested, cpp_reserved_word)) != EOF && c != '\n')
				;
			break;
		case SHARP_IFDEF:
		case SHARP_IFNDEF:
		case SHARP_IF:
		case SHARP_ELIF:
		case SHARP_ELSE:
		case SHARP_ENDIF:
			condition_macro(param, cc);
			break;
		case SHARP_SHARP:		/* ## */
			(void)nexttoken(interested, cpp_reserved_word);
			break;
		case CPP_NEW:
			if ((c = nexttoken(interested, cpp_reserved_word)) == SYMBOL)
				PUT(PARSER_REF_SYM, token, lineno, sp);
			break;
		case CPP_STRUCT:
		case CPP_ENUM:
		case CPP_UNION:
			while ((c = nexttoken(interested, cpp_reserved_word)) == CPP___ATTRIBUTE__)
				process_attribute(param);
			if (c == SYMBOL) {
				if (peekc(0) == '{') /* } */ {
					PUT(PARSER_DEF, token, lineno, sp);
				} else {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				}
				c = nexttoken(interested, cpp_reserved_word);
			}
			if (c == '{' /* } */ && cc == CPP_ENUM) {
				enumerator_list(param);
			} else {
				pushbacktoken();
			}
			break;
		case CPP_TEMPLATE:
			{
				int level = 0;

				while ((c = nexttoken("<>", cpp_reserved_word)) != EOF) {
					if (c == '<')
						++level;
					else if (c == '>') {
						if (--level == 0)
							break;
					} else if (c == SYMBOL) {
						PUT(PARSER_REF_SYM, token, lineno, sp);
					}
				}
				if (c == EOF && (param->flags & PARSER_WARNING))
					warning("template <...> isn't closed. [+%d %s].", lineno, curfile);
			}
			break;
		case CPP_OPERATOR:
			while ((c = nexttoken(";{", /* } */ cpp_reserved_word)) != EOF) {
				if (c == '{') /* } */ {
					pushbacktoken();
					break;
				} else if (c == ';') {
					break;
				} else if (c == SYMBOL) {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				}
			}
			if (c == EOF && (param->flags & PARSER_WARNING))
				warning("'{' doesn't exist after 'operator'. [+%d %s].", lineno, curfile); /* } */
			break;
		/* control statement check */
		case CPP_THROW:
			startthrow = 1;
		case CPP_BREAK:
		case CPP_CASE:
		case CPP_CATCH:
		case CPP_CONTINUE:
		case CPP_DEFAULT:
		case CPP_DELETE:
		case CPP_DO:
		case CPP_ELSE:
		case CPP_FOR:
		case CPP_GOTO:
		case CPP_IF:
		case CPP_RETURN:
		case CPP_SWITCH:
		case CPP_TRY:
		case CPP_WHILE:
			if ((param->flags & PARSER_WARNING) && !startmacro && level == 0)
				warning("Out of function. %8s [+%d %s]", token, lineno, curfile);
			break;
		case CPP_TYPEDEF:
			{
				/*
				 * This parser is too complex to maintain.
				 * We should rewrite the whole.
				 */
				char savetok[MAXTOKEN];
				int savelineno = 0;
				int typedef_savelevel = level;

				savetok[0] = 0;

				/* skip CV qualifiers */
				do {
					c = nexttoken("{}(),;", cpp_reserved_word);
				} while (IS_CV_QUALIFIER(c) || c == '\n');

				if ((param->flags & PARSER_WARNING) && c == EOF) {
					warning("unexpected eof. [+%d %s]", lineno, curfile);
					break;
				} else if (c == CPP_ENUM || c == CPP_STRUCT || c == CPP_UNION) {
					char *interest_enum = "{},;";
					int c_ = c;

					while ((c = nexttoken(interest_enum, cpp_reserved_word)) == CPP___ATTRIBUTE__)
						process_attribute(param);
					/* read tag name if exist */
					if (c == SYMBOL) {
						if (peekc(0) == '{') /* } */ {
							PUT(PARSER_DEF, token, lineno, sp);
						} else {
							PUT(PARSER_REF_SYM, token, lineno, sp);
						}
						c = nexttoken(interest_enum, cpp_reserved_word);
					}
					if (c_ == CPP_ENUM) {
						if (c == '{') /* } */
							c = enumerator_list(param);
						else
							pushbacktoken();
					} else {
						for (; c != EOF; c = nexttoken(interest_enum, cpp_reserved_word)) {
							switch (c) {
							case SHARP_IFDEF:
							case SHARP_IFNDEF:
							case SHARP_IF:
							case SHARP_ELIF:
							case SHARP_ELSE:
							case SHARP_ENDIF:
								condition_macro(param, c);
								continue;
							default:
								break;
							}
							if (c == ';' && level == typedef_savelevel) {
								if (savetok[0])
									PUT(PARSER_DEF, savetok, savelineno, sp);
								break;
							} else if (c == '{')
								level++;
							else if (c == '}') {
								if (--level == typedef_savelevel)
									break;
							} else if (c == SYMBOL) {
								PUT(PARSER_REF_SYM, token, lineno, sp);
								/* save lastest token */
								strlimcpy(savetok, token, sizeof(savetok));
								savelineno = lineno;
							}
						}
						if (c == ';')
							break;
					}
					if ((param->flags & PARSER_WARNING) && c == EOF) {
						warning("unexpected eof. [+%d %s]", lineno, curfile);
						break;
					}
				} else if (c == SYMBOL) {
					PUT(PARSER_REF_SYM, token, lineno, sp);
				}
				savetok[0] = 0;
				while ((c = nexttoken("(),;", cpp_reserved_word)) != EOF) {
					switch (c) {
					case SHARP_IFDEF:
					case SHARP_IFNDEF:
					case SHARP_IF:
					case SHARP_ELIF:
					case SHARP_ELSE:
					case SHARP_ENDIF:
						condition_macro(param, c);
						continue;
					default:
						break;
					}
					if (c == '(')
						level++;
					else if (c == ')')
						level--;
					else if (c == SYMBOL) {
						if (level > typedef_savelevel) {
							PUT(PARSER_REF_SYM, token, lineno, sp);
						} else {
							/* put latest token if any */
							if (savetok[0]) {
								PUT(PARSER_REF_SYM, savetok, savelineno, sp);
							}
							/* save lastest token */
							strlimcpy(savetok, token, sizeof(savetok));
							savelineno = lineno;
						}
					} else if (c == ',' || c == ';') {
						if (savetok[0]) {
							PUT(PARSER_DEF, savetok, lineno, sp);
							savetok[0] = 0;
						}
					}
					if (level == typedef_savelevel && c == ';')
						break;
				}
				if (param->flags & PARSER_WARNING) {
					if (c == EOF)
						warning("unexpected eof. [+%d %s]", lineno, curfile);
					else if (level != typedef_savelevel)
						warning("unmatched () block. (last at level %d.)[+%d %s]", level, lineno, curfile);
				}
			}
			break;
		case CPP___ATTRIBUTE__:
			process_attribute(param);
			break;
		default:
			break;
		}
	}
	strbuf_close(sb);
	if (param->flags & PARSER_WARNING) {
		if (level != 0)
			warning("unmatched {} block. (last at level %d.)[+%d %s]", level, lineno, curfile);
		if (piflevel != 0)
			warning("unmatched #if block. (last at level %d.)[+%d %s]", piflevel, lineno, curfile);
	}
	closetoken();
}
/**
 * process_attribute: skip attributes in @CODE{__attribute__((...))}.
 */
static void
process_attribute(const struct parser_param *param)
{
	int brace = 0;
	int c;
	/*
	 * Skip '...' in __attribute__((...))
	 * but pick up symbols in it.
	 */
	while ((c = nexttoken("()", cpp_reserved_word)) != EOF) {
		if (c == '(')
			brace++;
		else if (c == ')')
			brace--;
		else if (c == SYMBOL) {
			PUT(PARSER_REF_SYM, token, lineno, sp);
		}
		if (brace == 0)
			break;
	}
}
/**
 * function_definition: return if function definition or not.
 *
 *	@return	target type
 */
static int
function_definition(const struct parser_param *param)
{
	int c;
	int brace_level;

	brace_level = 0;
	while ((c = nexttoken("()", cpp_reserved_word)) != EOF) {
		switch (c) {
		case SHARP_IFDEF:
		case SHARP_IFNDEF:
		case SHARP_IF:
		case SHARP_ELIF:
		case SHARP_ELSE:
		case SHARP_ENDIF:
			condition_macro(param, c);
			continue;
		default:
			break;
		}
		if (c == '('/* ) */)
			brace_level++;
		else if (c == /* ( */')') {
			if (--brace_level == 0)
				break;
		}
		/* pick up symbol */
		if (c == SYMBOL)
			PUT(PARSER_REF_SYM, token, lineno, sp);
	}
	if (c == EOF)
		return 0;
	if (peekc(0) == ';') {
		(void)nexttoken(";", NULL);
		return 0;
	}
	brace_level = 0;
	while ((c = nexttoken(",;[](){}=", cpp_reserved_word)) != EOF) {
		switch (c) {
		case SHARP_IFDEF:
		case SHARP_IFNDEF:
		case SHARP_IF:
		case SHARP_ELIF:
		case SHARP_ELSE:
		case SHARP_ENDIF:
			condition_macro(param, c);
			continue;
		case CPP___ATTRIBUTE__:
			process_attribute(param);
			continue;
		default:
			break;
		}
		if (c == '('/* ) */ || c == '[')
			brace_level++;
		else if (c == /* ( */')' || c == ']')
			brace_level--;
		else if (brace_level == 0 && (c == ';' || c == ','))
			break;
		else if (c == '{' /* } */) {
			pushbacktoken();
			return 1;
		} else if (c == /* { */'}') {
			pushbacktoken();
			break;
		} else if (c == '=')
			break;
		/* pick up symbol */
		if (c == SYMBOL)
			PUT(PARSER_REF_SYM, token, lineno, sp);
	}
	return 0;
}

/**
 * condition_macro: 
 *
 *	@param[in]	param
 *	@param[in]	cc	token
 */
static void
condition_macro(const struct parser_param *param, int cc)
{
	cur = &pifstack[piflevel];
	if (cc == SHARP_IFDEF || cc == SHARP_IFNDEF || cc == SHARP_IF) {
		DBG_PRINT(piflevel, "#if");
		if (++piflevel >= MAXPIFSTACK)
			die("#if pifstack over flow. [%s]", curfile);
		++cur;
		cur->start = level;
		cur->end = -1;
		cur->if0only = 0;
		if (peekc(0) == '0')
			cur->if0only = 1;
		else if ((cc = nexttoken(NULL, cpp_reserved_word)) == SYMBOL && !strcmp(token, "notdef"))
			cur->if0only = 1;
		else
			pushbacktoken();
	} else if (cc == SHARP_ELIF || cc == SHARP_ELSE) {
		DBG_PRINT(piflevel - 1, "#else");
		if (cur->end == -1)
			cur->end = level;
		else if (cur->end != level && (param->flags & PARSER_WARNING))
			warning("uneven level. [+%d %s]", lineno, curfile);
		level = cur->start;
		cur->if0only = 0;
	} else if (cc == SHARP_ENDIF) {
		int minus = 0;

		--piflevel;
		if (piflevel < 0) {
			minus = 1;
			piflevel = 0;
		}
		DBG_PRINT(piflevel, "#endif");
		if (minus) {
			if (param->flags & PARSER_WARNING)
				warning("unmatched #if block. reseted. [+%d %s]", lineno, curfile);
		} else {
			if (cur->if0only)
				level = cur->start;
			else if (cur->end != -1) {
				if (cur->end != level && (param->flags & PARSER_WARNING))
					warning("uneven level. [+%d %s]", lineno, curfile);
				level = cur->end;
			}
		}
	}
	while ((cc = nexttoken(NULL, cpp_reserved_word)) != EOF && cc != '\n') {
                if (cc == SYMBOL && strcmp(token, "defined") != 0) {
			PUT(PARSER_REF_SYM, token, lineno, sp);
		}
	}
}

/**
 * enumerator_list: process @CODE{"symbol (= expression), ... \}"}
 */
static int
enumerator_list(const struct parser_param *param)
{
	int savelevel = level;
	int in_expression = 0;
	int c = '{';

	for (; c != EOF; c = nexttoken("{}(),=", cpp_reserved_word)) {
		switch (c) {
		case SHARP_IFDEF:
		case SHARP_IFNDEF:
		case SHARP_IF:
		case SHARP_ELIF:
		case SHARP_ELSE:
		case SHARP_ENDIF:
			condition_macro(param, c);
			break;
		case SYMBOL:
			if (in_expression)
				PUT(PARSER_REF_SYM, token, lineno, sp);
			else
				PUT(PARSER_DEF, token, lineno, sp);
			break;
		case '{':
		case '(':
			level++;
			break;
		case '}':
		case ')':
			if (--level == savelevel)
				return c;
			break;
		case ',':
			if (level == savelevel + 1)
				in_expression = 0;
			break;
		case '=':
			in_expression = 1;
			break;
		default:
			break;
		}
	}

	return c;
}

--Multipart=_Fri__14_Dec_2012_20_42_24_+0900_WW+hy6ybaK4BL4um--


From MAILER-DAEMON Fri Dec 14 07:10:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjU65-0003jk-H1
	for mharc-bug-global@gnu.org; Fri, 14 Dec 2012 07:10:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55284)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjU62-0003hc-AM
	for bug-global@gnu.org; Fri, 14 Dec 2012 07:10:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjU61-0008SP-0K
	for bug-global@gnu.org; Fri, 14 Dec 2012 07:10:30 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:49884)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1TjU60-0008S2-GZ
	for bug-global@gnu.org; Fri, 14 Dec 2012 07:10:28 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qBECAOnj048398;
	Fri, 14 Dec 2012 21:10:24 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Fri, 14 Dec 2012 21:10:23 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: Alexander Gusak <fami.alex.lom@gmail.com>
Subject: Re: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
Message-Id: <20121214211023.185558b2.shigio@gnu.org>
In-Reply-To: <CAPBey+KuJmqHQ5CuBBYojd0YQKYE04MvsTRyOdr93wj7w0aq0w@mail.gmail.com>
References: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
	<20121213191238.bd0157c7.shigio@gnu.org>
	<CAPBey+LEVJ9z7M2eejHD=NstFzbkGDc7GKkgAGJYZ7=gOpQiGw@mail.gmail.com>
	<20121214115012.e435b9c8.shigio@gnu.org>
	<CAPBey+KuJmqHQ5CuBBYojd0YQKYE04MvsTRyOdr93wj7w0aq0w@mail.gmail.com>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 14 Dec 2012 12:10:31 -0000

Hi,
This fix will be included in the next release of GLOBAL.
Thank you for your bug report!

Shigio

On Fri, 14 Dec 2012 13:51:42 +0200
Alexander Gusak <fami.alex.lom@gmail.com> wrote:

> Hi,
> 
> The issue is fixed by your patch.
> Thanks a lot.
> -- 
> Best regards,
> Alexander.
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Fri Dec 14 07:10:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjU6J-0003mN-Jy
	for mharc-bug-global@gnu.org; Fri, 14 Dec 2012 07:10:47 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>) id 1TjTnw-0006uA-S4
	for bug-global@gnu.org; Fri, 14 Dec 2012 06:51:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>) id 1TjTnr-0003KO-VP
	for bug-global@gnu.org; Fri, 14 Dec 2012 06:51:48 -0500
Received: from mail-qc0-f180.google.com ([209.85.216.180]:59170)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fami.alex.lom@gmail.com>)
	id 1TjTnr-0003KE-Q5; Fri, 14 Dec 2012 06:51:43 -0500
Received: by mail-qc0-f180.google.com with SMTP id v28so2349172qcm.39
	for <multiple recipients>; Fri, 14 Dec 2012 03:51:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=v7r9X8f++yJUIEo6psua2rkjv88uAZXoIvDvuQV6RVg=;
	b=NWP2u+paS2ImxU7kUeNpSCZ4bnhGd0CxlpsKwWXdqMJHsrGjgtEtGXOkRrveep+3JC
	cTq0wOGxMf6DqyC8T22smAAuofqhHQ8cOpDLeBLE2Xd7sM4xtsj1KWyJPlPs8DQdNfHy
	JTZE086aygV4YSYVRBaHB3I7GvrPDrf8UBBvJ947ooBGosiSabGfMNZYN8FT6XYDg4or
	XwA2U5Vp1RhbKYaPM4ZOYhuVLcvqHZuLw4l0upc6qgL/iRNuvQav/eggS7uoKivKNA4F
	RpFjqW7H5c1pChNNv7CJ9ZXoZ+oNCnRecXmHjj+yTvggRjaaQTsMM9cAeEHtHRIDDcDQ
	BIDw==
MIME-Version: 1.0
Received: by 10.224.76.206 with SMTP id d14mr2521781qak.5.1355485902599; Fri,
	14 Dec 2012 03:51:42 -0800 (PST)
Received: by 10.49.120.4 with HTTP; Fri, 14 Dec 2012 03:51:42 -0800 (PST)
In-Reply-To: <20121214115012.e435b9c8.shigio@gnu.org>
References: <CAPBey++LEPiAow8tWOwLJUSMUhxg8mhPmBntNMC4X+q-g5QKNA@mail.gmail.com>
	<20121213191238.bd0157c7.shigio@gnu.org>
	<CAPBey+LEVJ9z7M2eejHD=NstFzbkGDc7GKkgAGJYZ7=gOpQiGw@mail.gmail.com>
	<20121214115012.e435b9c8.shigio@gnu.org>
Date: Fri, 14 Dec 2012 13:51:42 +0200
Message-ID: <CAPBey+KuJmqHQ5CuBBYojd0YQKYE04MvsTRyOdr93wj7w0aq0w@mail.gmail.com>
Subject: Re: Segmentation fault while parsing v8 with GTAGSFORCECPP=1
From: Alexander Gusak <fami.alex.lom@gmail.com>
To: Shigio YAMAGUCHI <shigio@gnu.org>
Content-Type: multipart/alternative; boundary=20cf3074b5a8b8f7d204d0cea74d
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.216.180
X-Mailman-Approved-At: Fri, 14 Dec 2012 07:10:45 -0500
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 14 Dec 2012 11:51:54 -0000

--20cf3074b5a8b8f7d204d0cea74d
Content-Type: text/plain; charset=UTF-8

Hi,

The issue is fixed by your patch.
Thanks a lot.
-- 
Best regards,
Alexander.

On 14 December 2012 05:50, Shigio YAMAGUCHI <shigio@gnu.org> wrote:

> On Thu, 13 Dec 2012 12:16:27 +0200
> Alexander Gusak <fami.alex.lom@gmail.com> wrote:
>
> > Hi,
> >
> > I've attached lithium-ia32.h from v8/src/ia32/.
>
> Thank you for sending the file.
> I believe I have fixed the bug. Would you please try the following patch ?
>
> Thank you in advance.
>
> Index: Cpp.c
> ===================================================================
> RCS file: /sources/global/global/libparser/Cpp.c,v
> retrieving revision 1.8
> diff -c -r1.8 Cpp.c
> *** Cpp.c       13 Oct 2012 07:01:22 -0000      1.8
> --- Cpp.c       14 Dec 2012 02:24:47 -0000
> ***************
> *** 72,77 ****
> --- 72,78 ----
>         int startclass, startthrow, startmacro, startsharp, startequal;
>         char classname[MAXTOKEN];
>         char completename[MAXCOMPLETENAME];
> +       char *completename_limit = &completename[sizeof(completename)];
>         int classlevel;
>         struct {
>                 char *classname;
> ***************
> *** 209,218 ****
>
>                                 if (++classlevel >= MAXCLASSSTACK)
>                                         die("class stack over flow.[%s]",
> curfile);
> !                               if (classlevel > 1)
>                                         *p++ = '.';
>                                 stack[classlevel].classname = p;
> !                               while (*q)
>                                         *p++ = *q++;
>                                 stack[classlevel].terminate = p;
>                                 stack[classlevel].level = level;
> --- 210,219 ----
>
>                                 if (++classlevel >= MAXCLASSSTACK)
>                                         die("class stack over flow.[%s]",
> curfile);
> !                               if (classlevel > 1 && p <
> completename_limit)
>                                         *p++ = '.';
>                                 stack[classlevel].classname = p;
> !                               while (*q && p < completename_limit)
>                                         *p++ = *q++;
>                                 stack[classlevel].terminate = p;
>                                 stack[classlevel].level = level;
> ***************
> *** 614,622 ****
>                 else if (c == '{' /* } */) {
>                         pushbacktoken();
>                         return 1;
> !               } else if (c == /* { */'}')
>                         break;
> !               else if (c == '=')
>                         break;
>                 /* pick up symbol */
>                 if (c == SYMBOL)
> --- 615,624 ----
>                 else if (c == '{' /* } */) {
>                         pushbacktoken();
>                         return 1;
> !               } else if (c == /* { */'}') {
> !                       pushbacktoken();
>                         break;
> !               } else if (c == '=')
>                         break;
>                 /* pick up symbol */
>                 if (c == SYMBOL)
>
> --
> Shigio YAMAGUCHI <shigio@gnu.org>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
>

--20cf3074b5a8b8f7d204d0cea74d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64

SGksPGJyPjxicj5UaGUgaXNzdWUgaXMgZml4ZWQgYnkgeW91ciBwYXRjaC48YnI+VGhhbmtzIGEg
bG90Ljxicj4tLSA8YnI+QmVzdCByZWdhcmRzLDxicj5BbGV4YW5kZXIuPGJyPjxicj48ZGl2IGNs
YXNzPSJnbWFpbF9xdW90ZSI+T24gMTQgRGVjZW1iZXIgMjAxMiAwNTo1MCwgU2hpZ2lvIFlBTUFH
VUNISSA8c3BhbiBkaXI9Imx0ciI+Jmx0OzxhIGhyZWY9Im1haWx0bzpzaGlnaW9AZ251Lm9yZyIg
dGFyZ2V0PSJfYmxhbmsiPnNoaWdpb0BnbnUub3JnPC9hPiZndDs8L3NwYW4+IHdyb3RlOjxicj4K
PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0ibWFyZ2luOjAgMCAwIC44ZXg7
Ym9yZGVyLWxlZnQ6MXB4ICNjY2Mgc29saWQ7cGFkZGluZy1sZWZ0OjFleCI+PGRpdiBjbGFzcz0i
aW0iPk9uIFRodSwgMTMgRGVjIDIwMTIgMTI6MTY6MjcgKzAyMDA8YnI+CkFsZXhhbmRlciBHdXNh
ayAmbHQ7PGEgaHJlZj0ibWFpbHRvOmZhbWkuYWxleC5sb21AZ21haWwuY29tIj5mYW1pLmFsZXgu
bG9tQGdtYWlsLmNvbTwvYT4mZ3Q7IHdyb3RlOjxicj4KPGJyPgomZ3Q7IEhpLDxicj4KJmd0Ozxi
cj4KJmd0OyBJJiMzOTt2ZSBhdHRhY2hlZCBsaXRoaXVtLWlhMzIuaCBmcm9tIHY4L3NyYy9pYTMy
Ly48YnI+Cjxicj4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 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tkr21-0008GD-GQ
	for mharc-bug-global@gnu.org; Tue, 18 Dec 2012 01:52:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57248)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jadoxa@yahoo.com.au>) id 1TkqsB-0006Rj-PB
	for bug-global@gnu.org; Tue, 18 Dec 2012 01:41:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jadoxa@yahoo.com.au>) id 1TkqsA-0001wK-MW
	for bug-global@gnu.org; Tue, 18 Dec 2012 01:41:51 -0500
Received: from nm38-vm6.bullet.mail.ne1.yahoo.com ([98.138.229.150]:28251)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jadoxa@yahoo.com.au>) id 1TkqsA-0001vv-9N
	for bug-global@gnu.org; Tue, 18 Dec 2012 01:41:50 -0500
Received: from [98.138.90.51] by nm38.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Dec 2012 06:41:48 -0000
Received: from [209.191.107.125] by tm4.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Dec 2012 06:41:48 -0000
Received: from [127.0.0.1] by smtp142.mail.mud.yahoo.com with NNFMP;
	18 Dec 2012 06:41:48 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024;
	t=1355812908; bh=oMGmss7F6zBWpcgH0FWQWeEEnXaKqrOSXY8stL2FD3s=;
	h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding;
	b=Y0+pUljS5aDN+xfI0ug0ypAchw20wd4LWw7v1jZcqtOsVJZqFMuWhdh6t+Jig4QIo6LcitjoXzcAkNH5mJorkNJ99vdsBLraiEeC71b5WQrw984RgndzZtbwEzuEzjQhHkQeL49ijTzXHmrhGRInUx/gtve6bREszjhQK8q/jQk=
X-Yahoo-Newman-Id: 343033.24852.bm@smtp142.mail.mud.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: MKasE3kVM1kvr9VWHI4C1.YZe6P5nPUlilOdwwZ8wT.roAW
	isP4x5WB5tHbKW.O1heOwH9vXqUwmzQ8rzCcCUjU5IIQPuMBjzRVYLAxrYLy
	vjy4Ge75gBEes_BAawHAMqbqk4Zr5s9gd.8.5skOHzXdvt1GtqFsvsZxC6MZ
	pZyxi1f.xRm6k8KR12ym1CemnoGLny1xNC6oOyGB5S6VtbbBMrBPXGe2cAi.
	TKc5hp1KLVAHiRPC77AdhtX2r4bNHpMcmp6K6YOomsC8itt7p2K5AdOnlaIP
	K_Sa1rxLf16pLyUbh83PhVaV_uxSGYyGdJuIVO_sgmHCqlbjQXR1.ZB0FXet
	mPrfxk190.G1ZPZsCJl2_u7pTDw9SGFWzQ_9YeOZUS.E.0mzyKuVWi3_2jUf
	YvbigfJ2usqjoqs34a8hfSmrQ8AyNm9lu1HqmlGOYwnrT54iBdoST9R6qIrQ
	d3OHB75oaFkDh.nXPUlAiOk81kal4cRj6i82grbl3gcPb4LF5EyLtUOguyI.
	BvMFM4udcHcylNkyR3mSMnAHqcVGWsCE-
X-Yahoo-SMTP: merhD1KswBCOGgml8bVfL5NEUQ--
Received: from [10.192.37.43] (jadoxa@1.133.56.22 with plain)
	by smtp142.mail.mud.yahoo.com with SMTP; 17 Dec 2012 22:41:48 -0800 PST
Message-ID: <50D01024.1080103@yahoo.com.au>
Date: Tue, 18 Dec 2012 16:41:40 +1000
From: Jason Hood <jadoxa@yahoo.com.au>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: "bug-global@gnu.org" <bug-global@gnu.org>
Subject: GLOBAL 6.2.6 DOS/Win patch
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 98.138.229.150
X-Mailman-Approved-At: Tue, 18 Dec 2012 01:52:00 -0500
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Tue, 18 Dec 2012 06:41:53 -0000

Here's[1] a minor patch for 6.2.6 to allow --single-update to support
DOS-style paths (convert '\' to '/' and ignore case when locating the name).

[1]http://global.adoxa.cjb.net/glo626a.txt

-- 
Jason.


From MAILER-DAEMON Tue Dec 18 03:38:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tksh4-0000lN-DJ
	for mharc-bug-global@gnu.org; Tue, 18 Dec 2012 03:38:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48894)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tksh1-0000jo-Kf
	for bug-global@gnu.org; Tue, 18 Dec 2012 03:38:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tksgz-0005x8-4l
	for bug-global@gnu.org; Tue, 18 Dec 2012 03:38:27 -0500
Received: from www1334.sakura.ne.jp ([219.94.162.174]:52284)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@gnu.org>) id 1Tksgr-0005w4-0M
	for bug-global@gnu.org; Tue, 18 Dec 2012 03:38:25 -0500
Received: from choota.tamacom.com (80.58.111.219.dy.bbexcite.jp
	[219.111.58.80]) (authenticated bits=0)
	by www1334.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id qBI8cCcu040934;
	Tue, 18 Dec 2012 17:38:13 +0900 (JST) (envelope-from shigio@gnu.org)
Date: Tue, 18 Dec 2012 17:38:11 +0900
From: Shigio YAMAGUCHI <shigio@gnu.org>
To: Jason Hood <jadoxa@yahoo.com.au>
Subject: Re: GLOBAL 6.2.6 DOS/Win patch
Message-Id: <20121218173811.68e527d2.shigio@gnu.org>
In-Reply-To: <50D01024.1080103@yahoo.com.au>
References: <50D01024.1080103@yahoo.com.au>
Organization: GNU Project
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-Received-From: 219.94.162.174
Cc: "bug-global@gnu.org" <bug-global@gnu.org>
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
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: Tue, 18 Dec 2012 08:38:28 -0000

Hi Jason,
I have committed the patch.
Thank you always.

Shigio

On Tue, 18 Dec 2012 16:41:40 +1000
Jason Hood <jadoxa@yahoo.com.au> wrote:

> Here's[1] a minor patch for 6.2.6 to allow --single-update to support
> DOS-style paths (convert '\' to '/' and ignore case when locating the name).
> 
> [1]http://global.adoxa.cjb.net/glo626a.txt
> 
> -- 
> Jason.
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


