From 23c5e7d57e1e9216f4da3446656df2dc7202975d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:45 +0200 Subject: tagging ychat-0.1 --- conf.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) mode change 100755 => 100644 conf.cpp (limited to 'conf.cpp') diff --git a/conf.cpp b/conf.cpp old mode 100755 new mode 100644 index 6e544ad..2c7705e --- a/conf.cpp +++ b/conf.cpp @@ -1,26 +1,36 @@ // class conf implementation. -#ifndef s_conf_CXX -#define s_conf_CXX +#ifndef CONF_CXX +#define CONF_CXX #include #include "conf.h" using namespace std; -conf::conf( string s_conf = s_confILE ) : name( s_conf ) +conf::conf( string s_conf = CONFILE ) : name( s_conf ) { +#ifdef VERBOSE + cout << "conf::conf()" << endl; +#endif + parse( ); // parse the config file. } conf::~conf() { +#ifdef VERBOSE + cout << "conf::~conf()" << endl; +#endif } void conf::parse() { -#ifdef VERBOSE +#ifdef VERBOSE_ + cout << "conf::parse()" << endl; +#endif +#ifdef _VERBOSE cout << CFILEOK << get_name() << endl; #endif @@ -28,7 +38,7 @@ conf::parse() if ( ! fs_conf ) { -#ifdef VERBOSE +#ifdef _VERBOSE cout << CFILENO << get_name() << endl; #endif return; -- cgit v1.2.3