summaryrefslogtreecommitdiff
path: root/biology/cdbfasta/files/patch-gclib_GBase.cpp
diff options
context:
space:
mode:
authorJason W. Bacon <jwb@FreeBSD.org>2023-07-10 10:29:23 -0500
committerJason W. Bacon <jwb@FreeBSD.org>2023-07-10 10:29:23 -0500
commitcc903ba092636e40c1f322c29a83447718dc7a39 (patch)
tree4f23bc7f4c0ed49f07eb9645dddad6080665835b /biology/cdbfasta/files/patch-gclib_GBase.cpp
parentwww/R-cran-shiny: Update to 1.7.4.1 (diff)
biology/cdbfasta: Update to 2018.10.05
Fix build for c++17 Improve pkg-descr Add license Reported by: pkg-fallout
Diffstat (limited to 'biology/cdbfasta/files/patch-gclib_GBase.cpp')
-rw-r--r--biology/cdbfasta/files/patch-gclib_GBase.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/biology/cdbfasta/files/patch-gclib_GBase.cpp b/biology/cdbfasta/files/patch-gclib_GBase.cpp
new file mode 100644
index 000000000000..62cb518116f2
--- /dev/null
+++ b/biology/cdbfasta/files/patch-gclib_GBase.cpp
@@ -0,0 +1,40 @@
+--- gclib/GBase.cpp.orig 2023-07-10 09:56:17 UTC
++++ gclib/GBase.cpp
+@@ -234,7 +234,7 @@ bool GstrEq(const char* a, const char* b) {
+
+ bool GstrEq(const char* a, const char* b) {
+ if (a==NULL || b==NULL) return false;
+- register int i=0;
++ int i=0;
+ while (a[i]==b[i]) {
+ if (a[i]==0) return true;
+ ++i;
+@@ -244,7 +244,7 @@ bool GstriEq(const char* a, const char* b) {
+
+ bool GstriEq(const char* a, const char* b) {
+ if (a==NULL || b==NULL) return false;
+- register int i=0;
++ int i=0;
+ while (tolower((unsigned char)a[i])==tolower((unsigned char)b[i])) {
+ if (a[i]==0) return true;
+ }
+@@ -253,7 +253,7 @@ int Gstricmp(const char* a, const char* b, int n) {
+
+ int Gstricmp(const char* a, const char* b, int n) {
+ if (a==NULL || b==NULL) return a==NULL ? -1 : 1;
+- register int ua, ub;
++ int ua, ub;
+ if (n<0) {
+ while ((*a!=0) && (*b!=0)) {
+ ua=tolower((unsigned char)*a);
+@@ -662,8 +662,8 @@ int strhash(const char* str){
+
+ //hash function used for strings in GHash
+ int strhash(const char* str){
+- register int h=0;
+- register int g;
++ int h=0;
++ int g;
+ while (*str) {
+ h=(h<<4)+*str++;
+ g=h&0xF0000000;