]> err.no Git - util-linux/commit
cal: factor out and update multibyte alignment code
authorPádraig Brady <P@draigBrady.com>
Mon, 8 Mar 2010 18:29:01 +0000 (18:29 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Mar 2010 14:16:11 +0000 (15:16 +0100)
commit104b92f84802e4043e6a8db034985fa726b9a6ab
tree4f14c42489093933ced300199bde89cde8ace538
parent03e062e5930bf89ce2ccae5ed76f445e87525921
cal: factor out and update multibyte alignment code

* include/mbsalign.h: New module interface
* lib/mbsalign.c: Updated implementation synced from coreutils
* include/Makefile.am: Add mbsalign.h
* misc-utils/Makefile.am: Make cal dependent on mbsalign module
* misc-utils/cal.c: Call mbsalign()

[kzak@redhat.com: - use min() macro from c.h]

Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/Makefile.am
include/mbsalign.h [new file with mode: 0644]
lib/mbsalign.c [new file with mode: 0644]
misc-utils/Makefile.am
misc-utils/cal.c