Ok, to try to build jed for windows 3.1, I got the openwatcom compiler (http://www.openwatcom.org <http://www.openwatcom.org> ). Note that this combination was previously unsupported... I have some problems: 1) slwcwidth.c and slwcwidth.h are invalid names for FAT, and the 16bit version of watcom can't find those (even while running on NTFS...). I have renamed those to slwcwidt.[ch] to make it work. 2) SL_KEY_ERR has a value outside the range of a 16bit int. 3) miscellaneus missing functions, ecc. So I have some small patches: I divided those in 2 categories: 1) Fixes to problems found by using this compiler (slang-2-fixes.diff). These are (AFAICS) fixes to real problems, and can be applied anyways. in details, this patches: - slang.c: inner_interp(): remove a do-nothing loop (probably a mismerge or a cut-and-paste mistake). Note that this does nothing anyways, it only wastes space. - slarray.c: array_eqs_method(): assignement inside if(). GCC doesn't signal it because is between redundant parenteses. - slmath.c: _pSLmath_isnan(): great care is taken to define the macro ISNAN_FUN, but then isnan() is called. 2) support for watcom compiler on WIN16. this changes makefile.all, slconfig.h, slposdir.c, and slang.h (!!), the change to slang.h is the most problematic, it lowers the value of SL_KEY_ERR. I do it only for 16 bit system, to avoid breaking compatibility for other systems. (note that also slang 1.4.9 has the same problem)... in SLang it is used only twice: as return value for SLkp_getkey(), tuncating the value to an int, and checked in slcurses.c: get_keypad_key()). but applications can use it... so it scares me a bit... But the big question is: should we still support 16 bit systems? on DOS we can use a dos extender (openwatcom can use some)... for window 3.1 can we use win32s? this restricts execution to 386+, but does impose extra limits on operating systems. What John and others think about this? Thanks, Dino PS: I have not tried to compile JED, so other issued may arise.
Attachment:
slang-2-fixes.diff
Description: Binary data
Attachment:
slang-win16-watcom.diff
Description: Binary data