diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/debug.cc | 12 | ||||
-rw-r--r-- | server/src/debug.h | 19 | ||||
-rw-r--r-- | server/src/pracrodao.cc | 10 | ||||
-rw-r--r-- | server/src/pracrodao.h | 15 | ||||
-rw-r--r-- | server/src/pracrodaopgsql.cc | 10 | ||||
-rw-r--r-- | server/src/pracrodaopgsql.h | 14 |
6 files changed, 61 insertions, 19 deletions
diff --git a/server/src/debug.cc b/server/src/debug.cc index 6207a1e..54a2191 100644 --- a/server/src/debug.cc +++ b/server/src/debug.cc @@ -1,3 +1,13 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * debug.cc + * + * Wed Feb 11 11:22:12 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + /* * This file is part of Pracro. * @@ -15,6 +25,7 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include "debug.h" #include <config.h> @@ -22,7 +33,6 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> -#include "debug.h" #define NELEM(x) (sizeof(x)/sizeof((x)[0])) struct __pracro_debug_channel diff --git a/server/src/debug.h b/server/src/debug.h index 0e64a27..319587d 100644 --- a/server/src/debug.h +++ b/server/src/debug.h @@ -1,31 +1,32 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set et sw=2 ts=2: */ /*************************************************************************** * debug.h * - * Tue Mar 27 11:06:45 CEST 2007 - * Copyright 2006 Bent Bisballe Nyeng + * Wed Feb 11 11:22:12 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* - * This file is part of Artefact. + * This file is part of Pracro. * - * Artefact is free software; you can redistribute it and/or modify + * Pracro is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * - * Artefact is distributed in the hope that it will be useful, + * Pracro is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Artefact; if not, write to the Free Software + * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __ARTEFACT_DEBUG_H__ -#define __ARTEFACT_DEBUG_H__ +#ifndef __PRACRO_DEBUG_H__ +#define __PRACRO_DEBUG_H__ #include <stdarg.h> @@ -129,4 +130,4 @@ int __pracro_log_va(const char *func, const int line, enum __pracro_debug_class #endif/*WITH_DEBUG*/ -#endif/*__ARTEFACT_DEBUG_H__*/ +#endif/*__PRACRO_DEBUG_H__*/ diff --git a/server/src/pracrodao.cc b/server/src/pracrodao.cc index 4dcaae1..3d7631c 100644 --- a/server/src/pracrodao.cc +++ b/server/src/pracrodao.cc @@ -1,5 +1,13 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * pracrodao.cc + * + * Wed Feb 11 11:17:37 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + /* * This file is part of Pracro. * @@ -17,7 +25,6 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ - #include "pracrodao.h" PracroDAO::PracroDAO(std::string _host, std::string _port, std::string _user, std::string _passwd, std::string _dbname) @@ -32,4 +39,3 @@ PracroDAO::PracroDAO(std::string _host, std::string _port, std::string _user, st PracroDAO::~PracroDAO() { } - diff --git a/server/src/pracrodao.h b/server/src/pracrodao.h index 285b310..580dfdd 100644 --- a/server/src/pracrodao.h +++ b/server/src/pracrodao.h @@ -1,5 +1,13 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * pracrodao.h + * + * Wed Feb 11 11:17:37 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + /* * This file is part of Pracro. * @@ -17,10 +25,11 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __PRACRO_PRACRODAO_H -#define __PRACRO_PRACRODAO_H +#ifndef __PRACRO_PRACRODAO_H__ +#define __PRACRO_PRACRODAO_H__ #include <string> + #include "dbtypes.h" #include "template.h" #include "transaction.h" @@ -43,4 +52,4 @@ protected: std::string dbname; }; -#endif +#endif/*__PRACRO_PRACRODAO_H__*/ diff --git a/server/src/pracrodaopgsql.cc b/server/src/pracrodaopgsql.cc index d5646bb..05cd46d 100644 --- a/server/src/pracrodaopgsql.cc +++ b/server/src/pracrodaopgsql.cc @@ -1,5 +1,13 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * pracrodaopgsql.cc + * + * Wed Feb 11 11:18:26 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + /* * This file is part of Pracro. * @@ -17,6 +25,7 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include "pracrodaopgsql.h" /* * Updating the old tables; @@ -32,7 +41,6 @@ #include <stdlib.h> -#include "pracrodaopgsql.h" #include "debug.h" PracroDAOPgsql::PracroDAOPgsql(std::string _host, std::string _port, std::string _user, std::string _passwd, std::string _dbname) diff --git a/server/src/pracrodaopgsql.h b/server/src/pracrodaopgsql.h index e5d75d5..7218a19 100644 --- a/server/src/pracrodaopgsql.h +++ b/server/src/pracrodaopgsql.h @@ -1,5 +1,13 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * pracrodaopgsql.h + * + * Wed Feb 11 11:18:26 CET 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + /* * This file is part of Pracro. * @@ -17,8 +25,8 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __PRACRO_PRACRODAOPGSQL_H -#define __PRACRO_PRACRODAOPGSQL_H +#ifndef __PRACRO_PRACRODAOPGSQL_H__ +#define __PRACRO_PRACRODAOPGSQL_H__ #include "pracrodao.h" #include <pqxx/pqxx> @@ -37,4 +45,4 @@ private: pqxx::connection *conn; }; -#endif +#endif/*__PRACRO_PRACRODAOPGSQL_H__*/ |