Re: cvs commit: src/usr.bin/make buf.c buf.h for.c str.c var.c v
YONETANI Tomokazu wrote:
> On Sun, Jan 23, 2005 at 09:13:58PM -0800, Max Okumoto wrote:
>
>>okumoto 2005/01/23 21:13:58 PST
>>
>>DragonFly src repository
>>
>> Modified files:
>> usr.bin/make buf.c buf.h for.c str.c var.c
>> var_modify.c
>> Log:
>> - New function Buf_AppendRange(), which is given a pointer to a string and
>> a pointer to the end of the range to append to the Buffer object.
>
>
> [snip]
>
>
>>http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/var_modify.c.diff?r1=1.15&r2=1.16&f=u
>
>
> Are you sure the chunk below is a correct change?
>
> @@ -180,7 +180,7 @@ VarRoot(const char *word, Boolean addSpa
>
> dot = strrchr(word, '.');
> if (dot != NULL) {
> - Buf_AddBytes(buf, dot - word, (const Byte *)word);
> + Buf_AddBytes(buf, word, dot);
> } else {
> Buf_Append(buf, word);
> }
Thanks, that must have slipped by when I split the patch into
smaller chunks.
Max
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):