This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libmcal/libmcal-0.7-flexfix.patch

30 lines
527 B
Diff
Raw Normal View History

--- 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;
<<EOF>> return ICALTOK_EOF;
+
+%%
+
+void
+ical_usebuf(const char *buf, size_t size)
+{
+ BEGIN(INITIAL);
+ yy_scan_bytes(buf, size);
+}