X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/05a5871cd219968464e2c07fbe334891e458e9b3..refs/heads/master:/h/icalendar.h?ds=inline diff --git a/h/icalendar.h b/h/icalendar.h index a1a01228..917339e7 100644 --- a/h/icalendar.h +++ b/h/icalendar.h @@ -1,5 +1,4 @@ -/* - * icalendar.h -- data structures and common code for icalendar scanner, +/* icalendar.h -- data structures and common code for icalendar scanner, * parser, and application code * * This code is Copyright (c) 2014, by the authors of nmh. See the @@ -40,6 +39,7 @@ typedef struct contentline { char *input_line; /* The (unfolded) input line. */ size_t input_line_len; /* Amount of text stored in input_line. */ size_t input_line_size; /* Size of allocated input_line. */ + charstring_t unexpected; /* Accumulate unexpected characters in input. */ cr_indicator cr_before_lf; /* To support CR before LF. If the first line of the input has a CR before its LF, @@ -71,14 +71,9 @@ void add_param_name (contentline *, char *); void add_param_value (contentline *, char *); void remove_value (value_list *); struct contentline *find_contentline (contentline *, const char *, - const char *); + const char *) PURE; void free_contentlines (contentline *); -typedef struct tzdesc *tzdesc_t; -tzdesc_t load_timezones (const contentline *); -void free_timezones (tzdesc_t); -char *format_datetime (tzdesc_t, const contentline *); - /* * The following provide access to, and by, the iCalendar parser. */ @@ -98,7 +93,7 @@ int icallex (void); extern YYSTYPE icallval; /* - * For directing the scanner to use a files other than stdin/stdout. + * For directing the scanner to use files other than stdin/stdout. * These don't use the accessors provided by modern flex because * flex 2.5.4 doesn't supply them. */