[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rename STRING_SET_CHARS to STRING_SET_SIZE
From: |
Ted Zlatanov |
Subject: |
Re: rename STRING_SET_CHARS to STRING_SET_SIZE |
Date: |
Mon, 17 Apr 2017 12:34:34 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
On Mon, 17 Apr 2017 12:29:11 -0400 Stefan Monnier <address@hidden> wrote:
>> Eli, anyone else, is it OK to do that renaming of STRING_SET_CHARS to
>> STRING_SET_SIZE? It's a small thing but annoys me :)
SM> That macro is only meant to change the number of chars in a string
SM> without changing the number of bytes, so the current name doesn't sound
SM> bad to me.
On Mon, 17 Apr 2017 19:24:28 +0300 Eli Zaretskii <address@hidden> wrote:
EZ> It is called STRING_SET_CHARS because it sets the same member that
EZ> SCHARS returns. And CHARS is actually correct, because the 'size'
EZ> member counts string characters (as opposed to bytes). So I don't
EZ> think there's a problem with the name here, you just need ti get used
EZ> to thinking about it as 'chars', not 'size'.
All right, leaving this alone. Thanks for explaining.
Ted
- Re: libnettle/libhogweed WIP, (continued)
- Re: libnettle/libhogweed WIP, Eli Zaretskii, 2017/04/20
- Re: libnettle/libhogweed WIP, Eli Zaretskii, 2017/04/20
- Re: libnettle/libhogweed WIP, Stefan Monnier, 2017/04/20
- Re: libnettle/libhogweed WIP, Eli Zaretskii, 2017/04/20
- Re: libnettle/libhogweed WIP, Stefan Monnier, 2017/04/19
- rename STRING_SET_CHARS to STRING_SET_SIZE (was: libnettle/libhogweed WIP), Ted Zlatanov, 2017/04/17
- Re: rename STRING_SET_CHARS to STRING_SET_SIZE, Eli Zaretskii, 2017/04/17
- Re: rename STRING_SET_CHARS to STRING_SET_SIZE, Stefan Monnier, 2017/04/17
- Re: rename STRING_SET_CHARS to STRING_SET_SIZE,
Ted Zlatanov <=
- Re: libnettle/libhogweed WIP, Stefan Monnier, 2017/04/15
- Re: libnettle/libhogweed WIP, Eli Zaretskii, 2017/04/16
- Re: libnettle/libhogweed WIP, Stefan Monnier, 2017/04/16
Re: libnettle/libhogweed WIP, Toon Claes, 2017/04/16