X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=parse-time-string%2Fparse-time-string.h;h=c90d694716cda99086f819c584449e6eeae2a148;hb=37492858b61907e4728b2e68e67238c68e9a0d49;hp=bfa4ee3560f62241644c45459a40fafb674f6944;hpb=d86522637a7cd0455c127284ebccf3645d681441;p=notmuch
diff --git a/parse-time-string/parse-time-string.h b/parse-time-string/parse-time-string.h
index bfa4ee35..c90d6947 100644
--- a/parse-time-string/parse-time-string.h
+++ b/parse-time-string/parse-time-string.h
@@ -13,7 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
+ * along with this program. If not, see .
*
* Author: Jani Nikula
*/
@@ -30,23 +30,23 @@ extern "C" {
/* return values for parse_time_string() */
enum {
PARSE_TIME_OK = 0,
- PARSE_TIME_ERR, /* unspecified error */
- PARSE_TIME_ERR_LIB, /* library call failed */
- PARSE_TIME_ERR_ALREADYSET, /* attempt to set unit twice */
- PARSE_TIME_ERR_FORMAT, /* generic date/time format error */
- PARSE_TIME_ERR_DATEFORMAT, /* date format error */
- PARSE_TIME_ERR_TIMEFORMAT, /* time format error */
- PARSE_TIME_ERR_INVALIDDATE, /* date value error */
- PARSE_TIME_ERR_INVALIDTIME, /* time value error */
- PARSE_TIME_ERR_KEYWORD, /* unknown keyword */
+ PARSE_TIME_ERR, /* unspecified error */
+ PARSE_TIME_ERR_LIB, /* library call failed */
+ PARSE_TIME_ERR_ALREADYSET, /* attempt to set unit twice */
+ PARSE_TIME_ERR_FORMAT, /* generic date/time format error */
+ PARSE_TIME_ERR_DATEFORMAT, /* date format error */
+ PARSE_TIME_ERR_TIMEFORMAT, /* time format error */
+ PARSE_TIME_ERR_INVALIDDATE, /* date value error */
+ PARSE_TIME_ERR_INVALIDTIME, /* time value error */
+ PARSE_TIME_ERR_KEYWORD, /* unknown keyword */
};
/* round values for parse_time_string() */
enum {
- PARSE_TIME_ROUND_DOWN = -1,
- PARSE_TIME_NO_ROUND = 0,
- PARSE_TIME_ROUND_UP = 1,
- PARSE_TIME_ROUND_UP_INCLUSIVE = 2,
+ PARSE_TIME_ROUND_DOWN = -1,
+ PARSE_TIME_NO_ROUND = 0,
+ PARSE_TIME_ROUND_UP = 1,
+ PARSE_TIME_ROUND_UP_INCLUSIVE = 2,
};
/**
@@ -90,7 +90,7 @@ enum {
* seconds. This is useful for callers that require a value for
* inclusive comparison of the result.
*
- * Return 0 (PARSE_TIME_OK) for succesfully parsed date/time, or one
+ * Return 0 (PARSE_TIME_OK) for successfully parsed date/time, or one
* of PARSE_TIME_ERR_* on error. 't' is not modified on error.
*/
int parse_time_string (const char *s, time_t *t, const time_t *ref, int round);