X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..4019fe4dab5da2a8352a6b2bdda6732ce7d4e366:/lib/strptime.c diff --git a/lib/strptime.c b/lib/strptime.c index 83d010d..27ef40a 100644 --- a/lib/strptime.c +++ b/lib/strptime.c @@ -26,10 +26,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ - -/* strptime() is here reimplemented because the FreeBSD (and older MacOS) one +/** @file lib/strptime.c + * @brief strptime() reimplementation + * + * strptime() is here reimplemented because the FreeBSD (and older MacOS) one * is broken and does not report errors properly. See TODO remarks below for - * some missing bits. */ + * some missing bits. + */ #include #include @@ -37,8 +40,12 @@ #include #include "strptime.h" +/** @brief Lookup table entry for locale-specific strings */ struct locale_item_match { + /** @brief Locale key to try */ nl_item key; + + /** @brief Value to return if value of @ref key matches subject string */ int value; };