1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Description: Use extern to fix gcc-10 FTBFS
Author: Logan Rosen <logan@ubuntu.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979681
Last-Update: 2021-01-14
--- a/extratools.h
+++ b/extratools.h
@@ -59,12 +59,12 @@
HITITEM *itemList;
}HITTABLE;
-BWT * occBwt;
-HASHTABLE * occHashtable;
-unsigned int * occCollector;
-unsigned int occCollected;
+extern BWT * occBwt;
+extern HASHTABLE * occHashtable;
+extern unsigned int * occCollector;
+extern unsigned int occCollected;
-FILE * textPositionFile;
+extern FILE * textPositionFile;
void registerTPFile(FILE * filePtr,unsigned int searchMode);
void registerQIndex(unsigned int queryIndex);
--- a/extratools.c
+++ b/extratools.c
@@ -5,6 +5,13 @@
// Hash Table
// All things like those
+BWT * occBwt;
+HASHTABLE * occHashtable;
+unsigned int * occCollector;
+unsigned int occCollected;
+
+FILE * textPositionFile;
+
void LoadLookupTable(LOOKUPTABLE * lookupTable, const char * fileName, const int tableSize) {
(*lookupTable).tableSize = tableSize;
unsigned long long NR_TOP = 1 << (tableSize * 2);
|