diff --git a/include/regex.h b/include/regex.h index 69d436b4f7..543f94545b 100644 --- a/include/regex.h +++ b/include/regex.h @@ -31,8 +31,8 @@ * ****************************************************************************/ -#ifndef _INCLUDE_REGEX_H -#define _INCLUDE_REGEX_H +#ifndef __INCLUDE_REGEX_H +#define __INCLUDE_REGEX_H /**************************************************************************** * Included Files @@ -40,13 +40,13 @@ #include -#define regoff_t int +#define regoff_t int typedef struct re_pattern_buffer { size_t re_nsub; - void *__opaque; - void *__padding[4]; + FAR void *__opaque; + FAR void *__padding[4]; size_t __nsub2; char __padding2; } regex_t; @@ -89,16 +89,17 @@ extern "C" { #endif -int regcomp(regex_t *__restrict, const char *__restrict, int); +int regcomp(FAR regex_t *__restrict, FAR const char *__restrict, int); -int regexec(const regex_t * __restrict, const char *__restrict, size_t, - regmatch_t *__restrict, int); -void regfree(regex_t *); +int regexec(FAR const regex_t * __restrict, FAR const char *__restrict, + size_t, FAR regmatch_t *__restrict, int); +void regfree(FAR regex_t *); -size_t regerror(int, const regex_t *__restrict, char *__restrict, size_t); +size_t regerror(int, FAR const regex_t *__restrict, FAR char *__restrict, + size_t); #ifdef __cplusplus } #endif -#endif /* _INCLUDE_REGEX_H */ +#endif /* __INCLUDE_REGEX_H */