This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ab02bdc6261d3bac168028e33dce528801d472d0
Author: Petro Karashchenko <[email protected]>
AuthorDate: Thu May 18 01:02:17 2023 +0300

    include/regex.h: add missing FAR
    
    Signed-off-by: Petro Karashchenko <[email protected]>
---
 include/regex.h | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

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 <sys/types.h>
 
-#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 */

Reply via email to