--- libmcal/icalscanner.lex 2003-01-28 09:45:21.000000000 -0800 +++ libmcal/icalscanner.lex.new 2006-04-01 22:47:58.515410944 -0800 @@ -32,13 +32,6 @@ */ #include "icalroutines.h" - -void -ical_usebuf(const char *buf, size_t size) -{ - BEGIN(INITIAL); - yy_scan_bytes(buf, size); -} %} @@ -68,3 +61,12 @@ {LF} BEGIN(INITIAL); return ICALTOK_LF; . return ICALTOK_JUNK; <> return ICALTOK_EOF; + +%% + +void +ical_usebuf(const char *buf, size_t size) +{ + BEGIN(INITIAL); + yy_scan_bytes(buf, size); +}