On Mon, 12 Dec 2011 14:26:21 -0400, David Bremner wrote:
> On Sun, 11 Dec 2011 20:41:53 +0400, Dmitry Kurochkin gmail.com> wrote:
> > Hi David.
> >
> > On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner
> > wrote:
> > > From: David Bremner
> > >
> > > Two new internal routines are created
On Mon, 12 Dec 2011 14:26:21 -0400, David Bremner da...@tethera.net wrote:
On Sun, 11 Dec 2011 20:41:53 +0400, Dmitry Kurochkin
dmitry.kuroch...@gmail.com wrote:
Hi David.
On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner da...@tethera.net wrote:
From: David Bremner brem...@debian.org
On Sun, 11 Dec 2011 20:41:53 +0400, Dmitry Kurochkin wrote:
> Hi David.
>
> On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner
> wrote:
> > From: David Bremner
> >
> > Two new internal routines are created _config_get_list and
> > _config_set_list; the notmuch_config_get_* functions that deal
Hi David.
On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner wrote:
> From: David Bremner
>
> Two new internal routines are created _config_get_list and
> _config_set_list; the notmuch_config_get_* functions that deal with
> lists are simply wrappers for these functions.
Looks good to me.
From: David Bremner
Two new internal routines are created _config_get_list and
_config_set_list; the notmuch_config_get_* functions that deal with
lists are simply wrappers for these functions.
---
notmuch-config.c | 130 +++--
From: David Bremner brem...@debian.org
Two new internal routines are created _config_get_list and
_config_set_list; the notmuch_config_get_* functions that deal with
lists are simply wrappers for these functions.
---
notmuch-config.c | 130 +++--
Hi David.
On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner da...@tethera.net wrote:
From: David Bremner brem...@debian.org
Two new internal routines are created _config_get_list and
_config_set_list; the notmuch_config_get_* functions that deal with
lists are simply wrappers for these
On Sat, 10 Dec 2011 13:24:36 -0500, Austin Clements wrote:
> What about something like
>
> const char **
> notmuch_config_get_user_other_email (notmuch_config_t *config,
> size_t *length)
> {
> return _config_get_list (config, "user", "other_email",
>
From: David Bremner
The code is already duplicated once, and I want to add a third
configuration item that is also a list.
---
Mainly I am curious if people think using macros to declare these
"getters" and "setters" makes the code less maintainable.
notmuch-config.c |
Deduplicating this code seems like a great idea, but I don't think
macros are the way to do it; especially not one that expands to an
important top-level construct like a function definition.
What about something like
const char **
notmuch_config_get_user_other_email (notmuch_config_t *config,
Deduplicating this code seems like a great idea, but I don't think
macros are the way to do it; especially not one that expands to an
important top-level construct like a function definition.
What about something like
const char **
notmuch_config_get_user_other_email (notmuch_config_t *config,
On Sat, 10 Dec 2011 13:24:36 -0500, Austin Clements amdra...@mit.edu wrote:
What about something like
const char **
notmuch_config_get_user_other_email (notmuch_config_t *config,
size_t *length)
{
return _config_get_list (config, user, other_email,
12 matches
Mail list logo