On Saturday 08 March 2003 05:39 am, Florian Kolbe wrote:
The only major change was to remove XFRACT in favor of DOS. It's much easier to keep the DOS specific parts in #ifdef DOS-Brackets, than #ifndef XFRACT, because XFRACT does not necessarily mean all the other derivatives. I introcuded _HAVE_ALLEGRO, _HAVE_X11 and such in order optionally compile the different drivers.
The original reason for adding the Allegro code to Rich's experimental code was to make it easier to port back to DOS/WIN since Allegro has a port to that environment. I ran into the same need to use a DOS define. I'm currently looking into using autoconfig/automake so that we will be able to run a configure script prior to compiling. It is probably worth the effort to get this well on its way before doing extensive work porting to other environments.
I now downloaded Turbo C 2.01 from http://community.borland.com/museum/, so I can try to compile the DOS part (though not yet moved to d_dos.c). Can this compiler handle it? I don't know where to get another one (though I am even willing to buy one, just someone let me know which one I should get).
Actually, I would recommend gcc (or is it called djgpp?). It should be possible to use essentially the same utilities under the various environments we are interested in. One of the reasons I chose nasm for porting the assembly language was that it is available for DOS/WIN. The initial port is painful because the syntax is different from the Intel syntax (oper src,dst instead of oper dst,src). Jonathan