Re: A little help with phix - please
- Posted by petelomax Feb 23, 2018
- 1317 views
Comment out the include std/ as shown above.
That may cause errors, but we can fix those, for instance you may need to take a copy of peek_wstring() from std/machine.e, put it in a new file, say peek_wstring.e, and include it like this:
--/**/include peek_wstring.e
that is, if you want the same code to run on both phix and OE. Of course it is about time phix had a peek_wstring() of its own (as an autoinclude), I'll do that for the next release.
I also noticed that you are using allocate() and then delete(), which is completely wrong - you need to use free() instead of delete().