]> diplodocus.org Git - nmh/blobdiff - h/icalendar.h
Hacked m_Eom() to fix test-eom-align.
[nmh] / h / icalendar.h
index a1a012286dcbe0848f10be70c017b2a8853a9899..be7244e280c10cdd72e4d73fcd62fd082ad93336 100644 (file)
@@ -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,
@@ -93,12 +93,13 @@ extern int icaldebug;
 int icalparse (void);
 extern vevent vevents;
 int icallex (void);
+extern int parser_status;
 
 /* And this is for the icalendar scanner. */
 extern YYSTYPE icallval;
 
 /*
- * For directing the scanner to use 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.
  */