freebsd-ports/devel/motor/files/patch-gcc4
Alex Dupre 001ad95d43 - Patch for gcc4
- Update MASTER_SITES
- Use bzip2
2007-01-27 09:38:54 +00:00

116 lines
3.7 KiB
Text

diff -urN ../tmp-orig/motor-3.4.0/kkconsui/src/texteditor.cc ./kkconsui/src/texteditor.cc
--- ../tmp-orig/motor-3.4.0/kkconsui/src/texteditor.cc 2003-09-09 23:51:33.000000000 +0200
+++ ./kkconsui/src/texteditor.cc 2005-04-08 20:30:03.690067218 +0200
@@ -1940,7 +1940,7 @@
}
int texteditor::findint(void *p1, void *p2) {
- return *(int *) p1 != (int) p2;
+ return *(int *) p1 != (long) p2;
}
int texteditor::findhighline(void *p1, void *p2) {
diff -urN ../tmp-orig/motor-3.4.0/kkstrtext/kkstrtext.cc ./kkstrtext/kkstrtext.cc
--- ../tmp-orig/motor-3.4.0/kkstrtext/kkstrtext.cc 2005-02-01 01:13:24.000000000 +0100
+++ ./kkstrtext/kkstrtext.cc 2005-04-08 20:30:03.691067026 +0200
@@ -431,7 +431,7 @@
}
int intcompare(void *s1, void *s2) {
- return (int) s1 != (int) s2;
+ return s1 != s2;
}
string i2str(int i) {
diff -urN ../tmp-orig/motor-3.4.0/src/ui/ncurses/ncursesui.cc ./src/ui/ncurses/ncursesui.cc
--- ../tmp-orig/motor-3.4.0/src/ui/ncurses/ncursesui.cc 2004-11-14 22:04:08.000000000 +0100
+++ ./src/ui/ncurses/ncursesui.cc 2005-04-08 20:30:03.691067026 +0200
@@ -1242,7 +1242,7 @@
populatesettingstree(*db.gettree());
if(fin = !db.open(n, b, &p)) break;
- switch((int) p) {
+ switch((long) p) {
case 10:
if(input(motorui::text, buf = project.getversion(),
_("version: ")) == motorui::yes) {
@@ -1356,7 +1356,8 @@
vector<shitpair> treeshit;
void ncursesui::populatecontentstree(treeview &tree, motorproject &mp, projeditaction pea, bool setcurrent) {
- int foldid, id, cfid = -1, i, sid;
+ int foldid, id, cfid = -1, i;
+ long sid;
vector<motorfolder>::iterator ifold;
vector<motorfile>::iterator ifile;
static vector<string> cnodes;
@@ -1368,7 +1369,7 @@
id = tree.getid(i);
if(tree.isnode(id))
- if(sid = (int) tree.getref(id))
+ if(sid = (long) tree.getref(id))
if(!tree.isnodeopen(id))
cnodes.push_back(treeshit[sid-1].second->gettagname());
}
diff -urN ../tmp-orig/motor-3.4.0/src/ui/ncurses/uitagbrowser.cc ./src/ui/ncurses/uitagbrowser.cc
--- ../tmp-orig/motor-3.4.0/src/ui/ncurses/uitagbrowser.cc 2004-07-23 02:18:16.000000000 +0200
+++ ./src/ui/ncurses/uitagbrowser.cc 2005-04-08 20:30:03.692066835 +0200
@@ -95,7 +95,7 @@
cm.close();
if(n) {
- int c = (int) cm.getref(n-1);
+ long c = (long) cm.getref(n-1);
if(c != tagbrowser.getscope()) {
tagbrowser.setscope((motortagbrowser::viewscope) c);
@@ -142,7 +142,7 @@
switch(cm.open()) {
case -2:
iter = false;
- c = (char) (int) cm.getref(cm.getpos());
+ c = (char) (long) cm.getref(cm.getpos());
while((pos = nfilter.find(c)) != -1) {
nfilter.erase(pos, 1);
@@ -213,7 +213,7 @@
}
void uitagbrowser::exec() {
- int n, k;
+ long n, k;
bool r;
if(search.empty())
@@ -240,7 +240,7 @@
m.setpos(mpos);
if(r = (n = m.open())) {
- k = (int) m.getref(n-1);
+ k = (long) m.getref(n-1);
mpos = n-1;
}
diff -urN ../tmp-orig/motor-3.4.0/src/ui/ncurses/uivcs.cc ./src/ui/ncurses/uivcs.cc
--- ../tmp-orig/motor-3.4.0/src/ui/ncurses/uivcs.cc 2005-02-12 15:58:28.000000000 +0100
+++ ./src/ui/ncurses/uivcs.cc 2005-04-08 20:30:03.692066835 +0200
@@ -31,7 +31,8 @@
void uivcs::check() {
bool found;
dialogbox db;
- int n, b, i, nodes[motorvcs::remotely_modified+1];
+ int n, b, nodes[motorvcs::remotely_modified+1];
+ long i;
string comment, buf;
if(!enabled()) return;
@@ -98,7 +99,7 @@
switch(b) {
case 0:
if(!i) {
- i = (int) tree.getref(tree.getid(n));
+ i = (long) tree.getref(tree.getid(n));
ic = ch.begin()+i-1;
found = (ik = find(naffect.begin(), naffect.end(),