From: Karel Zak <kzak@redhat.com>
To: Sami Kerola <kerolasa@iki.fi>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH 20/23] libsmartcols: add explicit column flags default
Date: Wed, 1 Oct 2014 12:29:18 +0200 [thread overview]
Message-ID: <20141001102918.GN26272@x2.net.home> (raw)
In-Reply-To: <1411933916-30576-21-git-send-email-kerolasa@iki.fi>
On Sun, Sep 28, 2014 at 08:51:53PM +0100, Sami Kerola wrote:
> Useful when initializing without any specific action in mind, or when
> reseting flags later on.
>
> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
> ---
> libsmartcols/src/libsmartcols.h.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in
> index e612560..1699a4a 100644
> --- a/libsmartcols/src/libsmartcols.h.in
> +++ b/libsmartcols/src/libsmartcols.h.in
> @@ -78,6 +78,7 @@ enum {
> * Column flags
> */
> enum {
> + SCOLS_FL_DEFAULT = 0, /* use default functionality */
it would be better to use
SCOLS_FL_NONE
> SCOLS_FL_TRUNC = (1 << 0), /* truncate fields data if necessary */
> SCOLS_FL_TREE = (1 << 1), /* use tree "ascii art" */
> SCOLS_FL_RIGHT = (1 << 2), /* align to the right */
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2014-10-01 10:29 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-28 19:51 [PATCH 00/23] pull: mostly textual and compiler warning fix changes Sami Kerola
2014-09-28 19:51 ` [PATCH 01/23] swapon: align available columns section in usage() Sami Kerola
2014-09-28 19:51 ` [PATCH 02/23] docs: update deprecation banners Sami Kerola
2014-09-28 19:51 ` [PATCH 03/23] hexdump: remove deprecation message Sami Kerola
2014-09-28 19:51 ` [PATCH 04/23] textual: fix couple typos in comments Sami Kerola
2014-09-28 19:51 ` [PATCH 05/23] flock: add error message to translations Sami Kerola
2014-09-28 19:51 ` [PATCH 06/23] textual: use version printing macro everywhere Sami Kerola
2014-09-28 19:51 ` [PATCH 07/23] textual: use manual tail usage() macro Sami Kerola
2014-09-28 19:51 ` [PATCH 08/23] textual: use usage() text element macros Sami Kerola
2014-09-28 19:51 ` [PATCH 09/23] libuuid: remove _SVID_SOURCE pre-processor definition Sami Kerola
2014-09-28 19:51 ` [PATCH 10/23] include: fix compiler warnings Sami Kerola
2014-09-28 19:51 ` [PATCH 11/23] lsblk: fix compiler warning Sami Kerola
2014-09-28 19:51 ` [PATCH 12/23] libblkid: use pre-processor to optimize out code Sami Kerola
2014-10-01 10:22 ` Karel Zak
2014-09-28 19:51 ` [PATCH 13/23] libblkid: fix implicit constant conversion warning Sami Kerola
2014-09-28 19:51 ` [PATCH 14/23] include/debug: remove duplicate 'const' declaration warning Sami Kerola
2014-09-28 19:51 ` [PATCH 15/23] cfdisk: add missing initializers to struct main_menuitems Sami Kerola
2014-10-01 10:27 ` Karel Zak
2014-09-28 19:51 ` [PATCH 16/23] findmnt: add missing initializers to struct colinfo Sami Kerola
2014-09-28 19:51 ` [PATCH 17/23] lsblk: " Sami Kerola
2014-09-28 19:51 ` [PATCH 18/23] hwclock: use fabs() instead abs() when argument is double Sami Kerola
2014-09-28 19:51 ` [PATCH 19/23] lscpu: add missing initializers to struct lscpu_coldesc Sami Kerola
2014-09-28 19:51 ` [PATCH 20/23] libsmartcols: add explicit column flags default Sami Kerola
2014-10-01 10:29 ` Karel Zak [this message]
2014-09-28 19:51 ` [PATCH 21/23] lslogins: add missing initializers to struct lslogins_coldesc Sami Kerola
2014-09-28 19:51 ` [PATCH 22/23] lslogins: use more narrow layout when initializing struct members Sami Kerola
2014-10-01 10:32 ` Karel Zak
2014-09-28 19:51 ` [PATCH 23/23] tests: fix the ipcs test for shmall being too big to show Sami Kerola
2014-10-01 9:45 ` Karel Zak
2014-10-01 11:14 ` [PATCH 00/23] pull: mostly textual and compiler warning fix changes Karel Zak
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=20141001102918.GN26272@x2.net.home \
--to=kzak@redhat.com \
--cc=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/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).