X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1d03fb9aeca8ed1d59e41b938629e9d9ff8f49bf..199e6d2bd26ca97b8991df2a119958f5c94b65e7:/sbr/icalendar.l diff --git a/sbr/icalendar.l b/sbr/icalendar.l index 8b0721bf..0681f3ad 100644 --- a/sbr/icalendar.l +++ b/sbr/icalendar.l @@ -10,7 +10,8 @@ %{ #include "h/mh.h" #include "h/icalendar.h" -#include "sbr/icalparse.h" +#include "icalparse.h" +#include "base64.h" static char *unfold (char *, size_t *); static void destroy_icallex(void); @@ -288,7 +289,8 @@ folded-value {VALUE-CHAR}*({fold}{VALUE-CHAR}*)+ %% static char * -unfold (char *text, size_t *leng) { +unfold (char *text, size_t *leng) +{ /* It's legal to shorten text and modify leng (because we don't use yymore()). */ char *cp; @@ -320,7 +322,8 @@ unfold (char *text, size_t *leng) { * with something other than flex. */ static void -destroy_icallex(void) { +destroy_icallex(void) +{ #if defined FLEX_SCANNER && defined YY_FLEX_SUBMINOR_VERSION /* Hack: rely on fact that the the YY_FLEX_SUBMINOR_VERSION #define was added to flex (flex.skl v. 2.163) after @@ -334,12 +337,14 @@ destroy_icallex(void) { * because flex 2.5.4 doesn't. */ void -icalset_inputfile (FILE *file) { +icalset_inputfile (FILE *file) +{ yyin = file; } void -icalset_outputfile (FILE *file) { +icalset_outputfile (FILE *file) +{ yyout = file; }