PicForth critical bug - broken 'include' mechanism
David McNab <[email protected]> Wed, 03 Nov 2004 02:28:16 +1300
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Message-ID | <[email protected]> |
Hi,
After a couple of frustrating hours, I've pinpointed a critical bug in
PicForth (or in PicForth's interaction with gforth), relating to file
includes.
Simplifying to an example which reproduces the brokenness, I created a
file called 'junk.fs', which has nested includes as shown below:
junk.fs
+-junk1.fs
+-junk1a.fs
+-junk1b.fs
+-junk2.fs
+-junk3.fs
When trying to compile 'junk.fs', gforth has a brain haemorrhage,
complaining that junk3.fs is a 'nonexistent file'.
The bug manifests when I do:
gforth picforth.fs -e 'include junk.fs'
It does *not* show when I do:
gforth -e 'include junk.fs'
I attach a tarball with these demo files.
Any thoughts?
--
Cheers
David
_______________________________________________
PicForth mailing list
[email protected]
http://lists.rfc1149.net/mailman/listinfo/picforth
broken-picforth.tar.gz
(application/x-gzip, 516 B) - not displayed