copyright headers and date bumps

This commit is contained in:
Danny Robson 2014-09-17 18:20:28 +10:00
parent b297f168f7
commit 84ca008305
4 changed files with 49 additions and 2 deletions

View File

@ -1,8 +1,31 @@
/*
* This file is part of libgim.
*
* libgim 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 3 of the License, or (at your option) any later
* version.
*
* libgim 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 libgim. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
*/
#ifndef __UTIL_BACKTRACE_HPP
#define __UTIL_BACKTRACE_HPP
#include <string> #include <string>
#include <vector> #include <vector>
#include <iostream> #include <iostream>
//-----------------------------------------------------------------------------
namespace debug { namespace debug {
class backtrace { class backtrace {
protected: protected:
@ -21,3 +44,4 @@ namespace debug {
} }
#endif

View File

@ -1,3 +1,23 @@
/*
* This file is part of libgim.
*
* libgim 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 3 of the License, or (at your option) any later
* version.
*
* libgim 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 libgim. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
*/
#include "backtrace.hpp" #include "backtrace.hpp"
#include "debug.hpp" #include "debug.hpp"
@ -8,9 +28,11 @@
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
using namespace std; using namespace std;
//-----------------------------------------------------------------------------
debug::backtrace::backtrace (void): debug::backtrace::backtrace (void):
m_frames (DEFAULT_DEPTH) { m_frames (DEFAULT_DEPTH) {
@ -25,6 +47,7 @@ debug::backtrace::backtrace (void):
} }
//-----------------------------------------------------------------------------
ostream& ostream&
debug::operator <<(ostream &os, const debug::backtrace &rhs) { debug::operator <<(ostream &os, const debug::backtrace &rhs) {
const auto frames = rhs.frames (); const auto frames = rhs.frames ();

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with libgim. If not, see <http://www.gnu.org/licenses/>. * along with libgim. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2010 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
*/ */
#include "maths.hpp" #include "maths.hpp"

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with libgim. If not, see <http://www.gnu.org/licenses/>. * along with libgim. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2010 Danny Robson <danny@nerdcruft.net> * Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef __MATHS_HPP #ifndef __MATHS_HPP