This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
setup ChangeLog LogFile.cc LogFile.h LogSingle ...
- From: corinna at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: Wed, 04 Feb 2015 10:10:42 +0000
- Subject: setup ChangeLog LogFile.cc LogFile.h LogSingle ...
CVSROOT: /cvs/cygwin-apps
Module name: setup
Changes by: corinna@sourceware.org 2015-02-04 10:10:42
Modified files:
. : ChangeLog LogFile.cc LogFile.h LogSingleton.h
archive_tar.cc desktop.cc dialog.cc download.cc
ini.cc install.cc localdir.cc main.cc msg.cc
netio.cc threebar.cc
Log message:
* Throughout, include LogFile.h instead of LogSingleton.h where
required.
* LogFile.cc (LogFile::exit_msg): Convert globally available variable
to protected, static LogFile member.
(LogFile::exit): Accept second parameter to decide if the end of install
message is to be printed. Revert to using the exit_code as is.
* LogFile.h (LogFile::setExitMsg): New static method. Use throughout
rather than setting exit_msg directly.
(LogFile::getExitMsg): Ditto.
(LogFile::exit): Add second parameter to prototype.
(LogFile::exit_msg): New static member.
(Logger): New macro defining simplified access th logger instance.
Use throughout in place of LogSingleton::GetInstance and direct access
to theLog.
* LogSingleton.h (LogSingleton::exit): Add second parameter to
prototype.
* desktop.cc (theLog): Remove extern declaration.
(set_status): Call Logger ().getExitMsg () instead of
accessing exit_msg directly.
* localdir.cc (theLog): Remove extern declaration.
* main.cc (theLog): Remove.
(WinMain): Introduce local variables to store requirement to print
help output and if command line options were used incorrectly. Use
throughout function.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.864&r2=2.865
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.cc.diff?cvsroot=cygwin-apps&r1=2.23&r2=2.24
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.h.diff?cvsroot=cygwin-apps&r1=2.8&r2=2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogSingleton.h.diff?cvsroot=cygwin-apps&r1=2.6&r2=2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive_tar.cc.diff?cvsroot=cygwin-apps&r1=2.20&r2=2.21
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/desktop.cc.diff?cvsroot=cygwin-apps&r1=2.62&r2=2.63
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/dialog.cc.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/download.cc.diff?cvsroot=cygwin-apps&r1=2.58&r2=2.59
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ini.cc.diff?cvsroot=cygwin-apps&r1=2.61&r2=2.62
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.113&r2=2.114
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/localdir.cc.diff?cvsroot=cygwin-apps&r1=2.40&r2=2.41
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/main.cc.diff?cvsroot=cygwin-apps&r1=2.79&r2=2.80
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/msg.cc.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/netio.cc.diff?cvsroot=cygwin-apps&r1=2.16&r2=2.17
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/threebar.cc.diff?cvsroot=cygwin-apps&r1=2.22&r2=2.23