Got distracted with the other threads. :-)
Confirmed that your fix works in my local build-from-svn.
Thanks!
Andrew.
On 4-Dec-09, at 2:35 AM, Clifford Wolf wrote:
> Hi Andrew,
>
> On Wed, Dec 02, 2009 at 01:03:14PM -0500, Andrew Plumb wrote:
>> I've found a way to make "<filename.scad>" includes work for me, but
>> this probably isn't the proper way to fix things:
>
> thans for your effort with debugging this issue.
>
> after I have seen your patches it was totally clear to me what went
> wrong.
> The following patch (applied already to subversion trunk) solves the
> problem:
>
> --snip--
> Index: lexer.l
> ===================================================================
> --- lexer.l (revision 141)
> +++ lexer.l (revision 142)
> @@ -73,7 +73,7 @@
> }
>
> <<EOF>> {
> - if (yyin)
> + if (yyin && yyin != stdin)
> fclose(yyin);
> yypop_buffer_state();
> if (!YY_CURRENT_BUFFER)
> --snap--
>
> yours,
> - clifford
>
> --
> "Premature optimization is the root of all evil." - Donald Knuth
> _______________________________________________
> OpenSCAD mailing list
>
[hidden email]
>
http://rocklinux.net/mailman/listinfo/openscad--
"The future is already here. It's just not very evenly distributed"
-- William Gibson