Skip to content

: [pull] cal: second review round

Sami Kerola util-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16cal: fix preprocessor directive indendationmisc-utils/cal.c+39 -420 replies
2/16cal: convert function like definitions to functionsmisc-utils/cal.c+28 -170 replies
3/16cal: clean up use of constantsmisc-utils/cal.c+81 -600 replies
4/16tests: add calendar reformation checktests/expected/cal/sep1752 tests/ts/cal/sep1752+293 -00 replies
5/16cal: simplify calendar reformat calculationsmisc-utils/cal.c+15 -260 replies
6/16cal: remove unnecessary initializationsmisc-utils/cal.c+0 -70 replies
7/16cal: de-duplicate julian specific functionsmisc-utils/cal.c+45 -740 replies
8/16lib: copy argmatch from gnulibinclude/Makemodule.am include/argmatch.h lib/Makemodule.am +1 more+374 -02 replies
9/16cal: add --highligth option which uses argmatchmisc-utils/Makemodule.am misc-utils/cal.c+39 -33 replies
10/16cal: add --highlight to usage()misc-utils/cal.c+14 -150 replies
11/16docs: cal: add --highlight option descriptionmisc-utils/cal.1+13 -00 replies
12/16tests: add cal day highlight corner casestests/expected/cal/highlight tests/ts/cal/highlight+125 -00 replies
13/16cal: stop trimming whitespacesmisc-utils/cal.c tests/expected/cal/1m tests/expected/cal/3m +3 more+336 -3533 replies
14/16cal: move global variables to local scopemisc-utils/cal.c+52 -511 reply
15/16cal: mark all functions staticmisc-utils/cal.c+32 -290 replies
16/16cal: simplify day_in_week()misc-utils/cal.c+7 -81 reply

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchThomas BächlerDave Reisner
1/16
2/16R-b R-b
3/16R-b
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16Proposed-by
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/16]: [pull] cal: second review round

Hello all,

Here comes cal(1) patch series II. There is a lot of similarities, and some changes since last submission. The previous patch series is still available in my git (branch 2013wk16), which should make comparing every single small detail quite trivial. IMHO the most significant changes in between the two submissions are:

o Copy argmatch.h and argmatch.c from gnulib to util-linux.
o Add --highlight={never,auto,always} option.
o Add new option to usage(), and clean it up.
o Remove trailing space trimming.

All the changes are based on feedback from P�draig, Thomas, Dave, and Karel. Thank you for pointing me to correct direction, and please have look if I'm still a bit lost.

The following changes since commit a48c321dd175d043fb4572bab625631b2055075e:

textual: fixing typos in a warning and an error message (2013-04-26 13:55:29 +0200)

are available in the git repository at:

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

for you to fetch changes up to 2b491019173dc2eda3a0d014e9adb3dec54e41bc:

cal: simplify day_in_week() (2013-05-02 19:30:16 +0100)

----------------------------------------------------------------
Sami Kerola (16):
cal: fix preprocessor directive indendation
cal: convert function like definitions to functions
cal: clean up use of constants
tests: add calendar reformation check
cal: simplify calendar reformat calculations
cal: remove unnecessary initializations
cal: de-duplicate julian specific functions
lib: copy argmatch from gnulib
cal: add --highligth option which uses argmatch
cal: add --highlight to usage()
docs: cal: add --highlight option description
tests: add cal day highlight corner cases
cal: stop trimming whitespaces
cal: move global variables to local scope
cal: mark all functions static
cal: simplify day_in_week()

 include/Makemodule.am        |   1 +
 include/argmatch.h           | 100 ++++++++
 lib/Makemodule.am            |   1 +
 lib/argmatch.c               | 272 ++++++++++++++++++++
 misc-utils/Makemodule.am     |   2 +-
 misc-utils/cal.1             |  13 +
 misc-utils/cal.c             | 597 ++++++++++++++++++++++---------------------
 tests/expected/cal/1m        |  48 ++--
 tests/expected/cal/3m        |  48 ++--
 tests/expected/cal/highlight |  55 ++++
 tests/expected/cal/sep1752   | 198 ++++++++++++++
 tests/expected/cal/year      | 240 ++++++++---------
 tests/ts/cal/highlight       |  70 +++++
 tests/ts/cal/sep1752         |  95 +++++++
 14 files changed, 1274 insertions(+), 466 deletions(-)
 create mode 100644 include/argmatch.h
 create mode 100644 lib/argmatch.c
 create mode 100644 tests/expected/cal/highlight
 create mode 100644 tests/expected/cal/sep1752
 create mode 100755 tests/ts/cal/highlight
 create mode 100755 tests/ts/cal/sep1752