about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-19 11:05:40 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-19 11:05:40 +0200
commit42345af443611e2db864ad355cc9ad528f38c119 (patch)
treef329384a2bf82a0427b07a2526c3b74862051dff /src/include
parenta5797da100bebf3941cecfb0fe0ed094f963f108 (diff)
downloadbox64-42345af443611e2db864ad355cc9ad528f38c119.tar.gz
box64-42345af443611e2db864ad355cc9ad528f38c119.zip
[BOX32][WRAPPER] Added 32bits wrapped regex libc functions
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/myalign32.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/include/myalign32.h b/src/include/myalign32.h
index 505f6cbe..b7d49cbd 100755
--- a/src/include/myalign32.h
+++ b/src/include/myalign32.h
@@ -542,4 +542,50 @@ struct i386_group
   ptr_t gr_mem; // char **
 } __attribute__((packed, aligned(4)));
 
+typedef struct my_regex_s
+{
+  void*             buffer;   //struct re_dfa_t
+  size_t            allocated;
+  size_t            used;
+  unsigned long int syntax;
+  char*             fastmap;
+  unsigned char*    translate;
+  size_t            re_nsub;
+  unsigned          flags;
+  /*
+  unsigned          can_be_null : 1;
+  unsigned          regs_allocated : 2;
+  unsigned          fastmap_accurate : 1;
+  unsigned          no_sub : 1;
+  unsigned          not_bol : 1;
+  unsigned          not_eol : 1;
+  unsigned          newline_anchor : 1;
+  */
+} my_regex_t;
+
+typedef struct my_regex_32_s
+{
+  ptr_t             buffer;   //struct re_dfa_t
+  ulong_t           allocated;
+  ulong_t           used;
+  ulong_t           syntax;
+  ptr_t             fastmap;  //char*
+  ptr_t             translate;  //unsigned char*
+  ulong_t           re_nsub;
+  unsigned          flags;
+  /*
+  unsigned          can_be_null : 1;
+  unsigned          regs_allocated : 2;
+  unsigned          fastmap_accurate : 1;
+  unsigned          no_sub : 1;
+  unsigned          not_bol : 1;
+  unsigned          not_eol : 1;
+  unsigned          newline_anchor : 1;
+  */
+} my_regex_32_t;
+
+void convert_regext_to_32(void* d, void* s);
+void convert_regext_to_64(void* d, void* s);
+
+
 #endif//__MY_ALIGN32__H_
\ No newline at end of file