minor, introduce padding fields in token.h, rearrange dt_spec_s struct

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, support %G for compatibility with POSIX

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, add regressions for %G compat output format specifier

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/posix-compat'

* feat/posix-compat:
  test, add regressions for %G compat output format specifier
  minor, support %G for compatibility with POSIX
minor, actually parse the 0 and the SPC modifier in __tok_spec()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, support 0-padded output format specifiers in ddiff

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, extend 0-padding in ddiff(1) in that ...

a %Y %0d combination will pad for 3 digits instead of 2.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, turn padding into an enum

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, undef tentative macro C after usage (in ui32tostr())

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, replace snprintf() calls in ddiff code by custom ltostr()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, pad with padding characters even if no higher-hierarchy specifier is present

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, add regression tests for 0-padding

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, add regression tests for SPC-padding

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, fix, use correct ddiff values in regression tests

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide yd differences to dt_ddiff()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, use DT_YD as target duration if year and day format specs are present, but month is not

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, add proper leap corrections to __yd_diff()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, provide regressions for year-yday differences

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, fix corner cases in __yd_diff()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/padded-ddiff-formats'

* feat/padded-ddiff-formats:
  test, fix, use correct ddiff values in regression tests
  test, add regression tests for SPC-padding
  test, add regression tests for 0-padding
  minor, pad with padding characters even if no higher-hierarchy specifier is present
  minor, replace snprintf() calls in ddiff code by custom ltostr()
  hygiene, undef tentative macro C after usage (in ui32tostr())
  chore, turn padding into an enum
  minor, extend 0-padding in ddiff(1) in that ...
  minor, support 0-padded output format specifiers in ddiff
  minor, actually parse the 0 and the SPC modifier in __tok_spec()
  minor, introduce padding fields in token.h, rearrange dt_spec_s struct