mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-07 00:04:45 +03:00
sci-biology/biogrep: fix c23 pointer declarations
Closes: https://bugs.gentoo.org/944932 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
parent
aac9745c73
commit
b7e4b1db6e
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -16,6 +16,8 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-c23.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
|
||||
35
sci-biology/biogrep/files/biogrep-1.0-c23.patch
Normal file
35
sci-biology/biogrep/files/biogrep-1.0-c23.patch
Normal file
@ -0,0 +1,35 @@
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -198,8 +198,8 @@
|
||||
int i;
|
||||
int regExsPerThread;
|
||||
int completedRegExs;
|
||||
- int (*parseFunct) () = &ParseTxtLine;
|
||||
- fSeq_t *(*seqReadFunct) () = &ReadTxtSeqs;
|
||||
+ int (*parseFunct) (char*, int, tPat_t*) = &ParseTxtLine;
|
||||
+ fSeq_t *(*seqReadFunct) (FILE*, int*) = &ReadTxtSeqs;
|
||||
printFormat_t myFormat;
|
||||
int ignoreCase = 0;
|
||||
|
||||
--- a/src/patternFunctions.c
|
||||
+++ b/src/patternFunctions.c
|
||||
@@ -39,7 +39,7 @@
|
||||
// output file from Teiresias, which may or may not have logOdds values
|
||||
//
|
||||
tPat_t *
|
||||
-ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int (*parseFunct) ())
|
||||
+ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int (*parseFunct) (char*, int, tPat_t*))
|
||||
{
|
||||
int i;
|
||||
int countedPatterns;
|
||||
--- a/src/patternFunctions.h
|
||||
+++ b/src/patternFunctions.h
|
||||
@@ -33,7 +33,7 @@
|
||||
int MeasurePattern(char *pattern);
|
||||
int ParseTPatLine(char *buffer, int getOffsets, tPat_t * myTeiresiasPattern);
|
||||
int ParseTxtLine(char *buffer, int getOffsets, tPat_t * myTeiresiasPattern);
|
||||
-tPat_t *ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int (*parseFunct)() );
|
||||
+tPat_t *ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int (*parseFunct)(char*, int, tPat_t*) );
|
||||
int printTPat(FILE * OUTPUT, tPat_t * myTeiresiasPattern, int hasOffsets);
|
||||
int FreeTPatA(tPat_t * arrayOfTeiresiasPatterns, int numberOfPatterns);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user