2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
* libc/include/glob.h (glob): Add restrict keyword. * libc/posix/glob.c (glob): Ditto.
This commit is contained in:
parent
a7c3258311
commit
9977fcbc42
@ -1,3 +1,8 @@
|
|||||||
|
2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
|
||||||
|
|
||||||
|
* libc/include/glob.h (glob): Add restrict keyword.
|
||||||
|
* libc/posix/glob.c (glob): Ditto.
|
||||||
|
|
||||||
2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* libc/posix/readdir_r.c: Add restrict keyword.
|
* libc/posix/readdir_r.c: Add restrict keyword.
|
||||||
|
@ -82,7 +82,8 @@ typedef struct {
|
|||||||
#define GLOB_ABEND (-2) /* Unignored error. */
|
#define GLOB_ABEND (-2) /* Unignored error. */
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int glob(const char *, int, int (*)(const char *, int), glob_t *);
|
int glob(const char *__restrict, int, int (*)(const char *, int),
|
||||||
|
glob_t *__restrict);
|
||||||
void globfree(glob_t *);
|
void globfree(glob_t *);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
@ -158,9 +158,9 @@ static void qprintf(const char *, Char *);
|
|||||||
|
|
||||||
int
|
int
|
||||||
glob(pattern, flags, errfunc, pglob)
|
glob(pattern, flags, errfunc, pglob)
|
||||||
const char *pattern;
|
const char *__restrict pattern;
|
||||||
int flags, (*errfunc)(const char *, int);
|
int flags, (*errfunc)(const char *, int);
|
||||||
glob_t *pglob;
|
glob_t *__restrict pglob;
|
||||||
{
|
{
|
||||||
const u_char *patnext;
|
const u_char *patnext;
|
||||||
int c, limit;
|
int c, limit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user