From: Thiago Farina <tfransosi@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [Patch v3] string-list: Document STRING_LIST_INIT_* macros.
Date: Sun, 5 Sep 2010 21:38:01 -0300 [thread overview]
Message-ID: <AANLkTikivCxU8Si-p1u4H6GtQfrdQdrHcBpr0Smkf5Rq@mail.gmail.com> (raw)
In-Reply-To: <20100906002249.GB18060@burratino>
On Sun, Sep 5, 2010 at 9:22 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> @@ -34,10 +39,9 @@ member (you need this if you add things later) and you should set the
>> Example:
>>
>> ----
>> -struct string_list list;
>> +struct string_list list = STRING_LIST_DUP;
>> int i;
>>
>> -memset(&list, 0, sizeof(struct string_list));
>> string_list_append(&list, "foo");
>> string_list_append(&list, "bar");
>> for (i = 0; i < list.nr; i++)
>
> Probably worth copying and pasting this code to another file and
> trying it to make sure it works for the final draft.
I already done in the test-string-list.c patch I sent. :-)
prev parent reply other threads:[~2010-09-06 0:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 0:13 [Patch v3] string-list: Document STRING_LIST_INIT_* macros Thiago Farina
2010-09-06 0:22 ` Jonathan Nieder
2010-09-06 0:38 ` Thiago Farina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikivCxU8Si-p1u4H6GtQfrdQdrHcBpr0Smkf5Rq@mail.gmail.com \
--to=tfransosi@gmail.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).