diff options
author | bapt <bapt@FreeBSD.org> | 2016-05-12 05:48:50 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-05-12 05:48:50 +0800 |
commit | 7b6a28b05b90764d15c7a997d7984eac3433fba7 (patch) | |
tree | 5e818fdc9d69f085c206e919d3d7d0070c564ea1 /biology | |
parent | e7aa8e998373b4ed8e88fcebc0f8a0358ea626f3 (diff) | |
download | freebsd-ports-gnome-7b6a28b05b90764d15c7a997d7984eac3433fba7.tar.gz freebsd-ports-gnome-7b6a28b05b90764d15c7a997d7984eac3433fba7.tar.zst freebsd-ports-gnome-7b6a28b05b90764d15c7a997d7984eac3433fba7.zip |
Prevent collision with getline(3)
While here regen patches
Diffstat (limited to 'biology')
-rw-r--r-- | biology/lagan/files/patch-src__glocal__rightinfluence.cpp | 5 | ||||
-rw-r--r-- | biology/lagan/files/patch-src__glocal__score.cpp | 4 | ||||
-rw-r--r-- | biology/lagan/files/patch-src__utils__Glue.cpp | 4 | ||||
-rw-r--r-- | biology/lagan/files/patch-src_anchors.c | 20 |
4 files changed, 27 insertions, 6 deletions
diff --git a/biology/lagan/files/patch-src__glocal__rightinfluence.cpp b/biology/lagan/files/patch-src__glocal__rightinfluence.cpp index 6ee5be408229..dd8edd2e0350 100644 --- a/biology/lagan/files/patch-src__glocal__rightinfluence.cpp +++ b/biology/lagan/files/patch-src__glocal__rightinfluence.cpp @@ -1,4 +1,4 @@ ---- src/glocal/rightinfluence.cpp.orig +--- src/glocal/rightinfluence.cpp.orig 2006-09-14 20:40:19 UTC +++ src/glocal/rightinfluence.cpp @@ -1,6 +1,6 @@ #include <rightinfluence.h> @@ -8,7 +8,7 @@ // Sets the first default owner of the whole region void initRI(RI *RightInfluence, long long int scoreIndex) { -@@ -18,17 +18,17 @@ +@@ -18,17 +18,17 @@ void initRI(RI *RightInfluence, long lon // hack to aid winner selection origin.score = -1; @@ -30,3 +30,4 @@ + RightInfluence->act[+INF] = &my_end; } + diff --git a/biology/lagan/files/patch-src__glocal__score.cpp b/biology/lagan/files/patch-src__glocal__score.cpp index 76a8521558ab..0360397cacbc 100644 --- a/biology/lagan/files/patch-src__glocal__score.cpp +++ b/biology/lagan/files/patch-src__glocal__score.cpp @@ -1,5 +1,5 @@ ---- src/glocal/score.cpp.orig 2006-09-15 05:40:19.000000000 +0900 -+++ src/glocal/score.cpp 2012-10-03 00:22:50.000000000 +0900 +--- src/glocal/score.cpp.orig 2006-09-14 20:40:19 UTC ++++ src/glocal/score.cpp @@ -2,7 +2,7 @@ #include<score.h> #include<leftinfluence.h> diff --git a/biology/lagan/files/patch-src__utils__Glue.cpp b/biology/lagan/files/patch-src__utils__Glue.cpp index 8b5b2b4fed25..bce5c336a1aa 100644 --- a/biology/lagan/files/patch-src__utils__Glue.cpp +++ b/biology/lagan/files/patch-src__utils__Glue.cpp @@ -1,5 +1,5 @@ ---- src/utils/Glue.cpp.orig 2006-09-15 05:40:18.000000000 +0900 -+++ src/utils/Glue.cpp 2012-10-03 00:23:38.000000000 +0900 +--- src/utils/Glue.cpp.orig 2006-09-14 20:40:18 UTC ++++ src/utils/Glue.cpp @@ -6,6 +6,7 @@ #include <fstream> #include <iostream> diff --git a/biology/lagan/files/patch-src_anchors.c b/biology/lagan/files/patch-src_anchors.c new file mode 100644 index 000000000000..00b9f66ac060 --- /dev/null +++ b/biology/lagan/files/patch-src_anchors.c @@ -0,0 +1,20 @@ +--- src/anchors.c.orig 2016-05-11 21:46:55 UTC ++++ src/anchors.c +@@ -225,7 +225,7 @@ char* rolltonum(char* str) { + return &str[i]; + } + +-int getline(FILE* infile, hll* tt) { ++int get_line(FILE* infile, hll* tt) { + char temp[1024]; + char* help; + int z, h; +@@ -248,7 +248,7 @@ hll* parseCHAOS(FILE* infile, int* totnu + *totnum = 0; + while(!feof(infile)) { + tt = (hll*) malloc(sizeof(hll)); +- while (!feof(infile) && !getline(infile, tt)) ++ while (!feof(infile) && !get_line(infile, tt)) + ; + if (feof(infile)) break; + if (gapfreechunks) { |