summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-03-24 23:25:16 +0100
committerTyge Løvset <[email protected]>2022-03-24 23:25:16 +0100
commit233e354798d19dbac03ee0ff9c5e366bfefead6c (patch)
tree153f8c3c3e0a0193af828cba81d2f7a16e6eb442 /include/stc/cregex.h
parent0468971b404cee5582d360d7d1c66bb4148e1614 (diff)
downloadSTC-modified-233e354798d19dbac03ee0ff9c5e366bfefead6c.tar.gz
STC-modified-233e354798d19dbac03ee0ff9c5e366bfefead6c.zip
Misc. small internal API renaming/refactoring and additions.
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index 4b9bde51..7357d9d9 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -31,9 +31,7 @@ THE SOFTWARE.
* This is a extended version of regexp9, supporting UTF8 input, common
* shorthand character classes, ++.
*/
-
-#include <stddef.h>
-#include <stdint.h>
+#include "csview.h"
typedef enum {
creg_nomatch = -1,
@@ -68,10 +66,7 @@ typedef struct {
struct Reprog* prog;
} cregex;
-typedef struct {
- const char* str;
- size_t len;
-} cregmatch;
+typedef csview cregmatch;
static inline cregex cregex_init(void) {
cregex rx = {NULL}; return rx;