Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
return s;
}
-static int isl_stream_getc(struct isl_stream *s)
+static int stream_getc(struct isl_stream *s)
{
int c;
if (s->eof)
return c;
}
+static int isl_stream_getc(struct isl_stream *s)
+{
+ int c;
+
+ do {
+ c = stream_getc(s);
+ if (c != '\\')
+ break;
+ c = stream_getc(s);
+ } while (c == '\n');
+
+ return c;
+}
+
static void isl_stream_ungetc(struct isl_stream *s, int c)
{
if (s->file)