HomeFreeBSD

Make sure `games/cake' runs OK on amd64 (and possibly other 64-bit

Description

Make sure `games/cake' runs OK on amd64 (and possibly other 64-bit
architectures):

  • Console::SetFontSize() method calls Console::Recalculate_NLines() which might access ConsoleLines[] array before it is constructed, Recalculate_NLines() is explicitly called after ConsoleLines[] is allocated and populated, so just comment out problematic call in SetFontSize(); it is called only once anyway (the problem did not exhibit itself on i386 for some reason);
  • The code assumes that sizeof(long) == 4 in too many places, e.g. in on-disk file format layouts and such. Fixing all structures would be too much trouble; instead, simply replace those long's with int's, [un]signed as appropriate.

Details

Provenance
danfeAuthored on
Parents
rP437343: Add textproc/greple and devel/p5-Getopt-EX, which greple depends on.
Branches
Unknown
Tags
Unknown