gnupic: [PATCH] gpasm scan.l
Subject:
Re: [PATCH] gpasm scan.l
From:
Craig Franklin ####@####.####
Date:
14 Oct 2004 05:06:23 +0100
Message-Id: <416DB523.5050508@users.sourceforge.net>
Robert James Kaes wrote:
>Craig,
>I've included the small patch against gpasm's scan.l file. Without it
>my system cannot compile gpasm.
> -- Robert
>
>
>
gputils supports flex version 2.5.4(a). The last time I checked, it was
the current stable version. From what I understand, this feature was
introduced in a development version. Because I have no problems with
the stable version of flex, I am not inclined to "upgrade" to the
development version.
scan.c is include in the distribution. Unless you make changes to
scan.l, there should be no reason to regenerate the file.
In the future, when this feature appears in the stable version of flex.
I will apply the patch.
Thanks.
>Index: scan.l
>===================================================================
>RCS file: /cvsroot/gputils/gputils/gpasm/scan.l,v
>retrieving revision 1.34
>diff -u -u -r1.34 scan.l
>--- scan.l 26 Sep 2004 20:04:11 -0000 1.34
>+++ scan.l 13 Oct 2004 19:50:28 -0000
>@@ -607,7 +607,7 @@
> state.src = new;
>
> state.src->fc = add_file(ft_src, new->name); /* scan list for fc */
>- YY_CURRENT_BUFFER = yy_scan_buffer(macro_src, macro_src_size);
>+ yy_switch_to_buffer(yy_scan_buffer(macro_src, macro_src_size));
>
> }
>
>@@ -628,7 +628,7 @@
> state.src->lst.m = h->body;
>
> yy_delete_buffer(YY_CURRENT_BUFFER);
>- YY_CURRENT_BUFFER = yy_scan_buffer(macro_src, macro_src_size);
>+ yy_switch_to_buffer(yy_scan_buffer(macro_src, macro_src_size));
>
> }
>
>
>
>