Files
nethack/sys/mac
nhmall 42a13a1198 has_color() performance fixes
Performance profiling showed that multiple strcmpi() calls were
occurring each and every time a character was going to the map.

This update:
- honors the WC_COLOR capability
- It allows a window-port to control individual color availability should the window-port wish to do so.
- Makes checking on the individual colors for the active window-port is a straightforward table lookup at the CLR_ offset.

iflags.use_color remains a master on/off switch for use of color, regardless of the capability
compiled into the game (default TRUE).

The has_color() routine, which is now a shared routine in src/windows.c, could likely be made
into a simple macro to eliminate the function call, but this update does not go that far.

This hits a lot of port files due to the window-port interface change, mostly cookie-cutter.
2019-11-30 11:44:07 -05:00
..
2018-11-11 10:29:52 -05:00
2015-05-25 09:21:31 +09:00
2004-08-10 05:37:41 +00:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-06 22:04:27 -04:00
2002-01-05 21:05:55 +00:00
2018-04-25 15:00:13 -04:00
2019-01-29 17:14:55 -08:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2015-10-17 18:47:31 +03:00
2018-04-25 15:00:13 -04:00
2019-11-30 11:44:07 -05:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2002-01-05 21:05:55 +00:00
2015-05-06 22:04:27 -04:00
2015-05-25 09:21:31 +09:00
2002-03-20 06:30:23 +00:00
2002-01-05 21:05:56 +00:00
2002-03-20 13:48:22 +00:00

Jan 2002

The MPW compilers are now supported again.

Support for 68k has been discontinued due to a lack of a debugging
system for 68k binaries.

Note that the tiled MacOS X port uses the Qt windowport and the UNIX
build system, not this windowport code.


26 Nov, 1999

NetHack 3.3.0 was built with Metrowerk's Pro 4 compiler on a PPC
system.  We are still compiling with 68K alignment because we know
it works.  No one has checked lately if the PPC alignment bug
still exists.


23 May, 1996
 
NetHack 3.2.1 was built with Metrowerk's DR8 compiler on a PPC system.
The official 68K and PPC versions were compiled with 68K Alignment
to share files.  The 3.2.0 versions were compiled with PPC alignment,
but it was discovered that the Metrowerks 68K compiler has a bug with
PPC alignment and structures that can be aligned to a single byte.  This
bug _may_ be fixed in DR10, it is not fixed in DR9.  Why bother with PPC
alignment at all?  Because the space saving from 68K alignment is small
and the PowerPC version will run better.  The 68K version was compiled
with 4 byte ints using the far model.
 
Only the Metrowerks compiler has been used to compile the code in a
long time.  It is _very_ likely that the other compilers, Think C and
MPW C, will no longer be able to compile NetHack out of the box.  They
and their files have been moved to the "old" directory until such time
that someone can compile with them.