From: Nobuyoshi Nakada Date: 2016-01-27T18:19:17+09:00 Subject: [ruby-core:73528] Re: [ruby-cvs:60830] duerst:r53669 (trunk): * enc/unicode.c: Protect code point count by macro, in order to --===============0492116105== Content-Type: multipart/alternative; boundary=001a114a7974e8a0ef052a4d4b41 --001a114a7974e8a0ef052a4d4b41 Content-Type: text/plain; charset=UTF-8 > duerst 2016-01-27 17:55:40 +0900 (Wed, 27 Jan 2016) > > New Revision: 53669 > > > https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53669 > > Log: > * enc/unicode.c: Protect code point count by macro, in order to > be able to use the remaining bits for flags. > (with Kimihito Matsui) Is this really intended? > +/* use bottom bytes for actual code point count; 3 bits is more than enough */ > +#define OnigCodePointCount(n) ((n)&0x111) I suspect that you may want to write `0b111`, but binary literal isn't available in C. --001a114a7974e8a0ef052a4d4b41 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
duerst=C2=A0 2016-01-27 17:55:40 +0900 (= Wed, 27 Jan 2016)

=C2=A0 New Revision: 53669

=C2=A0 https://svn.ruby-lang.org/cgi-b= in/viewvc.cgi?view=3Drevision&revision=3D53669

=C2=A0 Log:
=C2=A0 =C2=A0 * enc/unicode.c: Protect code point count by macro, in order = to
=C2=A0 =C2=A0 =C2=A0 be able to use the remaining bits for flags.
=C2=A0 =C2=A0 =C2=A0 (with Kimihito Matsui)

Is= this really intended?

>=C2=A0+/* use bottom bytes for actua= l code point count; 3 bits is more than enough */ >=C2=A0+#define OnigCo= dePointCount(n) ((n)&0x111)

I suspect that= you may want to write `0b111`, but binary literal isn't available in C= .

--001a114a7974e8a0ef052a4d4b41-- --===============0492116105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Unsubscribe: --===============0492116105==--