From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 01/13] Replicator: export out_ function for modules
Date: Thu, 08 Oct 2009 13:02:05 +0200 [thread overview]
Message-ID: <4ACDC6AD.2090207@redhat.com> (raw)
In-Reply-To: <20091007150503.GC3054@agk-dp.fab.redhat.com>
Dne 7.10.2009 17:05, Alasdair G Kergon napsal(a):
> On Mon, Oct 05, 2009 at 04:00:28PM +0200, Zdenek Kabelac wrote:
>> +/* insert new line */
>> +int out_newline(struct formatter *f)
>> +{
>> + outnl(f);
>> + return 0;
>
> Should return 1 here, and the caller has to check that.
true
> Instead, I think the outnl macro should be changed to work like the outf one.
> (make the 'f->nl' part internal to an export.c function instead of the header file)
> The idea was that the callers would be using this so frequently, it was
> clearer just writing 'outf(...)' than 'if (!out_text(...)) return_0;' everywhere.
>
> Alasdair
>
So how about this:
+/* insert new line */
+int out_newline(struct formatter *f)
+{
+ return f->nl(f);
+}
+
I think this will be the easiest way - nl() is virtual function thus it can't
be easily 'macro-ised'.
Zdenek
next prev parent reply other threads:[~2009-10-08 11:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-05 14:00 [PATCH 01/13] Replicator: export out_ function for modules Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 02/13] Replicator: add libdm support Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 03/13] Replicator: add lvm support Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 04/13] Replicator: new variable in generated file Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 05/13] Replicator: use dm_tree_suspend_children Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 06/13] Replicator: extend _lv_each_dependency() rep. deps Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 07/13] Replicator: update _create_partial_dtree() Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 08/13] Replicator: add replicator/_dev to dtree Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 09/13] Replicator: do not remove of replicators' LVs Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 10/13] Replicator: activate change for vgchange Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 11/13] Replicator: add new options for replicator Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 12/13] Replicator: update copyright dates Zdenek Kabelac
2009-10-05 14:00 ` [PATCH 13/13] Replicator: update of generated configure file Zdenek Kabelac
2009-10-07 15:07 ` [PATCH 03/13] Replicator: add lvm support Alasdair G Kergon
2009-10-08 8:56 ` Zdenek Kabelac
2009-10-07 14:39 ` [PATCH 02/13] Replicator: add libdm support Alasdair G Kergon
2009-10-08 9:42 ` Petr Rockai
2009-10-09 12:42 ` Zdenek Kabelac
2009-10-08 9:32 ` Petr Rockai
2009-10-07 15:05 ` [PATCH 01/13] Replicator: export out_ function for modules Alasdair G Kergon
2009-10-08 11:02 ` Zdenek Kabelac [this message]
2009-10-09 12:47 ` Zdenek Kabelac
2009-10-09 12:59 ` Alasdair G Kergon
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=4ACDC6AD.2090207@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.