From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [unicode branch] search.c:1537: error: 'this_pos_byte' undeclared Date: Wed, 22 Nov 2006 10:59:28 +0900 Message-ID: References: <87vel8tfk2.fsf@mandala.my-fqdn.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1164160754 11273 80.91.229.2 (22 Nov 2006 01:59:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 01:59:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 02:59:11 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmhOD-0002Vo-4K for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 02:59:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmhOC-0000V5-Iw for ged-emacs-devel@m.gmane.org; Tue, 21 Nov 2006 20:59:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmhNy-0000TM-MB for emacs-devel@gnu.org; Tue, 21 Nov 2006 20:58:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmhNw-0000Rg-KV for emacs-devel@gnu.org; Tue, 21 Nov 2006 20:58:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmhNw-0000RR-Be for emacs-devel@gnu.org; Tue, 21 Nov 2006 20:58:48 -0500 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmhNw-0005XE-1A for emacs-devel@gnu.org; Tue, 21 Nov 2006 20:58:48 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id kAM1whmO017394; Wed, 22 Nov 2006 10:58:43 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp (mail.aist.go.jp [150.29.246.12]) by rqsmtp2.aist.go.jp with ESMTP id kAM1whBJ000186; Wed, 22 Nov 2006 10:58:43 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id kAM1whqg027132; Wed, 22 Nov 2006 10:58:43 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GmhOa-0007DL-00; Wed, 22 Nov 2006 10:59:28 +0900 Original-To: Jhair Tocancipa Triana In-reply-to: <87vel8tfk2.fsf@mandala.my-fqdn.de> (message from Jhair Tocancipa Triana on Wed, 22 Nov 2006 02:50:53 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62637 Archived-At: > After a cvs update today I get the following error: > gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_GTK -I. -I/home/jtocancipa/local/src/emacs_unicode_branch/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/alsa -g -O2 -Wno-pointer-sign search.c > search.c: In function 'simple_search': > search.c:1537: error: 'this_pos_byte' undeclared (first use in this function) > search.c:1537: error: (Each undeclared identifier is reported only once > search.c:1537: error: for each function it appears in.) > Shouldn't this change be applied? > *** search.c 22 Nov 2006 02:36:14 +0100 1.174.2.32 > --- search.c 22 Nov 2006 02:44:15 +0100 > *************** > *** 1531,1536 **** > --- 1531,1537 ---- > { > /* Try matching at position POS. */ > int this_pos = pos - len; > + int this_pos_byte = pos_byte - len_byte; > int this_len = len; > unsigned char *p = pat; No. That part is a code for unibyte case. The current error is because the change in HEAD is applied to the incorrect place in search.c. I've just installed a proper fix. --- Kenichi Handa handa@m17n.org