unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [unicode branch] search.c:1537: error: 'this_pos_byte' undeclared
@ 2006-11-22  1:50 Jhair Tocancipa Triana
  2006-11-22  1:59 ` Kenichi Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Jhair Tocancipa Triana @ 2006-11-22  1:50 UTC (permalink / raw)


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;

-- 
-- Jhair

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [unicode branch] search.c:1537: error: 'this_pos_byte' undeclared
  2006-11-22  1:50 [unicode branch] search.c:1537: error: 'this_pos_byte' undeclared Jhair Tocancipa Triana
@ 2006-11-22  1:59 ` Kenichi Handa
  0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2006-11-22  1:59 UTC (permalink / raw)
  Cc: emacs-devel

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-22  1:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22  1:50 [unicode branch] search.c:1537: error: 'this_pos_byte' undeclared Jhair Tocancipa Triana
2006-11-22  1:59 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).