diff --git a/src/.deps/Config.Po b/src/.deps/Config.Po index 063845fc7..23c5b09bd 100644 --- a/src/.deps/Config.Po +++ b/src/.deps/Config.Po @@ -98,7 +98,7 @@ Config.o Config.o: Config.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h /usr/include/sys/types.h \ - Config.h Table.h color.h Grid.h color.h TDB.h T.h stlmacros.h ../auto.h + Config.h Table.h color.h Grid.h color.h TDB.h T.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -402,6 +402,4 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/Date.Po b/src/.deps/Date.Po index 93cd62d16..75b15ba13 100644 --- a/src/.deps/Date.Po +++ b/src/.deps/Date.Po @@ -95,8 +95,7 @@ Date.o Date.o: Date.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h /usr/include/sys/types.h \ - Config.h Table.h color.h Grid.h color.h TDB.h T.h stlmacros.h ../auto.h \ - Date.h + Config.h Table.h color.h Grid.h color.h TDB.h T.h ../auto.h Date.h /usr/include/c++/4.0.0/iostream: @@ -388,8 +387,6 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: Date.h: diff --git a/src/.deps/T.Po b/src/.deps/T.Po index dfd7997e2..740329d24 100644 --- a/src/.deps/T.Po +++ b/src/.deps/T.Po @@ -95,7 +95,7 @@ T.o T.o: T.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h /usr/include/sys/types.h \ - Config.h Table.h color.h Grid.h color.h TDB.h T.h stlmacros.h ../auto.h + Config.h Table.h color.h Grid.h color.h TDB.h T.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -387,6 +387,4 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/TDB.Po b/src/.deps/TDB.Po index bffd65226..8994a7862 100644 --- a/src/.deps/TDB.Po +++ b/src/.deps/TDB.Po @@ -99,7 +99,7 @@ TDB.o TDB.o: TDB.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h Config.h Table.h color.h \ - Grid.h color.h TDB.h T.h stlmacros.h ../auto.h + Grid.h color.h TDB.h T.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -403,6 +403,4 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/Table.Po b/src/.deps/Table.Po index bf38f0520..2b5b7b131 100644 --- a/src/.deps/Table.Po +++ b/src/.deps/Table.Po @@ -96,7 +96,7 @@ Table.o Table.o: Table.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_bvector.h \ /usr/include/c++/4.0.0/bits/vector.tcc color.h Grid.h Date.h task.h \ /usr/include/sys/types.h Config.h Table.h color.h TDB.h T.h T.h \ - stlmacros.h ../auto.h + ../auto.h /usr/include/c++/4.0.0/iostream: @@ -394,6 +394,4 @@ T.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/parse.Po b/src/.deps/parse.Po index 902f49d40..fd9b0e3b6 100644 --- a/src/.deps/parse.Po +++ b/src/.deps/parse.Po @@ -96,7 +96,7 @@ parse.o parse.o: parse.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h Date.h task.h \ /usr/include/sys/types.h Config.h Table.h color.h Grid.h color.h TDB.h \ - T.h stlmacros.h ../auto.h + T.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -390,6 +390,4 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/rules.Po b/src/.deps/rules.Po index b316ee34b..88fe3569a 100644 --- a/src/.deps/rules.Po +++ b/src/.deps/rules.Po @@ -95,7 +95,7 @@ rules.o rules.o: rules.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/vector /usr/include/c++/4.0.0/bits/stl_vector.h \ /usr/include/c++/4.0.0/bits/stl_bvector.h \ /usr/include/c++/4.0.0/bits/vector.tcc Table.h color.h Grid.h Date.h \ - T.h task.h /usr/include/sys/types.h color.h TDB.h stlmacros.h ../auto.h + T.h task.h /usr/include/sys/types.h color.h TDB.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -389,6 +389,4 @@ color.h: TDB.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/task.Po b/src/.deps/task.Po index 18f0e7597..9c1333ba5 100644 --- a/src/.deps/task.Po +++ b/src/.deps/task.Po @@ -99,7 +99,7 @@ task.o task.o: task.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/vector /usr/include/c++/4.0.0/bits/stl_vector.h \ /usr/include/c++/4.0.0/bits/stl_bvector.h \ /usr/include/c++/4.0.0/bits/vector.tcc Date.h Table.h color.h Grid.h \ - stlmacros.h TDB.h T.h task.h color.h ../auto.h /usr/include/ncurses.h \ + TDB.h T.h task.h color.h ../auto.h /usr/include/ncurses.h \ /usr/include/ncurses_dll.h /usr/include/unctrl.h /usr/include/curses.h /usr/include/c++/4.0.0/iostream: @@ -398,8 +398,6 @@ color.h: Grid.h: -stlmacros.h: - TDB.h: T.h: diff --git a/src/.deps/text.Po b/src/.deps/text.Po index 7048c875c..e45dc678c 100644 --- a/src/.deps/text.Po +++ b/src/.deps/text.Po @@ -95,7 +95,7 @@ text.o text.o: text.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/map /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h /usr/include/sys/types.h \ - Config.h Table.h color.h Grid.h color.h TDB.h T.h stlmacros.h ../auto.h + Config.h Table.h color.h Grid.h color.h TDB.h T.h ../auto.h /usr/include/c++/4.0.0/iostream: @@ -387,6 +387,4 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: diff --git a/src/.deps/util.Po b/src/.deps/util.Po index 3cef528cb..3fb44d97b 100644 --- a/src/.deps/util.Po +++ b/src/.deps/util.Po @@ -96,8 +96,7 @@ util.o util.o: util.cpp /usr/include/c++/4.0.0/iostream \ /usr/include/c++/4.0.0/bits/stl_tree.h \ /usr/include/c++/4.0.0/bits/stl_map.h \ /usr/include/c++/4.0.0/bits/stl_multimap.h color.h Grid.h task.h \ - Config.h color.h TDB.h T.h stlmacros.h ../auto.h \ - /usr/include/uuid/uuid.h + Config.h color.h TDB.h T.h ../auto.h /usr/include/uuid/uuid.h /usr/include/c++/4.0.0/iostream: @@ -391,8 +390,6 @@ TDB.h: T.h: -stlmacros.h: - ../auto.h: /usr/include/uuid/uuid.h: diff --git a/src/Config.cpp b/src/Config.cpp index 8f87ee75c..e15c3cdae 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -1,6 +1,27 @@ /////////////////////////////////////////////////////////////////////////////// -// Copyright 2005 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/Config.h b/src/Config.h index 82bc4ff99..c09a9e485 100644 --- a/src/Config.h +++ b/src/Config.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2005 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_CONFIG diff --git a/src/Date.cpp b/src/Date.cpp index e3aa81bce..e37d880de 100644 --- a/src/Date.cpp +++ b/src/Date.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2005 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/Date.h b/src/Date.h index 2a0ab6f1f..929097f33 100644 --- a/src/Date.h +++ b/src/Date.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2005 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_DATE diff --git a/src/Grid.cpp b/src/Grid.cpp index bdeae4314..faaa4e90f 100644 --- a/src/Grid.cpp +++ b/src/Grid.cpp @@ -1,5 +1,29 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. +// +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +// // // Grid implements a sparse 2D array of Cell objects. Grid makes every effort // to perform well on cell insertion and retrieval. A Cell is a variant type, diff --git a/src/Grid.h b/src/Grid.h index 0012fad99..cf9ff8ecb 100644 --- a/src/Grid.h +++ b/src/Grid.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_GRID diff --git a/src/Makefile.am b/src/Makefile.am index f71e12ff4..64586d1c7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,3 @@ bin_PROGRAMS = task -task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h stlmacros.h task.h +task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti diff --git a/src/Makefile.in b/src/Makefile.in index c7f6c6845..0fb7bc68a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -154,7 +154,7 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h stlmacros.h task.h +task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti all: all-am diff --git a/src/T.cpp b/src/T.cpp index 2e4a3bf2c..e17052f02 100644 --- a/src/T.cpp +++ b/src/T.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/T.h b/src/T.h index 0432eb699..4837bd5a9 100644 --- a/src/T.h +++ b/src/T.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2007, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_T diff --git a/src/TDB.cpp b/src/TDB.cpp index 1158109e6..7756ae79d 100644 --- a/src/TDB.cpp +++ b/src/TDB.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007, 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/TDB.h b/src/TDB.h index ba8cd9bc9..d8c022c8b 100644 --- a/src/TDB.h +++ b/src/TDB.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007, 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_TDB diff --git a/src/Table.cpp b/src/Table.cpp index b2ac7d082..e8d794802 100644 --- a/src/Table.cpp +++ b/src/Table.cpp @@ -1,7 +1,29 @@ //////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// // Copyright 2006 - 2008, Paul Beckingham. // All rights reserved. // +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +// // // Attributes Table Row Column Cell // ---------------------------------------------------- @@ -27,7 +49,6 @@ #include #include #include -#include //////////////////////////////////////////////////////////////////////////////// Table::Table () diff --git a/src/Table.h b/src/Table.h index 23ae06d9f..a90aaafbc 100644 --- a/src/Table.h +++ b/src/Table.h @@ -1,8 +1,28 @@ //////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// // Copyright 2006 - 2008, Paul Beckingham. // All rights reserved. // -// TODO Implement height +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_TABLE #define INCLUDED_TABLE diff --git a/src/color.cpp b/src/color.cpp index c08b229d5..f1153cc7c 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/color.h b/src/color.h index 6ab7ef545..7c48d8e6a 100644 --- a/src/color.h +++ b/src/color.h @@ -1,7 +1,28 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2008, Paul Beckingham. +// task - a command line task list manager. +// +// Copyright 2006 - 2008, Paul Beckingham. // All rights reserved. // +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_COLOR #define INCLUDED_COLOR diff --git a/src/parse.cpp b/src/parse.cpp index ca239f514..99f9dd8d3 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/rules.cpp b/src/rules.cpp index b297acb93..a79aa1757 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/stlmacros.h b/src/stlmacros.h deleted file mode 100644 index 71ec54316..000000000 --- a/src/stlmacros.h +++ /dev/null @@ -1,18 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. -// -// -//////////////////////////////////////////////////////////////////////////////// -#ifndef INCLUDED_STLMACROS -#define INCLUDED_STLMACROS - -#define foreach(i, c) \ -for (typeof (c) *foreach_p = & (c); \ - foreach_p; \ - foreach_p = 0) \ - for (typeof (foreach_p->begin()) i = foreach_p->begin(); \ - i != foreach_p->end(); \ - ++i) - -#endif -//////////////////////////////////////////////////////////////////////////////// diff --git a/src/task.cpp b/src/task.cpp index 9beebe83d..8c89852e6 100644 --- a/src/task.cpp +++ b/src/task.cpp @@ -1,7 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// // Copyright 2006 - 2008, Paul Beckingham. // All rights reserved. // +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include @@ -16,7 +36,6 @@ #include "Config.h" #include "Date.h" #include "Table.h" -#include "stlmacros.h" #include "TDB.h" #include "T.h" #include "task.h" @@ -2309,6 +2328,14 @@ void handleVersion (Config& conf) << VERSION << std::endl << std::endl + << "Task comes with ABSOLUTELY NO WARRANTY; for details read the COPYING file" + << std::endl + << "included. This is free software, and you are welcome to redistribute it" + << std::endl + << "under certain conditions; again, see the COPYING file for details." + << std::endl + << std::endl + << std::endl << table.render () << std::endl; diff --git a/src/task.h b/src/task.h index 3d1b85783..a2557a9eb 100644 --- a/src/task.h +++ b/src/task.h @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// @@ -13,13 +34,20 @@ #include "color.h" #include "TDB.h" #include "T.h" -#include "stlmacros.h" #include "../auto.h" #ifndef max #define max(a,b) ((a) > (b) ? (a) : (b)) #endif +#define foreach(i, c) \ +for (typeof (c) *foreach_p = & (c); \ + foreach_p; \ + foreach_p = 0) \ + for (typeof (foreach_p->begin()) i = foreach_p->begin(); \ + i != foreach_p->end(); \ + ++i) + // parse.cpp void parse (std::vector &, std::string&, T&); bool validDate (std::string&); diff --git a/src/tests/t.t.cpp b/src/tests/t.t.cpp index 8a93f411f..86a847f58 100644 --- a/src/tests/t.t.cpp +++ b/src/tests/t.t.cpp @@ -1,4 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include "../T.h" diff --git a/src/tests/tdb.t.cpp b/src/tests/tdb.t.cpp index 24b212fa1..795f92334 100644 --- a/src/tests/tdb.t.cpp +++ b/src/tests/tdb.t.cpp @@ -1,4 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/tests/test.cpp b/src/tests/test.cpp index 88af6b3c9..1937e9230 100644 --- a/src/tests/test.cpp +++ b/src/tests/test.cpp @@ -1,11 +1,32 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007, 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include #include -#include +#include static int total = 0; static int counter = 0; diff --git a/src/tests/test.h b/src/tests/test.h index 81bf05179..36cfa2f67 100644 --- a/src/tests/test.h +++ b/src/tests/test.h @@ -1,5 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2007, 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. +// +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #ifndef INCLUDED_TEST diff --git a/src/text.cpp b/src/text.cpp index 44155c684..7d8ef7585 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2004 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include diff --git a/src/util.cpp b/src/util.cpp index 0d5271ba3..231192170 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,6 +1,27 @@ //////////////////////////////////////////////////////////////////////////////// -// Copyright 2006 - 2008, Paul Beckingham. All rights reserved. +// task - a command line task list manager. // +// Copyright 2006 - 2008, Paul Beckingham. +// All rights reserved. +// +// This program 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. +// +// This program 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 +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA // //////////////////////////////////////////////////////////////////////////////// #include