summaryrefslogtreecommitdiff
path: root/regcomp_internal.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-12-18 11:37:13 +0100
committerYves Orton <demerphq@gmail.com>2022-12-18 15:16:26 +0100
commit571fb71d60722b214fbda092cd4fdaf3341bb750 (patch)
tree97d8e7fcefe5ede6ae74d1d821850788d41cb711 /regcomp_internal.h
parentbba473981f23a3840994a0577c4224d2002a3c7f (diff)
downloadperl-571fb71d60722b214fbda092cd4fdaf3341bb750.tar.gz
regcomp_internal.h - remove typedef
We already typedef scan_data_t in perl.h, we should not do so also in regcomp_internal.h, we just need to defined struct scan_data_t.
Diffstat (limited to 'regcomp_internal.h')
-rw-r--r--regcomp_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/regcomp_internal.h b/regcomp_internal.h
index f8682f823d..f1b81625a0 100644
--- a/regcomp_internal.h
+++ b/regcomp_internal.h
@@ -599,7 +599,8 @@ struct scan_data_substrs {
I32 flags; /* per substring SF_* and SCF_* flags */
};
-typedef struct scan_data_t {
+/* this is typedef'ed in perl.h */
+struct scan_data_t {
/*I32 len_min; unused */
/*I32 len_delta; unused */
SSize_t pos_min;
@@ -623,7 +624,7 @@ typedef struct scan_data_t {
pointer - the op may have been optimized
away */
regnode_ssc *start_class;
-} scan_data_t;
+};
/*
* Forward declarations for pregcomp()'s friends.