public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] pull: cal: code revisit part I try II
@ 2013-11-10 18:23 Sami Kerola
  2013-11-10 18:23 ` [PATCH 01/13] cal: use control structure for run time configuration Sami Kerola
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: Sami Kerola @ 2013-11-10 18:23 UTC (permalink / raw)
  To: util-linux; +Cc: kerolasa

Hi Karel and others,

You might remember attempt to refactor cal(1) from couple weeks.

http://www.spinics.net/lists/util-linux-ng/index.html#08443

This patch set / pull request is fairly similar to previous.  Difference
are with variable and function naming, and output generator and printout
routines.  Essentially the changes proposed by Karel should at least
partly done, and I am happy that the code quality clearly increased in
between tries.

Notice that this is 'revist part I'.  These changes will allow new
features, such as variable number horizontal calendar outputs, and
printout of user defined calendar months that cross year boundaries.  I
do not think I will have time to work with these feature before end of
the month.  I am perfectly ok if if someone does the next stuff, but if
not I'll have a look of that about in December.


The following changes since commit 5dc242cc97b2323c2540a7f13be72c678f0b6b58:

  tests: update blkid swap tests (2013-11-08 14:22:35 +0100)

are available in the git repository at:

  git://github.com/kerolasa/lelux-utiliteetit.git cal-ng

for you to fetch changes up to 543a04eb8db8ddf74da1c5ec044d5df83f1f2f17:

  cal: use month contents structure for --year printing (2013-11-10 18:20:27 +0000)

----------------------------------------------------------------
Sami Kerola (13):
      cal: use control structure for run time configuration
      cal: rename ascii_wnum() to ascii_weeknum()
      cal: add input variable names to function prototypes
      cal: make day_in_week() use same variable names as other functions
      cal: simplify ascii_weeknum() function
      cal: determine output width at beginning of run and reuse result
      tests: cal: take account week numbers when determing month lenght
      cal: make user request to be part of read-only control struct
      tests: cal: do not let --week=<num> to adjust requested month
      cal: determine how many header lines are needed at initialization
      cal: add month contents structure
      cal: use month contents structure for --three printing
      cal: use month contents structure for --year printing

 misc-utils/cal.c            | 781 ++++++++++++++++++++------------------------
 tests/expected/cal/bigyearw |  12 +-
 tests/expected/cal/weekarg  |  84 ++---
 3 files changed, 405 insertions(+), 472 deletions(-)


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-12-06 10:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10 18:23 [PATCH 00/13] pull: cal: code revisit part I try II Sami Kerola
2013-11-10 18:23 ` [PATCH 01/13] cal: use control structure for run time configuration Sami Kerola
2013-11-10 18:23 ` [PATCH 02/13] cal: rename ascii_wnum() to ascii_weeknum() Sami Kerola
2013-11-10 18:23 ` [PATCH 03/13] cal: add input variable names to function prototypes Sami Kerola
2013-11-10 18:23 ` [PATCH 04/13] cal: make day_in_week() use same variable names as other functions Sami Kerola
2013-11-10 18:23 ` [PATCH 05/13] cal: simplify ascii_weeknum() function Sami Kerola
2013-11-10 18:23 ` [PATCH 06/13] cal: determine output width at beginning of run and reuse result Sami Kerola
2013-11-10 18:23 ` [PATCH 07/13] tests: cal: take account week numbers when determing month lenght Sami Kerola
2013-11-10 18:23 ` [PATCH 08/13] cal: make user request to be part of read-only control struct Sami Kerola
2013-11-10 18:23 ` [PATCH 09/13] tests: cal: do not let --week=<num> to adjust requested month Sami Kerola
2013-11-10 18:23 ` [PATCH 10/13] cal: determine how many header lines are needed at initialization Sami Kerola
2013-11-10 18:23 ` [PATCH 11/13] cal: add month contents structure Sami Kerola
2013-11-10 18:23 ` [PATCH 12/13] cal: use month contents structure for --three printing Sami Kerola
2013-12-06 10:07   ` Karel Zak
2013-11-10 18:23 ` [PATCH 13/13] cal: use month contents structure for --year printing Sami Kerola
2013-12-06 10:02 ` [PATCH 00/13] pull: cal: code revisit part I try II Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox