From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#9960: Compiling Emacs trunk with MSVC Date: Sat, 12 Nov 2011 23:27:18 +0100 Message-ID: References: <83sjy5279e.fsf@gnu.org> <8339e2lsu7.fsf@gnu.org> <83zkgakdby.fsf@gnu.org> <4EB5320F.5090800@gmail.com> <83vcqyk8k3.fsf@gnu.org> <4EB540F4.7080106@gmail.com> <83r51mk62f.fsf@gnu.org> <86wrbeo7p5.fsf@googlemail.com> <83k47ejyyt.fsf@gnu.org> <86sjm2o559.fsf@googlemail.com> <86obwqo2hl.fsf@googlemail.com> <86ipmynwds.fsf@googlemail.com> <838vnujm3z.fsf@gnu.org> <83sjlzj25l.fsf@gnu.org> <8339dvgfpv.fsf@gnu.org> <83fwhtfma8.fsf@gnu.org> <83aa81f4ov.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175dd9e22ff21604b1912540 X-Trace: dough.gmane.org 1321136927 10416 80.91.229.12 (12 Nov 2011 22:28:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 22:28:47 +0000 (UTC) Cc: cschol2112@googlemail.com, 9960@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 12 23:28:42 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPM41-00082B-SL for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 23:28:42 +0100 Original-Received: from localhost ([::1]:51657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPM41-0004Pt-DE for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 17:28:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPM3z-0004Po-7b for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 17:28:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPM3y-0003ep-1H for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 17:28:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPM3x-0003el-S3 for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 17:28:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RPM4L-0001ox-GN for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 17:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2011 22:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9960-submit@debbugs.gnu.org id=B9960.13211368926933 (code B ref 9960); Sat, 12 Nov 2011 22:29:01 +0000 Original-Received: (at 9960) by debbugs.gnu.org; 12 Nov 2011 22:28:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RPM3Y-0001nm-1H for submit@debbugs.gnu.org; Sat, 12 Nov 2011 17:28:12 -0500 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RPM3V-0001nY-87 for 9960@debbugs.gnu.org; Sat, 12 Nov 2011 17:28:10 -0500 Original-Received: by bkbzv15 with SMTP id zv15so4325095bkb.3 for <9960@debbugs.gnu.org>; Sat, 12 Nov 2011 14:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=dOm2VkH/eUakLyv1Jy/kR9fnQXsHrFHGVWUDy+u9fJ8=; b=VamrAVx8x0MnDS5dIF3o2dTU1It+at9tGe7prC2HcwBXN3fvFIT9q/s5xJG5DS3NLz +OzlI4InqDtTQfQ7wxltt7Onm7G6gCrWWbwa3Vpw34ioq4YRSuK6pz0+7BqVVZip3cIy 2T9/j7Io86kB/zbcD81xm36BXFnQUsiO/rvlk= Original-Received: by 10.204.157.154 with SMTP id b26mr6089041bkx.52.1321136859115; Sat, 12 Nov 2011 14:27:39 -0800 (PST) Original-Received: by 10.204.120.6 with HTTP; Sat, 12 Nov 2011 14:27:18 -0800 (PST) In-Reply-To: <83aa81f4ov.fsf@gnu.org> X-Google-Sender-Auth: 1TsLZqpnU5T2RNBgZiLE3deRcw8 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Nov 2011 17:29:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53841 Archived-At: --0015175dd9e22ff21604b1912540 Content-Type: text/plain; charset=ISO-8859-1 > > Can you show how the values of the following variables change as you > step through this fragment in read1 and inside read_escape it calls? > > read_from_string_index > read_from_string_index_byte > read_from_string_limit > c 0x00000043 int read_from_string_index 0x00000004 int read_from_string_index_byte 0x00000004 int read_from_string_limit 0x00000008 int case 'C': c = READCHAR; c 0x0000002d int read_from_string_index 0x00000005 int read_from_string_index_byte 0x00000005 int read_from_string_limit 0x00000008 int if (c != '-') error ("Invalid escape character syntax"); case '^': c = READCHAR; c 0x00000030 int read_from_string_index 0x00000006 int read_from_string_index_byte 0x00000006 int read_from_string_limit 0x00000008 int return c | ctrl_modifier; back to read1: modifiers = c & CHAR_MODIFIER_MASK; c &= ~CHAR_MODIFIER_MASK; if (CHAR_BYTE8_P (c)) c = CHAR_TO_BYTE8 (c); c |= modifiers; next_char = READCHAR; c 0x04000030 int next_char 0x00000030 int read_from_string_index 0x00000007 int read_from_string_index_byte 0x00000007 int read_from_string_limit 0x00000008 int ok = (next_char <= 040 || (next_char < 0200 && strchr ("\"';()[]#?`,.", next_char) != NULL)); ok = 0 => error Hope you can decipher this. -- Fabrice --0015175dd9e22ff21604b1912540 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Can you show how = the values of the following variables change as you
step through this fragment in read1 and inside read_escape it calls?

=A0read_from_string_index
=A0read_from_string_index_byte
=A0read_from_string_limit

c= 0x00000043 int
read_from_string_index 0x00000004 int
read_from_string_index_b= yte 0x00000004 int
read_from_string_limit 0x00000008 int

case 'C':
=A0 c =3D READCHAR;

c 0x0000002d int
r= ead_from_string_index 0x00000005 int
read= _from_string_index_byte 0x00000005 int
read= _from_string_limit= 0x00000008= int

=A0 =A0 =A0 if (c !=3D '-')
error (&= quot;Invalid escape character syntax");
=A0 =A0 case '^&= #39;:
=A0 =A0 =A0 c =3D READCHAR;

c 0x00000030 int
r= ead_from_string_index 0x00000006 int
read= _from_string_index_byte 0x00000006 int
read= _from_string_limit= 0x00000008= int

return c | ctrl_modifier;

back to read1:

modifiers =3D c & CHAR_MODIFIER_MA= SK;
c &am= p;=3D ~CHAR_MODIFIER_MASK;
if (CHAR_BYTE8_P (c))
=A0c =3D CHAR_TO_BYTE8 = (c);
c |= =3D modifiers;

next_char =3D READCHAR;

= c 0x= 04000030 in= t
next_char= 0x00000030= int
<= div> read_= from_string_index = 0x00000007 = int
read= _from_string_index_byte 0x00000007 int
read= _from_string_limit= 0x00000008= int

ok =3D (next_char <=3D 040
=A0 =A0 =A0|| (next_cha= r < 0200
=A0= && strchr ("\"';()[]#?`,.", next_char) !=3D NULL= ));

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ok =3D 0= =3D> error

Hope you can decipher this.

--
Fabri= ce
--0015175dd9e22ff21604b1912540--