You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

Index: src/Todo.h
--- src/Todo.h.orig 2004-09-03 11:35:13 +0200
+++ src/Todo.h 2006-06-17 22:21:52 +0200
@@ -14,6 +14,7 @@
01/02/01 Initial creation
*/
23 years ago
+class TodoDB;
class Todo {
public :
friend class TodoDB;
Index: src/TodoDB.h
--- src/TodoDB.h.orig 2004-09-03 11:35:14 +0200
+++ src/TodoDB.h 2006-06-17 22:22:26 +0200
@@ -108,7 +108,7 @@
void initColour();
void initColourPost();
Todo::Priority getPriority(string current = "");
- int TodoDB::markDone(Todo &todo);
+ int markDone(Todo &todo);
void formatItem(ostream &out, int depth, Todo const &item, string const &format);
Index: src/todoterm.cc
--- src/todoterm.cc.orig 2004-09-03 11:35:13 +0200
+++ src/todoterm.cc 2006-06-17 22:21:52 +0200
@@ -15,13 +15,13 @@
int getWidth() {
if (!term_initialized) {
- char const *termtype = getenv("TERM");
+ char *termtype = getenv("TERM");
if (!termtype) {
cerr << "can't get terminal type, defaulting to vt100." << endl;
cerr << "please set the TERM env variable." << endl;
- setenv("TERM", "vt100", 0);
+ termtype = "vt100";
}
- int result = tgetent(info, getenv("TERM"));
+ int result = tgetent(info, termtype);
if (result < 0)
throw runtime_error("could not access termcap database");
if (result == 0)
Index: util/CommandArgs.cc
--- util/CommandArgs.cc.orig 2004-09-03 11:35:16 +0200
+++ util/CommandArgs.cc 2006-06-17 22:21:52 +0200
@@ -1,4 +1,5 @@
#include "CommandArgs.h"
+#include <assert.h>
CommandArgs::CommandArgs() {
}
Index: util/Regex.h
--- util/Regex.h.orig 2004-09-03 11:35:18 +0200
+++ util/Regex.h 2006-06-17 22:21:52 +0200
@@ -9,6 +9,7 @@
#include <stdexcept>
#include <cassert>
#include <sys/types.h>
+#include <assert.h>
#include "c_regex.h"
#ifndef CRASH_REGEX_CACHE_THRESHOLD