]> cygwin.com Git - cygwin-apps/setup.git/commit - PickView.cc
2004-12-25 Max Bowsher <maxb@ukf.net>
authorMax Bowsher <maxb1@ukf.net>
Sat, 25 Dec 2004 23:05:57 +0000 (23:05 +0000)
committerMax Bowsher <maxb1@ukf.net>
Sat, 25 Dec 2004 23:05:57 +0000 (23:05 +0000)
commit4875ac88d479d165ebe8a25d49ce2ca126fbd18f
treef67259132128c1ccc3247f03fcd9441d9e842617
parentf4a981abcb4b92e60b7a2bc606061d015a1bddec
2004-12-25  Max Bowsher  <maxb@ukf.net>

The Big Cleanup: Phase "win32"

* win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
fragment dealing with alloca() to the single file in which it is used.
Remove fragment dealing with _MAX_PATH, and convert all uses of it
elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
includes of <wininet.h> and <windowsx.h> - see later in this log.
(IsWindowsNT): New inline function, a much simpler implementation of
Win32::OS().

* win32.cc: Delete.

* Makefile.am (setup_SOURCES): Remove "win32.cc".

* AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
* install.c (Installer::installOneSource):
Use IsWindowsNT(), not Win32::OS().
* main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.

* PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
* proppage.cc (PropertyPage::DialogProc):
Avoid using obfuscating macros from <windowsx.h>.

* archive.cc: Include or #define alloca() in the only file in which
it is used.

* nio-ie5.h: Include <wininet.h> here, where it is actually needed,
rather than in "win32.h" which is included almost everywhere.

* archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
* desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
* script.cc: Use MAX_PATH, not _MAX_PATH.
22 files changed:
AntiVirus.cc
ChangeLog
Makefile.am
PickPackageLine.cc
PickView.cc
archive.cc
archive_tar.cc
archive_tar.h
cygpackage.cc
cygpackage.h
desktop.cc
find.cc
install.cc
main.cc
mklink2.cc
mount.cc
netio.cc
nio-ie5.h
proppage.cc
script.cc
win32.cc [deleted file]
win32.h
This page took 0.038494 seconds and 5 git commands to generate.