TCC2WAT is a library, that will, when completed, serve as an easy way to compile apps designed for Turbo C or Borland C with OpenWatcom. Currently about two thirds of the Turbo C functions for which there are no OpenWatcom equivalents are implemented, and there has been no release yet. As of now, many FreeDOS programs can be compiled with TCC2WAT by simply including tcc2wat.h, copying direct.h in the Watcom installation to dir.h, copying malloc.h in the Watcom installation to alloc.h, and copying stdbool.h to bool.h, with little or no actual source code changes. It is noteworthy, however, that since the Watcom linker does not remove unused functions from the exe, it is benificial to remove all of the unused functions in tcc2wat to achieve an optimal program size.
The currently implemented functions are:
- complex()
- random()
- stime()
- _chmod()
- ctrlbrk()
- getftime()
- setftime()
- searchpath()
- biosdisk()
- absread()
- abswrite()
- biostime()
- bdosptr()
- getcbrk()
- getcurdir()
- getdta()
- setdta()
- getfat()
- getfatd()
- getpsp()
- ioctl()
- getpass()
- _matherr()
- _read()
- _write()
- _creat()
- creatnew()
- creattemp()
- setcbrk
- getdisk()
- setdisk()
- fnsplit()
- parsfnm()
- randbrd()
- randbwr()
- stpcpy()
- textbackground()
- textcolor()
- textattr()
- highvideo()
- lowvideo()
- normvideo()
- clrscr()
- wherex()
- wherey()
- gotoxy()
- gettext()
- puttext()
- movetext()
- delline()
- clreol()
- window()
- gettextinfo()
- geninterrupt()
- dostounix()
- unixtodos()
- country()
And the currently missing functions are:
- bcd()
- conj()
- gsignal()
- norm()
- polar()
- poly()
- farcoreleft()
- coreleft()
If anyone has an implementation of these functions, please send it to me.