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.
|
|
|
|
--- util/CommandArgs.cc.orig Sun May 26 20:28:55 2002
|
|
|
|
|
+++ util/CommandArgs.cc Thu Jun 12 20:09:06 2003
|
|
|
|
|
@@ -1,4 +1,5 @@
|
|
|
|
|
#include "CommandArgs.h"
|
|
|
|
|
+#include <assert.h>
|
|
|
|
|
CommandArgs::CommandArgs() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--- util/Regex.h.orig Sat Dec 21 16:10:43 2002
|
|
|
|
|
+++ util/Regex.h Thu Jun 12 20:07:25 2003
|
|
|
|
|
@@ -7,6 +7,7 @@
|
|
|
|
|
#include <utility>
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
+#include <assert.h>
|
|
|
|
|
#include "c_regex.h"
|
|
|
|
|
|
|
|
|
|
#ifndef CRASH_REGEX_CACHE_THRESHOLD
|
|
|
|
|
Index: src/todoterm.cc
|
|
|
|
|
--- src/todoterm.cc.orig 2004-08-29 11:59:48.000000000 +0200
|
|
|
|
|
+++ src/todoterm.cc 2004-10-08 22:10:04.913180000 +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)
|
|
|
|
|
|