Files
nethack/sys/share
nhmall 3d6fabf730 nhclose
Changes to be committed:
	modified:   include/extern.h
	modified:   src/bones.c
	modified:   src/do.c
	modified:   src/files.c
	modified:   src/music.c
	modified:   src/restore.c
	modified:   src/save.c
	modified:   sys/share/pcmain.c
	modified:   sys/share/pcsys.c
	modified:   sys/share/pcunix.c

In order to get level file locking correctly again post 3.4.3
with the newer compilers for windows, I had to funnel close()
calls to an intercepting routine.

I had two choices:

1. Surround every close() in at least 9 source files with messy:
	#ifdef WIN32
		nhclose(fd);
	#else
		close(fd);
	#endif

OR

2. Replace every close() with nhclose() and
   deal with the special code in the nhclose()
   version for windows, while just calling
   close() for other platforms (in files.c).

   It is also possible, although not done in this commit,
   to
	#define nhclose(fd) close(fd)
   in a header file for non-windows, rather than funnel
   though a real nhclose() function in files.c.
2015-04-06 10:12:10 -04:00
..
2002-01-05 21:05:59 +00:00
2015-03-31 09:50:02 -04:00
2002-01-05 21:05:57 +00:00
2015-03-21 20:37:44 +02:00
2015-04-05 09:26:01 -04:00
2015-03-21 20:37:44 +02:00
2015-04-02 20:16:25 +03:00
2015-04-06 10:12:10 -04:00
2015-04-06 10:12:10 -04:00
2015-04-06 10:12:10 -04:00
2002-01-05 21:05:58 +00:00
2002-01-05 21:05:58 +00:00
2015-03-17 18:46:39 +02:00