]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: add parse-date.y
authorJ William Piggott <elseifthen@gmx.com>
Sat, 4 Mar 2017 15:49:41 +0000 (10:49 -0500)
committerJ William Piggott <elseifthen@gmx.com>
Sat, 4 Mar 2017 15:49:41 +0000 (10:49 -0500)
commit7088bd88323fa9152ec9fbe4089fe76807445ed3
tree6d36f7512e7fa6a2099263351479462822b3be21
parent1765814521bf2aba7b8c03d3ab2e3b784e1ce2c4
lib: add parse-date.y

* include/timeutils.h
    Add parse-date API

* lib/parse-date.y - new file
    Lib function that parses a date string into a timespec struct.
    Derived from gnulib-dd7a871 parse-datetime.y with these changes:
            * reduced to a single function API renamed to parse_date()
            * removed gnulib dependencies
            * removed debugging
            * converted to util-linux coding style

* include/cctype.h - new file
    Like ctype.h only hard coded to the 'C' locale.
    Used by lib/parse-date.y.
    Derived from gnulib-dd7a871 c-ctype.h with these changes:
            * removed gnulib dependencies
            * converted to util-linux coding style
            * add requisite util-linux constants

Signed-off-by: J William Piggott <elseifthen@gmx.com>
include/cctype.h [new file with mode: 0644]
include/timeutils.h
lib/parse-date.y [new file with mode: 0644]