Re: dos is a lost cause !
- Posted by jimcbrown (admin) Jul 02, 2013
- 4987 views
Take the DOS archive software and show me that you can build it with OPENWATCOM. It can't even build WIN32 code.
I just tried this and I was able to build eui, euiw, euc, eub, and euid.
In addition to adding msgtext.e, I had to add euphoria.h from http://rapideuphoria.svn.sourceforge.net/viewvc/rapideuphoria/trunk/include/euphoria.h?revision=2428
Also, the instructions to modify makefile.wat in http://openeuphoria.org/forum/m/121960.wc are not enough. I had to add it to EUDEBUG as well as manually adding that flag to a variety of places where the interpreter is invoked (e.g. findjmp.ex or revget.ex).
Then, I modified make_be_callback.ex to set TOTAL to 20 instead of 1000 (to avoid the DOS max c file size limit) and generated be_callback.c
Next, the be_callc.c code I had for DOS did not work (since it was derived from a later version of the source). I fixed this up.
Finally I changed line 4540 of be_machine.c from "else {" to "} else {".
I seem to be locked out of my SVN account for the time being, so I can't commit these changes. Instead, I'll put up some links.
Here is a big diff of all the changes that I made:
http://openeuphoria.org/eubins/misc/dos.diff
Here are the individual files for download (not including euphoria.h or msgtext.e):
http://openeuphoria.org/eubins/misc/eu40dos.tar