mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 22:02:43 +00:00
Cope with a GCC bug by using an alternative, but equivalent function
prototype for regexec(). Noticed by: robert
This commit is contained in:
parent
a52b6b83a2
commit
96cb38342d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104416
@ -105,8 +105,13 @@ typedef struct {
|
||||
__BEGIN_DECLS
|
||||
int regcomp(regex_t * __restrict, const char * __restrict, int);
|
||||
size_t regerror(int, const regex_t * __restrict, char * __restrict, size_t);
|
||||
/*
|
||||
* XXX forth parameter should be `regmatch_t [__restrict]', but isn't because
|
||||
* of a bug in GCC 3.2 (when -std=c99 is specified) which perceives this as a
|
||||
* syntax error.
|
||||
*/
|
||||
int regexec(const regex_t * __restrict, const char * __restrict, size_t,
|
||||
regmatch_t [__restrict], int);
|
||||
regmatch_t * __restrict, int);
|
||||
void regfree(regex_t *);
|
||||
__END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user