From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15681 invoked by alias); 4 Feb 2015 10:10:43 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 15645 invoked by uid 9078); 4 Feb 2015 10:10:42 -0000 Message-ID: <20150204101042.15642.qmail@sourceware.org> From: corinna@sourceware.org Date: Wed, 04 Feb 2015 10:10:00 -0000 To: cygwin-apps-cvs@sourceware.org Subject: setup ChangeLog LogFile.cc LogFile.h LogSingle ... User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2015-q1/txt/msg00010.txt.bz2 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