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:
David Seifert 2025-12-01 11:26:26 +01:00
parent aac9745c73
commit b7e4b1db6e
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
2 changed files with 38 additions and 1 deletions

View File

@ -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

View 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);