Hi.
26.06.2002 00:23:54, Mariano Alvarez Fernandez malfer@telefonica.net wrote:
In an attempt to produce a working "make bgitest" for bcc, I tried to
Hi, Dimitar. Have you read the doc/readme.bgi file? Do you think your patch makes sense?
Yes to both. The idea of bcc2grx is to get a Borland BGI program, convert it to GRX BGI and have it faster and better. But in the process of conversion or future development, such a program becomes incompatible with the Borland BGI, and because GRX does not support GRX BGI for BCC, the program will run on all platforms except for BCC/DOS. The patch tries to fix this issue.
If a program is compatible with both Borland BGI and GRX BGI, it can easily be changed to use either:
#if defined(__TURBOC__) && defined(__MSDOS__) #include <graphics.h> #else #include <libbcc.h>
and should be linked with _either_ graphics.lib (BCC/DOS) or GRX (all others), but not with both; so there is no problem to define the BGI symbols in GRX/BCC.
Now the bgi tests. They are mostly incompatible with Borland BGI, so either GRX BGI for BCC should be present, or there should be no bgi tests in makefile.bcc at all. The choice is yours.
Really I has never used the bgi interface, so I don't care to apply the patch
Well then simply edit makefiel.bcc and remove the bgi tests. It makes no sense to test GRX BGI for a platforform on which it is not supported by definition, and even less to use Borland graphics.lib for testing GRX library programs.
E-gards: Jimmy