nhmall
c7276bcf67
more MSYS2 warning clean-up
2024-12-12 22:35:38 -05:00
nhmall
e08bd9ef8a
Windows NetHackW memory leak bit
2024-12-10 14:49:56 -05:00
nhmall
52a9af7278
early_init() was being called twice on Windows GUI
2024-11-13 13:57:18 -05:00
nhmall
fa9210aa65
Windows: free more allocated memory before exit
...
This gets rid of the final leak complaint on Windows as of Nov 13, 2024
2024-11-13 13:48:50 -05:00
nhmall
277a0e4464
Windows NetHackW.c bit
2024-11-12 19:30:43 -05:00
nhmall
7414b906b2
release some memory before exit under Windows
2024-11-11 16:50:57 -05:00
RainRat
a3658f85ac
fix typos
2024-02-28 20:15:56 -08:00
nhmall
e69c98c14a
Windows follow-up: minimize pragma scope
...
Avoid disruption to mingw32-x64 build, by placing
some Visual Studio pragmas in #ifdef _MSC_VER
conditional blocks.
2023-12-27 15:00:08 -05:00
nhmall
3eb0fab317
Windows error checking and warnings
2023-12-27 14:56:03 -05:00
nhkeni
8c095b009a
Add CRASHREPORT, show contact form on panic/impossible
...
When calling panic() or impossible(), create the option
of opening a browser window with most of the fields
already populated. Code for MacOS and linux is included;
other ports are affected by argument change to early_init
which are done but not tested.
To enable, define CRASHREPORT in config.h and set
CRASHREPORTURL in sysconf to (for the moment at least)
http[s]://www.nethack.org/common/contactcr.html
Adds --grep-defined option to makedefs for Makefiles.
Adds "bid" (binary identifier), an MD4 of the main nethack
binary. This is ONLY for helping (in the future) contact.html
to set the "NetHack from" field automatically for our own
binaries. This can be faked, but the user can lie so nothing
lost. There's nothing magic about MD4; other ports can use
anything that prodcues a long apparently random string we can
match against.
- new option --bidshow for us to get the MD4 of a
released binary so I can add it to the website.
Only available in wizard mode and not in nethack.6.
- typo macos -> macosx in hints file
No support for packaging builds as I'm not sure what that
would look like.
Adds a javascript helper for MacOS.
Adds a lua helper for linux (and builds and installs
nhlua).
2023-09-06 12:27:13 -04:00
nhmall
6e136c6f7d
more ATTNORETURN
...
A recent commit to alloc.c by Keni drew attention to the fact that
there are extern prototypes scattered around in various .c files.
Those can make use of ATTRNORETURN (non-gcc compilers and C23) the
same way the prototypes in extern.h can, and they were overlooked
when ATTRNORETURN was first added.
2023-01-12 15:38:15 -05:00
Feiyun Wang
4827540305
Make WinMain() to call mingw_main() instead of main() for mingw32 version.
2022-01-27 18:33:52 -05:00
Feiyun Wang
3de2b825b0
Fix mingw32 building errors.
2022-01-27 18:33:52 -05:00
Alva Melkerson
dc7dff1d7e
Update NetHackW.c
...
Updated some comments that referred to an old file name
2021-11-11 17:35:11 -06:00
nhmall
ca1f7c88d4
deal with some win/win32 warnings
...
win/win32/mhdlg.c(137) : warning C4456: declaration of 'wbuf' hides
previous local declaration
win/win32/mhdlg.c(62) : note: see declaration of 'wbuf'
win/win32/mhdlg.c(875) : warning C4189: 'gender': local variable is
initialized but not referenced
win/win32/mhdlg.c(874) : warning C4189: 'race': local variable is
initialized but not referenced
win/win32/mhdlg.c(876) : warning C4189: 'alignment': local variable is
initialized but not referenced
win/win32/mhdlg.c(873) : warning C4189: 'role': local variable is
initialized but not referenced
win/win32/mhinput.h(24) : warning C4201: nonstandard extension used:
nameless struct/union
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhinput.h(24) : warning C4201: nonstandard extension used:
nameless struct/union
win/win32/mhinput.h(24) : warning C4201: nonstandard extension used:
nameless struct/union
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhmenu.c(62) : warning C4201: nonstandard extension used:
nameless struct/union
win/win32/mhmenu.c(1082) : warning C4456: declaration of 'monitorScale'
hides previous local declaration
win/win32/mhmenu.c(995) : note: see declaration of 'monitorScale'
win/win32/mhmenu.c(1142) : warning C4456: declaration of 'wbuf' hides
previous local declaration
win/win32/mhmenu.c(986) : note: see declaration of 'wbuf'
win/win32/mhmenu.c(1082) : warning C4189: 'monitorScale': local variable
is initialized but not referenced
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhmsgwnd.c(700): warning C4701: potentially uninitialized
local variable 'size' used
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhsplash.c(158): warning C4189: 'verstrsize': local variable
is initialized but not referenced
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhstatus.c(353): warning C4057: 'function':
'const unsigned char *' differs in indirection
to slightly different base types from 'const char *'
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/mhmsg.h(70) : warning C4200: nonstandard extension used:
zero-sized array in struct/union
win/win32/NetHackW.c(181): warning C4456: declaration of 'buf' hides
previous local declaration
win/win32/NetHackW.c(90) : note: see declaration of 'buf'
win/win32/NetHackW.c(189): warning C4456: declaration of 'buf' hides
previous local declaration
win/win32/NetHackW.c(90) : note: see declaration of 'buf'
2021-01-29 13:00:00 -05:00
nhmall
f963c5aca7
switch source tree from k&r to c99
2021-01-26 21:06:16 -05:00
nhmall
ac9ba38449
file header bump from "NetHack 3.6" to "NetHack 3.7"
2020-08-03 22:07:36 -04:00
nhmall
bb1a0dd60b
build warning for noreturn function that does return
...
The warning showed up with gcc on msdos (__DJGPP__)
end.c: In function 'nh_terminate':
end.c:1729:1: warning: 'noreturn' function does return
}
^
2020-06-08 14:44:29 -04:00
nhmall
969247cc14
Merge branch 'NetHack-3.6'
2019-05-27 18:44:33 -04:00
nhmall
6f71f483d2
make the rc file match the build target name for Windows
2019-05-27 18:42:25 -04:00