From 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging tags --- yhttpd-0.7.0/src/wrap.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 yhttpd-0.7.0/src/wrap.cpp (limited to 'yhttpd-0.7.0/src/wrap.cpp') diff --git a/yhttpd-0.7.0/src/wrap.cpp b/yhttpd-0.7.0/src/wrap.cpp new file mode 100755 index 0000000..81c6679 --- /dev/null +++ b/yhttpd-0.7.0/src/wrap.cpp @@ -0,0 +1,32 @@ +#ifndef WRAP_CPP +#define WRAP_CPP + +#include "wrap.h" + +using namespace std; + + +conf* wrap::CONF; +html* wrap::HTML; +logd* wrap::LOGD; +modl* wrap::MODL; +#ifdef NCURSES +ncur* wrap::NCUR; +#endif +sock* wrap::SOCK; +stats* wrap::STAT; +timr* wrap::TIMR; +dynamic_wrap* wrap::WRAP; + +void +wrap::system_message( string s_message ) +{ +#ifdef NCURSES + wrap::NCUR->print( s_message ); +#endif +#ifdef SERVMSG + cout << s_message << endl; +#endif + wrap::LOGD->log_simple_line( s_message + "\n" ); +} +#endif -- cgit v1.2.3